1 ; RUN: llc < %s -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s
3 define i32 @_Z4funci(i32 %a) ssp {
5 ; CHECK-NEXT: stw r31, -4(r1)
6 ; CHECK-NEXT: stw r0, 8(r1)
7 ; CHECK-NEXT: stwu r1, -80(r1)
9 ; CHECK-NEXT: mr r31, r1
12 %a_addr = alloca i32 ; <i32*> [#uses=2]
13 %retval = alloca i32 ; <i32*> [#uses=2]
14 %0 = alloca i32 ; <i32*> [#uses=2]
15 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
16 store i32 %a, i32* %a_addr
17 %1 = call i32 @_Z3barPi(i32* %a_addr) ; <i32> [#uses=1]
18 store i32 %1, i32* %0, align 4
19 %2 = load i32* %0, align 4 ; <i32> [#uses=1]
20 store i32 %2, i32* %retval, align 4
23 return: ; preds = %entry
24 %retval1 = load i32* %retval ; <i32> [#uses=1]
28 declare i32 @_Z3barPi(i32*)