diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-03-19 21:12:57 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-03-19 21:12:57 +0000 |
commit | 993bd120bcc27a00e38d2db2c141f680f25a7645 (patch) | |
tree | e59c3046451efa5eac0dc5fa3d85380cf835a602 | |
parent | 17d3799352555d9e552f2dc7fff599ef27ff7ce0 (diff) | |
download | bcm5719-llvm-993bd120bcc27a00e38d2db2c141f680f25a7645.tar.gz bcm5719-llvm-993bd120bcc27a00e38d2db2c141f680f25a7645.zip |
Test case for r177439 and r177440.
llvm-svn: 177441
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 37d8f0864f7..594c3f2f163 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/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 } |