]> granicus.if.org Git - clang/commitdiff
Add a front-end test case for r178186.
authorChad Rosier <mcrosier@apple.com>
Wed, 27 Mar 2013 21:50:39 +0000 (21:50 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 27 Mar 2013 21:50:39 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178187 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ms-inline-asm.c

index 594c3f2f16399d0548c2c5ece29d95016c88386d..ee5118d86f10d2ad2847f64a5d4200f8d7199e23 100644 (file)
@@ -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 }