xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/legalize-libcalls.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=x86 < %s
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=x86-64 < %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workertarget 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"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine float @MakeSphere(float %theta.079) nounwind {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  %add36 = fadd float %theta.079, undef
9*9880d681SAndroid Build Coastguard Worker  %call = call float @cosf(float %theta.079) nounwind readnone
10*9880d681SAndroid Build Coastguard Worker  %call45 = call float @sinf(float %theta.079) nounwind readnone
11*9880d681SAndroid Build Coastguard Worker  %call37 = call float @sinf(float %add36) nounwind readnone
12*9880d681SAndroid Build Coastguard Worker  store float %call, float* undef, align 8
13*9880d681SAndroid Build Coastguard Worker  store float %call37, float* undef, align 8
14*9880d681SAndroid Build Coastguard Worker  store float %call45, float* undef, align 8
15*9880d681SAndroid Build Coastguard Worker  ret float %add36
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerdefine hidden fastcc void @unroll_loop(i64 %storemerge32129) nounwind {
19*9880d681SAndroid Build Coastguard Workerentry:
20*9880d681SAndroid Build Coastguard Worker  call fastcc void @copy_rtx() nounwind
21*9880d681SAndroid Build Coastguard Worker  call fastcc void @copy_rtx() nounwind
22*9880d681SAndroid Build Coastguard Worker  %tmp225 = alloca i8, i64 %storemerge32129, align 8 ; [#uses=0 type=i8*]
23*9880d681SAndroid Build Coastguard Worker  %cmp651201 = icmp slt i64 %storemerge32129, 0   ; [#uses=1 type=i1]
24*9880d681SAndroid Build Coastguard Worker  br i1 %cmp651201, label %for.body653.lr.ph, label %if.end638.for.end659_crit_edge
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Workerfor.body653.lr.ph:                                ; preds = %entry
27*9880d681SAndroid Build Coastguard Worker  unreachable
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Workerif.end638.for.end659_crit_edge:                   ; preds = %entry
30*9880d681SAndroid Build Coastguard Worker  unreachable
31*9880d681SAndroid Build Coastguard Worker}
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Workerdeclare float @cosf(float) nounwind readnone
34*9880d681SAndroid Build Coastguard Workerdeclare float @sinf(float) nounwind readnone
35*9880d681SAndroid Build Coastguard Workerdeclare hidden fastcc void @copy_rtx() nounwind
36