This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/81444] expmed.c:init_expmed_one_mode uses wrong mode for widening cost computations
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Jul 2017 12:32:23 +0000
- Subject: [Bug middle-end/81444] expmed.c:init_expmed_one_mode uses wrong mode for widening cost computations
- Auto-submitted: auto-generated
- References: <bug-81444-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81444
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Created attachment 41759
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41759&action=edit
Proposed patch.
PR middle-end/81444
* expmed.c (init_expmed_one_conv): Don't clobber all->reg's mode.
(init_expmed_one_mode): For widening mult and mult_highpart,
use wider_mode 2x wider than the input mode.