Home | History | Annotate | Download | only in FrontendC
      1 // RUN: %llvmgcc %s -S -o - | grep {ext: xorl %eax, eax; movl}
      2 // RUN: %llvmgcc %s -S -o - | grep {nonext: xorl %eax, %eax; mov}
      3 // PR924
      4 
      5 void bar() {
      6    // Extended asm
      7    asm volatile ("ext: xorl %%eax, eax; movl eax, fs; movl eax, gs  %%blah %= %% " : : "r"(1));
      8    // Non-extended asm.
      9    asm volatile ("nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs  %%blah %= %% ");
     10 }
     11