[PATCH] D42537: [mips] Fix incorrect sign extension for fpowi libcall
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 07:11:45 PST 2018
sdardis created this revision.
sdardis added reviewers: atanasyan, hfinkel.
Herald added a subscriber: arichardson.
PR36061 showed that during the expansion of ISD::FPOWI, that there
was an incorrect zero extension of the integer argument which for
MIPS64 would then give incorrect results. Address this with the
exisiting mechanism for correcting sign extensions.
This resolves PR36061.
Thanks to James Cowgill for reporting the issue!
Repository:
rL LLVM
https://reviews.llvm.org/D42537
Files:
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/Target/Mips/MipsISelLowering.cpp
test/CodeGen/Mips/pr36061.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42537.131446.patch
Type: text/x-patch
Size: 4770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/7c240d7f/attachment.bin>
More information about the llvm-commits
mailing list