blob: 2e753b42c4d70293c4d39dfd74d2fbb9bc61aaad [file] [log] [blame]
Daniel Dunbarffd408a2009-03-24 02:24:46 +00001// RUN: clang-cc -emit-llvm %s -o -
Anders Carlssonaba8c572008-02-01 23:17:55 +00002typedef short __v4hi __attribute__ ((__vector_size__ (8)));
3
4void f()
5{
6 __v4hi A = (__v4hi)0LL;
Anders Carlsson2c907202008-02-01 23:27:51 +00007}
Eli Friedman6c221712008-05-30 12:02:14 +00008
9__v4hi x = {1,2,3};
10__v4hi y = {1,2,3,4};
Eli Friedman4a0073b2009-03-28 02:45:41 +000011
Eli Friedmandf5a3f52009-03-28 03:14:28 +000012typedef int vty __attribute((vector_size(16)));
13int a() { vty b; return b[2LL]; }