brintos

brintos / llvm-project-archived public Read only

0
0
Text · 646 B · 9d9a38f Raw
19 lines · plain
1; RUN: not llc -mtriple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s2; RUN: llc -mtriple=x86_64 -no-integrated-as < %s | FileCheck %s --check-prefix=GAS3; RUN: llc -mtriple=x86_64 -filetype=obj %s -o - | llvm-objdump -d - |  FileCheck %s --check-prefix=DISASM4 5; GAS: nop;  .if . - foo==1; nop;.endif6 7; CHECK: <inline asm>:1:17: error: expected absolute expression8 9; DISASM:      <main>:10; DISASM-NEXT:   nop11; DISASM-NEXT:   nop12; DISASM-NEXT:   xorl %eax, %eax13; DISASM-NEXT:   retq14 15define i32 @main() local_unnamed_addr {16  tail call void asm sideeffect "foo: nop;  .if . - foo==1;  nop;.endif", "~{dirflag},~{fpsr},~{flags}"()17  ret i32 018}19