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, i386]: Use btr/bts/btc some more (PR target/46091)


Hello!

Attached patch adds btr/bts/btc patterns with variable count operands,
so combine is able to synthesize these instructions from shift+logic
operations.

2017-08-21  Uros Bizjak  <ubizjak@gmail.com>

    PR target/46091
    * config/i386/i386.md (*btsq_imm): Rename from *btsq.
    (*btrq_imm): Rename from *btrq.
    (*btcq_imm): Rename from *btcq.
    (btsc): New code attribute.
    (*<btsc><mode>): New insn pattern.
    (*btr<mode>): Ditto.
    (*<btsc><mode>_mask): New insn_and_split pattern.
    (*btr<mode>_mask): Ditto.

testsuite/ChangeLog:

2017-08-21  Uros Bizjak  <ubizjak@gmail.com>

    PR target/46091
    * gcc.target/i386/pr46091-4.c: New test.
    * gcc.target/i386/pr46091-4a.c: Ditto.
    * gcc.target/i386/pr46091-5.c: Ditto.
    * gcc.target/i386/pr46091-5a.c: Ditto.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

Attachment: p.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]