r179031 - Test case for r179030.

Chad Rosier mcrosier at apple.com
Mon Apr 8 10:44:05 PDT 2013


Author: mcrosier
Date: Mon Apr  8 12:44:05 2013
New Revision: 179031

URL: http://llvm.org/viewvc/llvm-project?rev=179031&view=rev
Log:
Test case for r179030.

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=179031&r1=179030&r2=179031&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Mon Apr  8 12:44:05 2013
@@ -398,3 +398,10 @@ void t35() {
 // CHECK: call void asm sideeffect inteldialect "prefetchnta [eax + ($$200*$$64)]", "~{dirflag},~{fpsr},~{flags}"()
 // CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr [eax + ($$200*$$64)]", "~{eax},~{dirflag},~{fpsr},~{flags}"()
 }
+
+void t36() {
+  int arr[4];
+  __asm mov eax, 4[arr]
+// CHECK: t36
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %arr)
+}





More information about the cfe-commits mailing list