1; Check that register scavenging spill slot is close to $fp.
2; RUN: llc -march=mipsel -O0 -relocation-model=pic < %s | FileCheck %s
3
4; CHECK: sw ${{.*}}, 8($sp)
5; CHECK: lw ${{.*}}, 8($sp)
6
7define i32 @main(i32 signext %argc, i8** %argv) #0 {
8entry:
9  %retval = alloca i32, align 4
10  %argc.addr = alloca i32, align 4
11  %argv.addr = alloca i8**, align 4
12  %v0 = alloca <16 x i8>, align 16
13  %.compoundliteral = alloca <16 x i8>, align 16
14  %v1 = alloca <16 x i8>, align 16
15  %.compoundliteral1 = alloca <16 x i8>, align 16
16  %unused_variable = alloca [16384 x i32], align 4
17  %result = alloca <16 x i8>, align 16
18  store i32 0, i32* %retval
19  store i32 %argc, i32* %argc.addr, align 4
20  store i8** %argv, i8*** %argv.addr, align 4
21  store <16 x i8> <i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15, i8 16>, <16 x i8>* %.compoundliteral
22  %0 = load <16 x i8>, <16 x i8>* %.compoundliteral
23  store <16 x i8> %0, <16 x i8>* %v0, align 16
24  store <16 x i8> zeroinitializer, <16 x i8>* %.compoundliteral1
25  %1 = load <16 x i8>, <16 x i8>* %.compoundliteral1
26  store <16 x i8> %1, <16 x i8>* %v1, align 16
27  %2 = load <16 x i8>, <16 x i8>* %v0, align 16
28  %3 = load <16 x i8>, <16 x i8>* %v1, align 16
29  %mul = mul <16 x i8> %2, %3
30  store <16 x i8> %mul, <16 x i8>* %result, align 16
31  ret i32 0
32}
33
34attributes #0 = { noinline "no-frame-pointer-elim"="true" }
35