r179404 - Add test case for r179403.
Chad Rosier
mcrosier at apple.com
Fri Apr 12 12:52:07 PDT 2013
Author: mcrosier
Date: Fri Apr 12 14:52:07 2013
New Revision: 179404
URL: http://llvm.org/viewvc/llvm-project?rev=179404&view=rev
Log:
Add test case for r179403.
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=179404&r1=179403&r2=179404&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Fri Apr 12 14:52:07 2013
@@ -372,6 +372,12 @@ void t35() {
void t36() {
int arr[4];
__asm mov eax, 4[arr]
+ __asm mov eax, 4[arr + 4]
+ __asm mov eax, 8[arr + 4 + 32*2 - 4]
+ __asm mov eax, 12[4 + arr]
+ __asm mov eax, 4[4 + arr + 4]
+ __asm mov eax, 4[64 + arr + (2*32)]
+ __asm mov eax, 4[64 + arr - 2*32]
__asm mov eax, [arr + 4]
__asm mov eax, [arr + 4 + 32*2 - 4]
__asm mov eax, [4 + arr]
@@ -380,6 +386,12 @@ void t36() {
__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]* %{{.*}})
+// 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 $$72$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$16$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$12$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$132$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
+// 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 $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$64$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %{{.*}})
More information about the cfe-commits
mailing list