1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -ffreestanding -verify -fsyntax-only %s
2 
3 #include <tmmintrin.h>
4 #include <stdint.h>
5 
6 extern int i;
7 
main()8 int main ()
9 {
10   typedef int16_t     vSInt16         __attribute__ ((__vector_size__ (16)));
11 
12   short   dtbl[] = {1,2,3,4,5,6,7,8};
13   vSInt16 *vdtbl = (vSInt16*) dtbl;
14 
15   vSInt16 v0;
16   v0 = *vdtbl;
17   _mm_alignr_epi8(v0, v0, i); // expected-error {{argument to '__builtin_ia32_palignr128' must be a constant integer}}
18 
19   return 0;
20 }
21