From 47abcf83a36751908f1ee43164c2b16e59338977 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Mon, 18 Mar 2013 23:32:33 +0000 Subject: [PATCH] Test case for r177347. llvm-svn: 177349 --- clang/test/CodeGen/ms-inline-asm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 7f130d6..b17e717 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -357,4 +357,17 @@ void t31() { // CHECK: call void asm sideeffect inteldialect "popad", "~{dirflag},~{fpsr},~{flags}"() [[NUW]] } +void t32() { + 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: t32 +// 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 } -- 2.7.4