Fixed some bugs.
[llvm/zpu.git] / test / FrontendC / 2010-05-31-palignr.c
blob9da3145153f7c91802c55603d6417fbabadaecca
1 // RUN: not %llvmgcc -mssse3 -S -o /dev/null %s |& grep "error: mask must be an immediate"
2 // XFAIL: *
3 // XTARGET: x86,i386,i686
5 #include <tmmintrin.h>
7 extern int i;
9 int main ()
11 #if defined( __SSSE3__ )
13 typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16)));
15 short dtbl[] = {1,2,3,4,5,6,7,8};
16 vSInt16 *vdtbl = (vSInt16*) dtbl;
18 vSInt16 v0;
19 v0 = *vdtbl;
20 v0 = _mm_alignr_epi8(v0, v0, i);
22 return 0;
23 #endif