diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-10-22 19:43:17 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-10-22 19:43:17 +0000 |
| commit | f7000f8c5b50b12c0868e7212330a35ec02178ab (patch) | |
| tree | 2bf141ace68323bd2d15c1debd5ca39e6136128c | |
| parent | c14ed95da42cdb154645cc3c7f7a25a32b3d877b (diff) | |
| download | bcm5719-llvm-f7000f8c5b50b12c0868e7212330a35ec02178ab.tar.gz bcm5719-llvm-f7000f8c5b50b12c0868e7212330a35ec02178ab.zip | |
[ms-inline asm] Test case for r166433.
llvm-svn: 166434
| -rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 87f2334170e..98a384c70e0 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -137,3 +137,11 @@ void t14() { // 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 +} |

