1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
2
3 typedef __attribute__(( ext_vector_type(4) )) float float4;
4 // CHECK: @test
test()5 void test()
6 {
7 float4 va;
8 va.hi[0] = 3.0;
9 // CHECK: [[VA:%.*]] = alloca <4 x float>
10 // CHECK: [[CONV:%.*]] = bitcast <4 x float>* [[VA]] to float*
11 // CHECK: [[ADD:%.*]] = getelementptr inbounds float, float* [[CONV]], i64 2
12 // CHECK: [[ARRIDX:%.*]] = getelementptr inbounds float, float* [[ADD]], i64 0
13 // CHECK: store float 3.000000e+00, float* [[ARRIDX]]
14 }
15