[llvm-commits] [llvm] r108733 - /llvm/trunk/test/FrontendC++/2010-07-19-nowarn.cpp

Dale Johannesen dalej at apple.com
Mon Jul 19 11:22:40 PDT 2010


Author: johannes
Date: Mon Jul 19 13:22:40 2010
New Revision: 108733

URL: http://llvm.org/viewvc/llvm-project?rev=108733&view=rev
Log:
Testcase for 108732 (8195660).


Added:
    llvm/trunk/test/FrontendC++/2010-07-19-nowarn.cpp

Added: llvm/trunk/test/FrontendC++/2010-07-19-nowarn.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2010-07-19-nowarn.cpp?rev=108733&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2010-07-19-nowarn.cpp (added)
+++ llvm/trunk/test/FrontendC++/2010-07-19-nowarn.cpp Mon Jul 19 13:22:40 2010
@@ -0,0 +1,21 @@
+// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
+// This should not warn about unreferenced label. 8195660.
+// XFAIL: *
+// XTARGET: x86,i386,i686
+
+void quarterAsm(int array[], int len)
+{
+  __asm
+  {
+    mov esi, array;
+    mov ecx, len;
+    shr ecx, 2;
+loop:
+    movdqa xmm0, [esi];
+    psrad xmm0, 2;
+    movdqa [esi], xmm0;
+    add esi, 16;
+    sub ecx, 1;
+    jnz loop;
+  }
+}





More information about the llvm-commits mailing list