r175313 - Add test case for r175312.

Chad Rosier mcrosier at apple.com
Fri Feb 15 13:58:41 PST 2013


Author: mcrosier
Date: Fri Feb 15 15:58:41 2013
New Revision: 175313

URL: http://llvm.org/viewvc/llvm-project?rev=175313&view=rev
Log:
Add test case for r175312.

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=175313&r1=175312&r2=175313&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Fri Feb 15 15:58:41 2013
@@ -348,3 +348,9 @@ int *t30()
 // CHECK: call void asm sideeffect inteldialect "lea edi, dword ptr $0", "*m,~{edi},~{dirflag},~{fpsr},~{flags}"([2 x i32]* @{{.*}}) nounwind
 // CHECK: call void asm sideeffect inteldialect "mov dword ptr $0, edi", "=*m,~{dirflag},~{fpsr},~{flags}"(i32** %{{.*}}) nounwind
 }
+
+void t31(int a) {
+  __asm mov eax, dword ptr [a]
+// CHECK: t31
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr [$0]", "*m,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
+}





More information about the cfe-commits mailing list