blob: 0d8e621f354f3a477e62a504982b47da39504614 [file] [log] [blame]
Gabor Greif72c8f0d2008-02-26 13:37:13 +00001; RUN: llvm-as < %s | llc -march=ppc32
Dale Johannesen5c5eb802008-01-18 19:55:37 +00002
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