xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/fp2int2fp-ppcfp128.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mcpu=a2 < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-m:e-i64:64-n32:64"
3*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64-bgq-linux"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine linkonce_odr double @test1(ppc_fp128 %input) {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker  %conv6.i.i = fptosi ppc_fp128 %input to i64
8*9880d681SAndroid Build Coastguard Worker  %conv.i = sitofp i64 %conv6.i.i to double
9*9880d681SAndroid Build Coastguard Worker  ret double %conv.i
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @test1
12*9880d681SAndroid Build Coastguard Worker; CHECK: bl __fixtfdi
13*9880d681SAndroid Build Coastguard Worker; CHECK: fcfid
14*9880d681SAndroid Build Coastguard Worker; CHECK: blr
15*9880d681SAndroid Build Coastguard Worker}
16*9880d681SAndroid Build Coastguard Worker
17