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