forked from OSchip/llvm-project
16 lines
390 B
LLVM
16 lines
390 B
LLVM
; RUN: llc -verify-machineinstrs -mcpu=a2 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
|
|
target datalayout = "E-m:e-i64:64-n32:64"
|
|
|
|
define linkonce_odr double @test1(ppc_fp128 %input) {
|
|
entry:
|
|
%conv6.i.i = fptosi ppc_fp128 %input to i64
|
|
%conv.i = sitofp i64 %conv6.i.i to double
|
|
ret double %conv.i
|
|
|
|
; CHECK-LABEL: @test1
|
|
; CHECK: bl __fixtfdi
|
|
; CHECK: fcfid
|
|
; CHECK: blr
|
|
}
|
|
|