[SPARC] Lower fp16 ops to libcalls
authorLemonBoy <thatlemon@gmail.com>
Wed, 10 Jun 2020 02:17:43 +0000 (19:17 -0700)
committerEli Friedman <efriedma@quicinc.com>
Thu, 11 Jun 2020 02:15:26 +0000 (19:15 -0700)
commit7dac0085963da0f59d433096fcc26437f7051e53
treed2c300e4c70bed98c7f56e55993a0a120a3eca03
parent19b3b886b7645bcfacbcf4f4e57af944484ffb37
[SPARC] Lower fp16 ops to libcalls

The fp16 ops are legalized by extending/chopping them as needed.
The tests are shamelessly stolen from the RISC-V backend.

Recommit with fixed RUN lines for the test.

Differential Revision: https://reviews.llvm.org/D77569
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/test/CodeGen/SPARC/fp16-promote.ll [new file with mode: 0644]