• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: not llc -mtriple x86_64-unknown-linux-gnu -o %t.s -filetype=asm %s 2>&1 | FileCheck %s
2; RUN: not llc -mtriple x86_64-unknown-linux-gnu -o %t.o -filetype=obj %s 2>&1 | FileCheck %s
3
4; Assembler-aware expression evaluation should be disabled in inline
5; assembly to prevent differences in behavior between object and
6; assembly output.
7
8
9; CHECK: <inline asm>:1:17: error: expected absolute expression
10
11define i32 @main() local_unnamed_addr {
12  tail call void asm sideeffect "foo: nop;  .if . - foo==1;  nop;.endif", "~{dirflag},~{fpsr},~{flags}"()
13  ret i32 0
14}
15