diff options
Diffstat (limited to 'clang/test/CodeGen/ms-inline-asm-64.c')
| -rw-r--r-- | clang/test/CodeGen/ms-inline-asm-64.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm-64.c b/clang/test/CodeGen/ms-inline-asm-64.c index d6f6e2ee0e0..69828feb362 100644 --- a/clang/test/CodeGen/ms-inline-asm-64.c +++ b/clang/test/CodeGen/ms-inline-asm-64.c @@ -5,14 +5,18 @@ void t1() { int var = 10; __asm mov rax, offset var ; rax = address of myvar // CHECK: t1 -// CHECK: call void asm sideeffect inteldialect "mov rax, $0", "r,~{rax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) +// CHECK: call void asm sideeffect inteldialect +// CHECK-SAME: mov rax, $0 +// CHECK-SAME: "r,~{rax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) } void t2() { int var = 10; __asm mov [eax], offset var // CHECK: t2 -// CHECK: call void asm sideeffect inteldialect "mov [eax], $0", "r,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) +// CHECK: call void asm sideeffect inteldialect +// CHECK-SAME: mov [eax], $0 +// CHECK-SAME: "r,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) } struct t3_type { int a, b; }; @@ -28,7 +32,11 @@ int t3() { } return foo.b; // CHECK: t3 -// CHECK: call void asm sideeffect inteldialect "lea ebx, qword ptr $0\0A\09mov eax, [ebx].0\0A\09mov [ebx].4, ecx", "*m,~{eax},~{ebx},~{dirflag},~{fpsr},~{flags}"(%struct.t3_type* %{{.*}}) +// CHECK: call void asm sideeffect inteldialect +// CHECK-SAME: lea ebx, $0 +// CHECK-SAME: mov eax, [ebx].0 +// CHECK-SAME: mov [ebx].4, ecx +// CHECK-SAME: "*m,~{eax},~{ebx},~{dirflag},~{fpsr},~{flags}"(%struct.t3_type* %{{.*}}) } int t4() { @@ -44,5 +52,9 @@ int t4() { } return foo.b; // CHECK: t4 -// CHECK: call void asm sideeffect inteldialect "lea ebx, qword ptr $0\0A\09mov eax, [ebx].0\0A\09mov [ebx].4, ecx", "*m,~{eax},~{ebx},~{dirflag},~{fpsr},~{flags}"(%struct.t3_type* %{{.*}}) +// CHECK: call void asm sideeffect inteldialect +// CHECK-SAME: lea ebx, $0 +// CHECK-SAME: mov eax, [ebx].0 +// CHECK-SAME: mov [ebx].4, ecx +// CHECK-SAME: "*m,~{eax},~{ebx},~{dirflag},~{fpsr},~{flags}"(%struct.t3_type* %{{.*}}) } |

