1 // RUN: not %llvmgcc -mssse3 -S -o /dev/null %s |& grep "error: mask must be an immediate" 2 // XFAIL: * 3 // XTARGET: x86,i386,i686 4 5 #include <tmmintrin.h> 6 7 extern int i; 8 9 int main () 10 { 11 #if defined( __SSSE3__ ) 12 13 typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16))); 14 15 short dtbl[] = {1,2,3,4,5,6,7,8}; 16 vSInt16 *vdtbl = (vSInt16*) dtbl; 17 18 vSInt16 v0; 19 v0 = *vdtbl; 20 v0 = _mm_alignr_epi8(v0, v0, i); 21 22 return 0; 23 #endif 24 } 25