[PATCH] D54574: [SelectionDAG] Support promotion of the FPOWI integer operand
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 15 04:00:11 PST 2018
asb created this revision.
asb added reviewers: bogner, eli.friedman, craig.topper.
Herald added subscribers: jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, jrtc27, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
For targets where i32 is not a legal type (e.g. 64-bit RISC-V), LegalizeIntegerTypes must promote the integer operand of ISD::FPOWI. As this is a signed value, this should be sign-extended.
This patch enables all tests in float-intrinsics.ll, as prior to this patch that file couldn't be compiled for RV64 due to an assertion when performing codegen for fpowi.
Repository:
rL LLVM
https://reviews.llvm.org/D54574
Files:
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
test/CodeGen/RISCV/float-intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54574.174182.patch
Type: text/x-patch
Size: 11757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181115/9c572851/attachment.bin>
More information about the llvm-commits
mailing list