Reapply r143177 and r143179 (reverting r143188), with scheduler
[oota-llvm.git] / test / CodeGen / X86 / legalize-libcalls.ll
1 ; RUN: llc -march=x86 < %s
2
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128"
4 target triple = "i386-apple-macosx10.7.0"
5
6 define float @MakeSphere(float %theta.079) nounwind {
7 entry:
8   %add36 = fadd float %theta.079, undef
9   %call = call float @cosf(float %theta.079) nounwind readnone
10   %call45 = call float @sinf(float %theta.079) nounwind readnone
11   %call37 = call float @sinf(float %add36) nounwind readnone
12   store float %call, float* undef, align 8
13   store float %call37, float* undef, align 8
14   store float %call45, float* undef, align 8
15   ret float %add36
16 }
17
18 declare float @cosf(float) nounwind readnone
19 declare float @sinf(float) nounwind readnone