blob: 12be29af95c0c64be5cfc8baae3bfba3cfc5a115 [file] [log] [blame]
Eric Christopher5485ac02011-07-26 00:47:54 +00001// RUN: not %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o /dev/null %s
2
3#include <tmmintrin.h>
4
5extern int i;
6
7int main ()
8{
9#if defined( __SSSE3__ )
10
11 typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16)));
12
13 short dtbl[] = {1,2,3,4,5,6,7,8};
14 vSInt16 *vdtbl = (vSInt16*) dtbl;
15
16 vSInt16 v0;
17 v0 = *vdtbl;
18 v0 = _mm_alignr_epi8(v0, v0, i); // expected-error {{argument to '__builtin_ia32_palignr128' must be a constant integer}}
19
20 return 0;
21#endif
22}