r177441 - Test case for r177439 and r177440.
Chad Rosier
mcrosier at apple.com
Tue Mar 19 14:12:57 PDT 2013
Author: mcrosier
Date: Tue Mar 19 16:12:57 2013
New Revision: 177441
URL: http://llvm.org/viewvc/llvm-project?rev=177441&view=rev
Log:
Test case for r177439 and r177440.
Modified:
cfe/trunk/test/CodeGen/ms-inline-asm.c
Modified: cfe/trunk/test/CodeGen/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.c?rev=177441&r1=177440&r2=177441&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Tue Mar 19 16:12:57 2013
@@ -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 }
More information about the cfe-commits
mailing list