1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2// PR924
3
4void 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