brintos

brintos / llvm-project-archived public Read only

0
0
Text · 482 B · d2b0954 Raw
21 lines · c
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -ffreestanding -verify -fsyntax-only %s2 3#include <tmmintrin.h>4#include <stdint.h>5 6extern int i;7 8int main (void)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