Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -march=ppc32
      2 
      3 define i32 @foo() {
      4 entry:
      5 	%retval = alloca i32		; <i32*> [#uses=2]
      6 	%tmp = alloca i32		; <i32*> [#uses=2]
      7 	%"alloca point" = bitcast i32 0 to i32		; <i32> [#uses=0]
      8 	%tmp1 = call i32 @llvm.flt.rounds( )		; <i32> [#uses=1]
      9 	store i32 %tmp1, i32* %tmp, align 4
     10 	%tmp2 = load i32, i32* %tmp, align 4		; <i32> [#uses=1]
     11 	store i32 %tmp2, i32* %retval, align 4
     12 	br label %return
     13 
     14 return:		; preds = %entry
     15 	%retval3 = load i32, i32* %retval		; <i32> [#uses=1]
     16 	ret i32 %retval3
     17 }
     18 
     19 declare i32 @llvm.flt.rounds() nounwind 
     20