diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-01-28 02:09:28 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-01-28 02:09:28 +0000 |
commit | 020acd88ecc4b99632b6af54e7e7f77ab70b4a30 (patch) | |
tree | 5e0410db5ba6a889c92c8378094b3e9d46fd0b95 /clang/test/CodeGen/ms-inline-asm.c | |
parent | b2340d4c8c31fde6181a719d41896ba706553ed5 (diff) | |
download | bcm5719-llvm-020acd88ecc4b99632b6af54e7e7f77ab70b4a30.tar.gz bcm5719-llvm-020acd88ecc4b99632b6af54e7e7f77ab70b4a30.zip |
Test case for clobbers on cpuid in ms inline asm
Tests r200279 in LLVM.
llvm-svn: 200280
Diffstat (limited to 'clang/test/CodeGen/ms-inline-asm.c')
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 2bcee20cbaf..2c7af2e7d98 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -439,3 +439,9 @@ void t38() { // CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$8$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}}) // CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$0$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}}) } + +void cpuid() { + __asm cpuid +// CHECK-LABEL: define void @cpuid +// CHECK: call void asm sideeffect inteldialect "cpuid", "~{eax},~{ebx},~{ecx},~{edx},~{dirflag},~{fpsr},~{flags}"() +} |