• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: not %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o /dev/null %s
2 
3 #include <tmmintrin.h>
4 
5 extern int i;
6 
main()7 int 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 }
23