1; RUN: llc -O0 -mtriple=armv7-apple-darwin < %s 2 3define i32 @main() nounwind ssp { 4entry: 5 %retval = alloca i32, align 4 6 %X = alloca <4 x i32>, align 16 7 %Y = alloca <4 x float>, align 16 8 store i32 0, i32* %retval 9 %tmp = load <4 x i32>* %X, align 16 10 call void @__aa(<4 x i32> %tmp, i8* null, i32 3, <4 x float>* %Y) 11 %0 = load i32* %retval 12 ret i32 %0 13} 14 15define internal void @__aa(<4 x i32> %v, i8* %p, i32 %offset, <4 x float>* %constants) nounwind inlinehint ssp { 16entry: 17 %__a.addr.i = alloca <4 x i32>, align 16 18 %v.addr = alloca <4 x i32>, align 16 19 %p.addr = alloca i8*, align 4 20 %offset.addr = alloca i32, align 4 21 %constants.addr = alloca <4 x float>*, align 4 22 store <4 x i32> %v, <4 x i32>* %v.addr, align 16 23 store i8* %p, i8** %p.addr, align 4 24 store i32 %offset, i32* %offset.addr, align 4 25 store <4 x float>* %constants, <4 x float>** %constants.addr, align 4 26 %tmp = load <4 x i32>* %v.addr, align 16 27 store <4 x i32> %tmp, <4 x i32>* %__a.addr.i, align 16 28 %tmp.i = load <4 x i32>* %__a.addr.i, align 16 29 %0 = bitcast <4 x i32> %tmp.i to <16 x i8> 30 %1 = bitcast <16 x i8> %0 to <4 x i32> 31 %vcvt.i = sitofp <4 x i32> %1 to <4 x float> 32 %tmp1 = load i8** %p.addr, align 4 33 %tmp2 = load i32* %offset.addr, align 4 34 %tmp3 = load <4 x float>** %constants.addr, align 4 35 call void @__bb(<4 x float> %vcvt.i, i8* %tmp1, i32 %tmp2, <4 x float>* %tmp3) 36 ret void 37} 38 39define internal void @__bb(<4 x float> %v, i8* %p, i32 %offset, <4 x float>* %constants) nounwind inlinehint ssp { 40entry: 41 %v.addr = alloca <4 x float>, align 16 42 %p.addr = alloca i8*, align 4 43 %offset.addr = alloca i32, align 4 44 %constants.addr = alloca <4 x float>*, align 4 45 %data = alloca i64, align 4 46 store <4 x float> %v, <4 x float>* %v.addr, align 16 47 store i8* %p, i8** %p.addr, align 4 48 store i32 %offset, i32* %offset.addr, align 4 49 store <4 x float>* %constants, <4 x float>** %constants.addr, align 4 50 %tmp = load i64* %data, align 4 51 %tmp1 = load i8** %p.addr, align 4 52 %tmp2 = load i32* %offset.addr, align 4 53 %add.ptr = getelementptr i8* %tmp1, i32 %tmp2 54 %0 = bitcast i8* %add.ptr to i64* 55 %arrayidx = getelementptr inbounds i64* %0, i32 0 56 store i64 %tmp, i64* %arrayidx 57 ret void 58} 59