diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-04-05 16:29:17 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-04-05 16:29:17 +0000 |
commit | 26949f13452f564e085686cd862121a96c6df6bf (patch) | |
tree | f99c2298150603e8e4e9e988060f03743e4c57da | |
parent | 4a7005e976d7ce9cac9cd347aff2b9964e68a23c (diff) | |
download | bcm5719-llvm-26949f13452f564e085686cd862121a96c6df6bf.tar.gz bcm5719-llvm-26949f13452f564e085686cd862121a96c6df6bf.zip |
Add test case for r178881.
llvm-svn: 178882
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index d50ecfe5b4b..c780b7b5bf2 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -310,7 +310,7 @@ void t26() { void t27() { __asm mov eax, fs:[0h] // CHECK: t27 -// CHECK: call void asm sideeffect inteldialect "mov eax, fs:[0h]", "~{eax},~{dirflag},~{fpsr},~{flags}"() +// CHECK: call void asm sideeffect inteldialect "mov eax, fs:[$$0h]", "~{eax},~{dirflag},~{fpsr},~{flags}"() } void t28() { @@ -390,3 +390,11 @@ void t34() { // CHECK: call void asm sideeffect inteldialect "prefetchnta $$64[eax]", "~{dirflag},~{fpsr},~{flags}"() // CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4[eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() } + +void t35() { + __asm prefetchnta [eax + (200*64)] + __asm mov eax, dword ptr [eax + (200*64)] +// CHECK: t35 +// CHECK: call void asm sideeffect inteldialect "prefetchnta [eax + ($$200*$$64)]", "~{dirflag},~{fpsr},~{flags}"() +// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr [eax + ($$200*$$64)]", "~{eax},~{dirflag},~{fpsr},~{flags}"() +} |