r178187 - Add a front-end test case for r178186.

Chad Rosier mcrosier at apple.com
Wed Mar 27 14:50:39 PDT 2013


Author: mcrosier
Date: Wed Mar 27 16:50:39 2013
New Revision: 178187

URL: http://llvm.org/viewvc/llvm-project?rev=178187&view=rev
Log:
Add a front-end test case for r178186.

Modified:
    cfe/trunk/test/CodeGen/ms-inline-asm.c

Modified: cfe/trunk/test/CodeGen/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.c?rev=178187&r1=178186&r2=178187&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Wed Mar 27 16:50:39 2013
@@ -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 }





More information about the cfe-commits mailing list