22 lines · c
1// REQUIRES: x86-registered-target2 3// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc19.11.0 -emit-llvm-bc \4// RUN: -flto=thin -mllvm -x86-asm-syntax=intel -v \5// RUN: -o %t.obj %s 2>&1 | FileCheck --check-prefix=CLANG %s6//7// RUN: llvm-lto2 dump-symtab %t.obj | FileCheck --check-prefix=SYMTAB %s8 9// Module-level inline asm is parsed with At&t syntax. Test that the10// -x86-asm-syntax flag does not affect this.11 12// CLANG-NOT: unknown token in expression13// SYMTAB: D------X foo14// SYMTAB: D------X bar15 16void foo(void) {}17 18asm(".globl bar \n"19 "bar: \n"20 " xor %eax, %eax\n"21 " ret \n");22