vector.c revision df5a3f59ce40f751deaa4239f3721fe08690cdff
1// RUN: clang-cc -emit-llvm %s -o - 2typedef short __v4hi __attribute__ ((__vector_size__ (8))); 3 4void f() 5{ 6 __v4hi A = (__v4hi)0LL; 7} 8 9__v4hi x = {1,2,3}; 10__v4hi y = {1,2,3,4}; 11 12typedef int vty __attribute((vector_size(16))); 13int a() { vty b; return b[2LL]; } 14