summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-07-19 18:22:40 +0000
committerDale Johannesen <dalej@apple.com>2010-07-19 18:22:40 +0000
commit6ee32707f1dda2d885812c0a2e755051d1d7db08 (patch)
treeab25d7dd6185e12d360a5331508ef0ed5b1480a3
parent8b3a6b651e267e5e6e68a3bd0aabd8ee90eb1aac (diff)
downloadllvm-6ee32707f1dda2d885812c0a2e755051d1d7db08.tar.gz
llvm-6ee32707f1dda2d885812c0a2e755051d1d7db08.tar.bz2
llvm-6ee32707f1dda2d885812c0a2e755051d1d7db08.tar.xz
Testcase for 108732 (8195660).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108733 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/FrontendC++/2010-07-19-nowarn.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/FrontendC++/2010-07-19-nowarn.cpp b/test/FrontendC++/2010-07-19-nowarn.cpp
new file mode 100644
index 0000000000..8742bf1523
--- /dev/null
+++ b/test/FrontendC++/2010-07-19-nowarn.cpp
@@ -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;
+ }
+}