r200280 - Test case for clobbers on cpuid in ms inline asm

Reid Kleckner reid at kleckner.net
Mon Jan 27 18:09:28 PST 2014


Author: rnk
Date: Mon Jan 27 20:09:28 2014
New Revision: 200280

URL: http://llvm.org/viewvc/llvm-project?rev=200280&view=rev
Log:
Test case for clobbers on cpuid in ms inline asm

Tests r200279 in LLVM.

Modified:
    cfe/trunk/test/CodeGen/ms-inline-asm.c

Modified: cfe/trunk/test/CodeGen/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.c?rev=200280&r1=200279&r2=200280&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Mon Jan 27 20:09:28 2014
@@ -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}"()
+}





More information about the cfe-commits mailing list