diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-25 21:52:03 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-25 21:52:03 +0000 |
commit | d2e7d20dc7a3c9b9d0b2e0b8e3266bf57416fa21 (patch) | |
tree | 3a4ddb6e40e6b7fde8183607a2ef8fe995f031da /test/CodeGen/ms-inline-asm.c | |
parent | 802f93736a9ae76ffcbd90dbaf1c0b185531bb30 (diff) |
[ms-inline asm] Add a test case for r166723 and r166724.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-inline-asm.c')
-rw-r--r-- | test/CodeGen/ms-inline-asm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index e875698684..cd0d05ebf6 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -179,3 +179,17 @@ int t18() { // CHECK: t18 // CHECK: call void asm sideeffect inteldialect "lea ebx, foo\0A\09mov eax, [ebx].0\0A\09mov [ebx].4, ecx", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind } + +int t19() { + struct t18_type foo; + foo.a = 1; + foo.b = 2; + __asm { + lea ebx, foo + mov eax, [ebx].foo.a + mov [ebx].foo.b, ecx + } + return foo.b; +// CHECK: t19 +// CHECK: call void asm sideeffect inteldialect "lea ebx, foo\0A\09mov eax, [ebx].0\0A\09mov [ebx].4, ecx", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind +} |