This is the mail archive of the gcc-patches@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]

[PATCH, alpha]: Improve fix for PR83628


Hello!

Attached patch improves fix for PR83628 by providing ashlsi3 pattern.
This allows combiner to remove subregs of inner DImode ashift.

2018-05-25  Uros Bizjak  <ubizjak@gmail.com>

    PR target/83628
    * config/alpha/alpha.md (ashlsi3): New insn pattern.
    (*ashlsi_se): Rename from *ashldi_se.  Define as sign
    extension of SImode operation.  Use const123_operand predicate.
    (*saddsi_1): Remove.
    (*saddl_se_1): Ditto.
    (*ssubsi_1): Ditto.
    (*ssubl_se_1): Ditto.
    * config/alpha/predicates.md (const123_operand): New predicate.
    * config/alpha/constraints.md (P): Use IN_RANGE.

Bootstrapped and regression tested on alphaev68-linux-gnu.

Committed to mainline SVN.

Uros.

Attachment: a2.diff.txt
Description: Text document


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