2016-08-04 02:17:35 +08:00
|
|
|
; RUN: llc -verify-machineinstrs -mcpu=a2 < %s | FileCheck %s
|
2015-08-20 09:18:20 +08:00
|
|
|
target datalayout = "E-m:e-i64:64-n32:64"
|
|
|
|
target triple = "powerpc64-bgq-linux"
|
|
|
|
|
2016-04-07 23:30:55 +08:00
|
|
|
define linkonce_odr double @test1(ppc_fp128 %input) {
|
2015-08-20 09:18:20 +08:00
|
|
|
entry:
|
2016-04-07 23:30:55 +08:00
|
|
|
%conv6.i.i = fptosi ppc_fp128 %input to i64
|
2015-08-20 09:18:20 +08:00
|
|
|
%conv.i = sitofp i64 %conv6.i.i to double
|
|
|
|
ret double %conv.i
|
|
|
|
|
|
|
|
; CHECK-LABEL: @test1
|
|
|
|
; CHECK: bl __fixtfdi
|
|
|
|
; CHECK: fcfid
|
|
|
|
; CHECK: blr
|
|
|
|
}
|
|
|
|
|