brintos

brintos / llvm-project-archived public Read only

0
0
Text · 875 B · a264272 Raw
32 lines · plain
1; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=162 3@i = global i32 25, align 44@.str = private unnamed_addr constant [5 x i8] c"%i \0A\00", align 15 6define void @p(ptr %i) nounwind {7entry:8  ret void9}10 11 12define void @foo() nounwind {13entry:14  %y = alloca [512 x i32], align 415  %x = alloca i32, align 816  %zz = alloca i32, align 417  %z = alloca i32, align 418  %0 = load i32, ptr @i, align 419  %arrayidx = getelementptr inbounds [512 x i32], ptr %y, i32 0, i32 1020  store i32 %0, ptr %arrayidx, align 421  %1 = load i32, ptr @i, align 422  store i32 %1, ptr %x, align 823  call void @p(ptr %x)24  %arrayidx1 = getelementptr inbounds [512 x i32], ptr %y, i32 0, i32 1025  call void @p(ptr %arrayidx1)26  ret void27}28; 16:	save	$ra, 204029; 16:	addiu	$sp, -40 # 16 bit inst30; 16:	addiu	$sp, 40 # 16 bit inst31; 16:	restore	$ra, 204032