1 ; RUN: opt -sroa -S < %s | FileCheck %s
3 target datalayout = "e-p:64:32-i64:32-v32:32-n32-S64"
5 ; Function Attrs: nounwind
6 declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #0
8 ; Function Attrs: nounwind
9 declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #0
14 define void @wombat(<4 x float> %arg1) {
16 %tmp = alloca <4 x float>, align 16
17 %tmp8 = bitcast <4 x float>* %tmp to i8*
18 call void @llvm.lifetime.start.p0i8(i64 16, i8* %tmp8)
19 store <4 x float> %arg1, <4 x float>* %tmp, align 16
20 %tmp17 = bitcast <4 x float>* %tmp to <3 x float>*
21 %tmp18 = load <3 x float>, <3 x float>* %tmp17
22 %tmp20 = bitcast <4 x float>* %tmp to i8*
23 call void @llvm.lifetime.end.p0i8(i64 16, i8* %tmp20)
24 call void @wombat3(<3 x float> %tmp18)
28 ; Function Attrs: nounwind
29 declare void @wombat3(<3 x float>) #0
31 attributes #0 = { nounwind }