1 ; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=16
3 @i = global i32 25, align 4
4 @.str = private unnamed_addr constant [5 x i8] c"%i \0A\00", align 1
6 define void @p(ptr %i) nounwind {
12 define void @foo() nounwind {
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, ptr @i, align 4
19 %arrayidx = getelementptr inbounds [512 x i32], ptr %y, i32 0, i32 10
20 store i32 %0, ptr %arrayidx, align 4
21 %1 = load i32, ptr @i, align 4
22 store i32 %1, ptr %x, align 8
24 %arrayidx1 = getelementptr inbounds [512 x i32], ptr %y, i32 0, i32 10
25 call void @p(ptr %arrayidx1)
29 ; 16: addiu $sp, -40 # 16 bit inst
30 ; 16: addiu $sp, 40 # 16 bit inst
31 ; 16: restore $ra, 2040