aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/ms-inline-asm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index d36c77007a..9e61d9f3cd 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -402,6 +402,9 @@ void t35() {
void t36() {
int arr[4];
__asm mov eax, 4[arr]
+ __asm mov eax, [arr + 4]
+ __asm mov eax, [4 + arr]
+ __asm mov eax, [4 + arr + 4]
// CHECK: t36
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %arr)
}