brintos

brintos / llvm-project-archived public Read only

0
0
Text · 512 B · 1e159e7 Raw
13 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s2// PR9243 4void bar(void) {5  // Extended asm6  // CHECK: call void asm sideeffect "ext: xorl %eax, eax; movl eax, fs; movl eax, gs  %blah7  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