xref: /llvm-project/llvm/test/CodeGen/PowerPC/fp2int2fp-ppcfp128.ll (revision d28f86723f37b2329428dfbcf847d3261f38dcc8)
1; RUN: llc -verify-machineinstrs -mcpu=a2 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
2target datalayout = "E-m:e-i64:64-n32:64"
3
4define linkonce_odr double @test1(ppc_fp128 %input) {
5entry:
6  %conv6.i.i = fptosi ppc_fp128 %input to i64
7  %conv.i = sitofp i64 %conv6.i.i to double
8  ret double %conv.i
9
10; CHECK-LABEL: @test1
11; CHECK: bl __fixtfdi
12; CHECK: fcfid
13; CHECK: blr
14}
15
16