1; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=16
2
3@i = global i32 25, align 4
4@.str = private unnamed_addr constant [5 x i8] c"%i \0A\00", align 1
5
6define void @p(i32* %i) nounwind {
7entry:
8  ret void
9}
10
11
12define void @foo() nounwind {
13entry:
14  %y = alloca [512 x i32], align 4
15  %x = alloca i32, align 8
16  %zz = alloca i32, align 4
17  %z = alloca i32, align 4
18  %0 = load i32* @i, align 4
19  %arrayidx = getelementptr inbounds [512 x i32]* %y, i32 0, i32 10
20  store i32 %0, i32* %arrayidx, align 4
21  %1 = load i32* @i, align 4
22  store i32 %1, i32* %x, align 8
23  call void @p(i32* %x)
24  %arrayidx1 = getelementptr inbounds [512 x i32]* %y, i32 0, i32 10
25  call void @p(i32* %arrayidx1)
26  ret void
27}
28; 16:	save	$ra, $s0, $s1, $s2, 2040
29; 16:	addiu	$sp, -56 # 16 bit inst
30; 16:	addiu	$sp, 56 # 16 bit inst
31; 16:	restore	$ra,  $s0, $s1, $s2, 2040
32