1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
3 typedef float float4 __attribute__((ext_vector_type(4)));
5 struct __attribute__((packed, aligned(4))) struct1 {
8 int x = __alignof(struct struct1);
10 float4 f(struct struct1* x) { return x->position; }
12 void func(struct struct1* p, float *a, float *b, float c) {
17 // FIXME: We should be able to come up with a more aggressive alignment
20 // CHECK: load <4 x float>, <4 x float>* {{%.*}}, align 1
21 // CHECK: store <4 x float> {{%.*}}, <4 x float>* {{%.*}}, align 1
22 // CHECK: load <4 x float>, <4 x float>* {{%.*}}, align 1
23 // CHECK: load <4 x float>, <4 x float>* {{%.*}}, align 1
24 // CHECK: load <4 x float>, <4 x float>* {{%.*}}, align 1
25 // CHECK: store <4 x float> {{%.*}}, <4 x float>* {{%.*}}, align 1