[llvm-commits] [llvm] r105253 - /llvm/trunk/test/FrontendC/2010-05-31-palignr.c
Eric Christopher
echristo at apple.com
Mon May 31 13:39:10 PDT 2010
Author: echristo
Date: Mon May 31 15:39:10 2010
New Revision: 105253
URL: http://llvm.org/viewvc/llvm-project?rev=105253&view=rev
Log:
Add a test for the llvm-gcc commit in r90200.
Added:
llvm/trunk/test/FrontendC/2010-05-31-palignr.c
Added: llvm/trunk/test/FrontendC/2010-05-31-palignr.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-05-31-palignr.c?rev=105253&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2010-05-31-palignr.c (added)
+++ llvm/trunk/test/FrontendC/2010-05-31-palignr.c Mon May 31 15:39:10 2010
@@ -0,0 +1,24 @@
+// RUN: not %llvmgcc -mssse3 -S -o /dev/null %s |& grep "error: mask must be an immediate"
+// XFAIL: *
+// XTARGET: x86,i386,i686
+
+#include <tmmintrin.h>
+
+extern int i;
+
+int main ()
+{
+#if defined( __SSSE3__ )
+
+ typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16)));
+
+ short dtbl[] = {1,2,3,4,5,6,7,8};
+ vSInt16 *vdtbl = (vSInt16*) dtbl;
+
+ vSInt16 v0;
+ v0 = *vdtbl;
+ v0 = _mm_alignr_epi8(v0, v0, i);
+
+ return 0;
+#endif
+}
More information about the llvm-commits
mailing list