projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce4fab
)
Test case for r179030.
author
Chad Rosier
<mcrosier@apple.com>
Mon, 8 Apr 2013 17:44:05 +0000
(17:44 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Mon, 8 Apr 2013 17:44:05 +0000
(17:44 +0000)
llvm-svn: 179031
clang/test/CodeGen/ms-inline-asm.c
patch
|
blob
|
history
diff --git
a/clang/test/CodeGen/ms-inline-asm.c
b/clang/test/CodeGen/ms-inline-asm.c
index
c780b7b
..
d36c770
100644
(file)
--- a/
clang/test/CodeGen/ms-inline-asm.c
+++ b/
clang/test/CodeGen/ms-inline-asm.c
@@
-398,3
+398,10
@@
void 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}"()
}
+
+void t36() {
+ int arr[4];
+ __asm mov eax, 4[arr]
+// CHECK: t36
+// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $$4$0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"([4 x i32]* %arr)
+}