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