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