re PR target/84431 (Suboptimal code for masked shifts (x86/x86-64))
authorUros Bizjak <ubizjak@gmail.com>
Sat, 28 Apr 2018 07:37:04 +0000 (09:37 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 28 Apr 2018 07:37:04 +0000 (09:37 +0200)
commit6754dfa2370c9f28fc7069e872b9a0fcddece8ca
tree25ff9eb3fe1a664aa508952a38bb03b0bb582259
parent782e47649004a0fbc97d0a8d8817577923a5e619
re PR target/84431 (Suboptimal code for masked shifts (x86/x86-64))

PR target/84431
* config/i386/i386.md (*ashl<dwi>3_doubleword_mask): New pattern.
(*ashl<dwi>3_doubleword_mask_1): Ditto.
(*<shift_insn><dwi>3_doubleword_mask): Ditto.
(*<shift_insn><dwi>3_doubleword_mask_1): Ditto.

testsuite/ChangeLog:

PR target/84431
* gcc.target/i386/pr84431.c: New test.

From-SVN: r259739
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr84431.c [new file with mode: 0644]