Tanya Lattner | b92ae0e | 2011-04-15 22:42:59 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o %t |
2 | |||||
3 | typedef __attribute__((ext_vector_type(8))) unsigned char uchar8; | ||||
4 | typedef __attribute__((ext_vector_type(4))) unsigned long ulong4; | ||||
5 | typedef __attribute__((ext_vector_type(16))) unsigned char uchar16; | ||||
6 | |||||
7 | // OpenCL allows vectors to be initialized by vectors Handle bug in | ||||
8 | // VisitInitListExpr for this case below. | ||||
9 | void foo( ulong4 v ) | ||||
10 | { | ||||
11 | uchar8 val[4] = {{(uchar8){((uchar16)(v.lo)).lo}}}; | ||||
12 | } |