blob: 159639e396c6ac14164e3fd4932eae83f91e7180 [file] [log] [blame]
Dale Johannesen5c5eb802008-01-18 19:55:37 +00001; RUN: llvm-as | llc -march=ppc32
2
3define i32 @foo() {
4entry:
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* %tmp, align 4 ; <i32> [#uses=1]
11 store i32 %tmp2, i32* %retval, align 4
12 br label %return
13
14return: ; preds = %entry
15 %retval3 = load i32* %retval ; <i32> [#uses=1]
16 ret i32 %retval3
17}
18
19declare i32 @llvm.flt.rounds() nounwind