1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2*f4a2713aSLionel Sambuc // PR924
3*f4a2713aSLionel Sambuc
bar()4*f4a2713aSLionel Sambuc void bar() {
5*f4a2713aSLionel Sambuc // Extended asm
6*f4a2713aSLionel Sambuc // CHECK: call void asm sideeffect "ext: xorl %eax, eax; movl eax, fs; movl eax, gs %blah
7*f4a2713aSLionel Sambuc asm volatile ("ext: xorl %%eax, eax; movl eax, fs; movl eax, gs %%blah %= %\
8*f4a2713aSLionel Sambuc % " : : "r"(1));
9*f4a2713aSLionel Sambuc // CHECK: call void asm sideeffect "nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs %%blah %= %%
10*f4a2713aSLionel Sambuc // Non-extended asm.
11*f4a2713aSLionel Sambuc asm volatile ("nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs %%blah %= %% ");
12*f4a2713aSLionel Sambuc }
13