aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-03-27 21:50:39 +0000
committerChad Rosier <mcrosier@apple.com>2013-03-27 21:50:39 +0000
commit5e5ca1b7ed21c48f03b8629f7dfa2dbba23fcc68 (patch)
treed5214541c7dc612b5186e76fa4d17ae91107a47c
parent0353b70b6a1f51e0b59c4707d2d73870f075b322 (diff)
Add a front-end test case for r178186.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178187 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/ms-inline-asm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index 594c3f2f16..ee5118d86f 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -383,4 +383,12 @@ void t33() {
// CHECK: call void asm sideeffect inteldialect "mov al, byte ptr $0", "*m,~{al},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]]
}
+void t34() {
+ __asm prefetchnta 64[eax]
+ __asm mov eax, dword ptr 4[eax]
+// CHECK: 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}"()
+}
+
// CHECK: attributes [[NUW]] = { nounwind }