Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / ext-vector-indexing.c
blobbac51f39adab4b02f4f28b50648a0773ae053e20
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
3 typedef __attribute__(( ext_vector_type(4) )) float float4;
4 // CHECK: @test
5 void test(void)
7 float4 va;
8 va.hi[0] = 3.0;
9 // CHECK: [[VA:%.*]] = alloca <4 x float>
10 // CHECK: [[ADD:%.*]] = getelementptr inbounds float, ptr [[VA]], i64 2
11 // CHECK: [[ARRIDX:%.*]] = getelementptr inbounds float, ptr [[ADD]], i64 0
12 // CHECK: store float 3.000000e+00, ptr [[ARRIDX]]