forked from OSchip/llvm-project
17 lines
352 B
LLVM
17 lines
352 B
LLVM
; RUN: llc -mcpu=a2 < %s | FileCheck %s
|
|
target datalayout = "E-m:e-i64:64-n32:64"
|
|
target triple = "powerpc64-bgq-linux"
|
|
|
|
define linkonce_odr double @test1() {
|
|
entry:
|
|
%conv6.i.i = fptosi ppc_fp128 undef 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
|
|
}
|
|
|