r179340 - Test case for r179339.
Chad Rosier
mcrosier at apple.com
Thu Apr 11 16:37:53 PDT 2013
Author: mcrosier
Date: Thu Apr 11 18:37:53 2013
New Revision: 179340
URL: http://llvm.org/viewvc/llvm-project?rev=179340&view=rev
Log:
Test case for r179339.
Modified:
cfe/trunk/test/CodeGen/ms-inline-asm.cpp
Modified: cfe/trunk/test/CodeGen/ms-inline-asm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.cpp?rev=179340&r1=179339&r2=179340&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.cpp (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.cpp Thu Apr 11 18:37:53 2013
@@ -24,3 +24,13 @@ void t1() {
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr Foo::ptr", "~{eax},~{dirflag},~{fpsr},~{flags}"()
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr Foo::ptr", "~{eax},~{dirflag},~{fpsr},~{flags}"()
}
+
+int gvar = 10;
+void t2() {
+ int lvar = 10;
+ __asm mov eax, offset Foo::ptr
+ __asm mov eax, offset Foo::Bar::ptr
+// CHECK: t2
+// CHECK: call void asm sideeffect inteldialect "mov eax, Foo::ptr", "~{eax},~{dirflag},~{fpsr},~{flags}"()
+// CHECK: call void asm sideeffect inteldialect "mov eax, Foo::Bar::ptr", "~{eax},~{dirflag},~{fpsr},~{flags}"()
+}
More information about the cfe-commits
mailing list