This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82981] [7/8 Regression] unnecessary __multi3 call for mips64r6 linux kernel
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Nov 2017 12:20:50 +0000
- Subject: [Bug target/82981] [7/8 Regression] unnecessary __multi3 call for mips64r6 linux kernel
- Auto-submitted: auto-generated
- References: <bug-82981-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Actually, it might be better to verify if the can_widen_mult_without_libcall
fails that hmode exists and is exactly half the size of prec, otherwise we
could end up with the worst case fallback that can't do overflow.
And/or, the PR71289 change could be guarded by precision equal to TYPE_MODE
precision and umulv4_optab present for that mode, otherwise MUL_OVERFLOW might
be more expensive than the division.