diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-04-11 23:37:53 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-04-11 23:37:53 +0000 |
commit | dbcfa8b95543cd8601c6acd9021168f0019f9757 (patch) | |
tree | 9b675836c053037b643a01c370e4e13b8332d444 | |
parent | 759c40e8a485fe51e519701d46a3cb19ec38dbbe (diff) |
Test case for r179339.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179340 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/ms-inline-asm.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.cpp b/test/CodeGen/ms-inline-asm.cpp index 5d3a853a28..7e11700e1a 100644 --- a/test/CodeGen/ms-inline-asm.cpp +++ b/test/CodeGen/ms-inline-asm.cpp @@ -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}"() +} |