blob: 89a9456e609d26143758af5751751c1fc7e17a36 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | grep load | grep "4 x float" | not grep "align 4"
2// RUN: %clang_cc1 -emit-llvm %s -o - | grep load | grep "4 x float" | grep "align 16"
3// PR3432
4// rdar://6536377
5
6typedef float __m128 __attribute__ ((__vector_size__ (16)));
7
8typedef union
9{
10 int i[4];
11 float f[4];
12 __m128 v;
13} u_t;
14
15__m128 t(u_t *a) {
16 return a->v;
17}