xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/ppcf128-4.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine ppc_fp128 @__floatditf(i64 %u) nounwind  {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker        %tmp6 = fmul ppc_fp128 0xM00000000000000000000000000000000, 0xM41F00000000000000000000000000000
6*9880d681SAndroid Build Coastguard Worker        %tmp78 = trunc i64 %u to i32
7*9880d681SAndroid Build Coastguard Worker        %tmp789 = uitofp i32 %tmp78 to ppc_fp128
8*9880d681SAndroid Build Coastguard Worker        %tmp11 = fadd ppc_fp128 %tmp789, %tmp6
9*9880d681SAndroid Build Coastguard Worker        ret ppc_fp128 %tmp11
10*9880d681SAndroid Build Coastguard Worker}
11