[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / 2010-05-31-palignr.c
blobd2b095464d9e48f55127db546b36386a63582e39
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -ffreestanding -verify -fsyntax-only %s
3 #include <tmmintrin.h>
4 #include <stdint.h>
6 extern int i;
8 int main (void)
10 typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16)));
12 short dtbl[] = {1,2,3,4,5,6,7,8};
13 vSInt16 *vdtbl = (vSInt16*) dtbl;
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}}
19 return 0;