Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / union-align.c
blob73ea319b391b0090975fda173e82eed5ed74b137
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | grep load | grep "4 x float" | not grep "align 4"
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | grep load | grep "4 x float" | grep "align 16"
3 // PR3432
5 typedef float __m128 __attribute__ ((__vector_size__ (16)));
7 typedef union
9 int i[4];
10 float f[4];
11 __m128 v;
12 } u_t;
14 __m128 t(u_t *a) {
15 return a->v;