diff options
author | Alex Bradbury <asb@lowrisc.org> | 2019-02-01 03:46:28 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2019-02-01 03:46:28 +0000 |
commit | 32b77383ecf67774cd311c23fe5f112202729592 (patch) | |
tree | c279ff60d490d2d446835a8abb2bcefdf694599e /llvm/lib/Support/CommandLine.cpp | |
parent | 3aba9fd64f98c0527859904775244b2298a8e276 (diff) | |
download | llvm-32b77383ecf67774cd311c23fe5f112202729592.zip llvm-32b77383ecf67774cd311c23fe5f112202729592.tar.gz llvm-32b77383ecf67774cd311c23fe5f112202729592.tar.bz2 |
[SelectionDAG] Support promotion of the FPOWI integer operand
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 test/CodeGen/RISCVfloat-intrinsics.ll for
RV64, as prior to this patch that file couldn't be compiled for RV64 due to an
assertion when performing codegen for fpowi.
Differential Revision: https://reviews.llvm.org/D54574
llvm-svn: 352832
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions