[Bug target/84437] long long casting breaks PDP-11 with -m10 model option (includes trivial reproducer)

pkoning at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 18 14:19:24 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84437

pkoning at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from pkoning at gcc dot gnu.org ---
Agreed, this is fixed in the current code, shift handling was cleaned up as
part of the CCmode change.
That said, the code produces the right answer but it does it in a bad way,
because the port does not provide a pattern for this sign extend.  The GCC
default is to use a shift, which for a pdp-11 is not the best answer.


More information about the Gcc-bugs mailing list