r179400 - Add test case for r179399.
Chad Rosier
mcrosier at apple.com
Fri Apr 12 11:54:40 PDT 2013
Author: mcrosier
Date: Fri Apr 12 13:54:40 2013
New Revision: 179400
URL: http://llvm.org/viewvc/llvm-project?rev=179400&view=rev
Log:
Add test case for r179399.
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=179400&r1=179399&r2=179400&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Fri Apr 12 13:54:40 2013
@@ -373,13 +373,15 @@ void t36() {
int arr[4];
__asm mov eax, 4[arr]
__asm mov eax, [arr + 4]
+ __asm mov eax, [arr + 4 + 32*2 - 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]* %{{.*}})
-// 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 $$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]* %{{.*}})
// 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]* %{{.*}})
More information about the cfe-commits
mailing list