summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/fp-int128-fp-combine.ll
blob: 4a36f2404b6a587071a2e5b3121a61aff2625294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -O0 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s

; xscvdpsxds should NOT be emitted, since it saturates the result down to i64.
define float @f_i128_f(float %v) {
; CHECK-LABEL: f_i128_f:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    friz 1, 1
; CHECK-NEXT:    blr
entry:
  %a = fptosi float %v to i128
  %b = sitofp i128 %a to float
  ret float %b
}
OpenPOWER on IntegriCloud