1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/test/CodeGen/X86/legalize-libcalls.ll
Dan Gohman dedcc22bcd Reapply r143177 and r143179 (reverting r143188), with scheduler
fixes: Use a separate register, instead of SP, as the
calling-convention resource, to avoid spurious conflicts with
actual uses of SP. Also, fix unscheduling of calling sequences,
which can be triggered by pseudo-two-address dependencies.

llvm-svn: 143206
2011-10-28 17:55:38 +00:00

20 lines
762 B
LLVM

; RUN: llc -march=x86 < %s
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"
target triple = "i386-apple-macosx10.7.0"
define float @MakeSphere(float %theta.079) nounwind {
entry:
%add36 = fadd float %theta.079, undef
%call = call float @cosf(float %theta.079) nounwind readnone
%call45 = call float @sinf(float %theta.079) nounwind readnone
%call37 = call float @sinf(float %add36) nounwind readnone
store float %call, float* undef, align 8
store float %call37, float* undef, align 8
store float %call45, float* undef, align 8
ret float %add36
}
declare float @cosf(float) nounwind readnone
declare float @sinf(float) nounwind readnone