[cfe-commits] r166434 - /cfe/trunk/test/CodeGen/ms-inline-asm.c
Chad Rosier
mcrosier at apple.com
Mon Oct 22 12:43:17 PDT 2012
Author: mcrosier
Date: Mon Oct 22 14:43:17 2012
New Revision: 166434
URL: http://llvm.org/viewvc/llvm-project?rev=166434&view=rev
Log:
[ms-inline asm] Test case for r166433.
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=166434&r1=166433&r2=166434&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Mon Oct 22 14:43:17 2012
@@ -137,3 +137,11 @@
// CHECK: t14
// CHECK: call void asm sideeffect inteldialect ".if 1\0A\09mov eax, dword ptr $0\0A\09.else\0A\09.endif", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
}
+
+void t15() {
+ int var = 10;
+ __asm mov eax, var ; eax = 10
+ __asm mov eax, offset var ; eax = address of myvar
+// CHECK: t15
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
+}
More information about the cfe-commits
mailing list