[SPARC] Legalize truncation and extension between fp128 and half
authorLemonBoy <thatlemon@gmail.com>
Sun, 13 Jun 2021 18:03:42 +0000 (20:03 +0200)
committerLemonBoy <thatlemon@gmail.com>
Sun, 13 Jun 2021 18:05:15 +0000 (20:05 +0200)
commit5be3a1a06483a5958a1a5dbffda386fd4ce579fe
tree4751bc94b373772cb0f8c25b1270e8b1f8a08a6a
parent527a1821e6f8e115db3335a3341c7ac491725a0d
[SPARC] Legalize truncation and extension between fp128 and half

Lower truncations and expansions between fp128 and half values into libcalls.
Expand truncating stores into two separate truncation and a store operations.

Reviewed By: jrtc27

Differential Revision: https://reviews.llvm.org/D104185
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/test/CodeGen/SPARC/fp16-promote.ll