From: Chad Rosier Date: Tue, 19 Mar 2013 21:12:57 +0000 (+0000) Subject: Test case for r177439 and r177440. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7936c9b2b195d099ffbb7ab32f0211a89a3270b;p=clang Test case for r177439 and r177440. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177441 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index 37d8f0864f..594c3f2f16 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -370,4 +370,17 @@ void t32() { // CHECK: call void asm sideeffect inteldialect "mov al, byte ptr $0", "*m,~{al},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]] } +void t33() { + int i; + __asm mov eax, [i] + __asm mov eax, dword ptr [i] + __asm mov ax, word ptr [i] + __asm mov al, byte ptr [i] +// CHECK: t33 +// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]] +// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]] +// CHECK: call void asm sideeffect inteldialect "mov ax, word ptr $0", "*m,~{ax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]] +// CHECK: call void asm sideeffect inteldialect "mov al, byte ptr $0", "*m,~{al},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]] +} + // CHECK: attributes [[NUW]] = { nounwind }