xref: /aosp_15_r20/external/clang/test/CodeGen/2006-09-28-SimpleAsm.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2 // PR924
3 
bar()4 void bar() {
5   // Extended asm
6   // CHECK: call void asm sideeffect "ext: xorl %eax, eax; movl eax, fs; movl eax, gs  %blah
7   asm volatile ("ext: xorl %%eax, eax; movl eax, fs; movl eax, gs  %%blah %= %\
8 % " : : "r"(1));
9   // CHECK: call void asm sideeffect "nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs  %%blah %= %%
10   // Non-extended asm.
11   asm volatile ("nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs  %%blah %= %% ");
12 }
13