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