This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/81444] expmed.c:init_expmed_one_mode uses wrong mode for widening cost computations


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]