From: Chad Rosier Date: Tue, 2 Oct 2012 20:55:30 +0000 (+0000) Subject: [ms-inline asm] Fixup test case to be valid ms-style asm. Fix whitespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac9289deef6536e47b0da2c6d67d0a74e777b5a2;p=clang [ms-inline asm] Fixup test case to be valid ms-style asm. Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165045 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index 5d43163116..0eac11c20b 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -57,6 +57,7 @@ void t7() { // CHECK: call void asm sideeffect inteldialect "int $$0x2c", "~{dirflag},~{fpsr},~{flags}"() nounwind // CHECK: call void asm sideeffect inteldialect "", "~{dirflag},~{fpsr},~{flags}"() nounwind } + int t8() { __asm int 3 ; } comments for single-line asm __asm {} @@ -68,6 +69,7 @@ int t8() { // CHECK: call void asm sideeffect inteldialect "int $$4", "~{dirflag},~{fpsr},~{flags}"() nounwind // CHECK: ret i32 10 } + void t9() { __asm { push ebx @@ -135,10 +137,10 @@ void t15(void) { // CHECK: call void asm sideeffect inteldialect "mov eax, DWORD PTR [eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind } -void t16(unsigned long long V) { +void t16(unsigned V) { __asm mov eax, DWORD PTR [V] // CHECK: t16 -// CHECK: call void asm sideeffect inteldialect "mov eax, DWORD PTR [$0]", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i64 %{{.*}}) nounwind +// CHECK: call void asm sideeffect inteldialect "mov eax, DWORD PTR [$0]", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32 %{{.*}}) nounwind } void t17(void) {