summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/assembler-expressions-inlineasm.ll
blob: 35f110f37e2fb6fecff8b7634b0bc88335e65016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: not llc -mtriple x86_64-unknown-linux-gnu -o %t.s -filetype=asm %s 2>&1 | FileCheck %s
; RUN: not llc -mtriple x86_64-unknown-linux-gnu -o %t.o -filetype=obj %s 2>&1 | FileCheck %s

; Assembler-aware expression evaluation should be disabled in inline
; assembly to prevent differences in behavior between object and
; assembly output.


; CHECK: <inline asm>:1:17: error: expected absolute expression

define i32 @main() local_unnamed_addr {
  tail call void asm sideeffect "foo: nop;  .if . - foo==1;  nop;.endif", "~{dirflag},~{fpsr},~{flags}"()
  ret i32 0
}
OpenPOWER on IntegriCloud