r179394 - Add test case for r179383 and r179393.
Chad Rosier
mcrosier at apple.com
Fri Apr 12 11:22:08 PDT 2013
Author: mcrosier
Date: Fri Apr 12 13:22:08 2013
New Revision: 179394
URL: http://llvm.org/viewvc/llvm-project?rev=179394&view=rev
Log:
Add test case for r179383 and r179393.
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=179394&r1=179393&r2=179394&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Fri Apr 12 13:22:08 2013
@@ -375,6 +375,13 @@ void t36() {
__asm mov eax, [arr + 4]
__asm mov eax, [4 + arr]
__asm mov eax, [4 + arr + 4]
+ __asm mov eax, [64 + arr + (2*32)]
+ __asm mov eax, [64 + arr - 2*32]
// CHECK: t36
-// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %arr)
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// FIXME: call void asm sideeffect inteldialect "mov eax, arr + 4", "~{eax},~{dirflag},~{fpsr},~{flags}"()
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// 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 $$128$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
}
More information about the cfe-commits
mailing list