re PR target/78904 (zero-extracts are not effective)
authorUros Bizjak <ubizjak@gmail.com>
Tue, 27 Dec 2016 14:20:19 +0000 (15:20 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 27 Dec 2016 14:20:19 +0000 (15:20 +0100)
commit4b6d0c0eb49193ef5e6e47b0d24f805bebffbdfb
tree36b380dde73f268d9a55535e6a07c485373c238b
parent8ba4f506395ff50be7ecf788734676c9f4cfd200
re PR target/78904 (zero-extracts are not effective)

PR target/78904
* config/i386/constraints.md (Bc): New special memory constraint.
* config/i386/i386.md (*cmpqi_ext_1, *extvqi, *extzvqi): Use Bc
constraint with nonimmediate_operand to allow constant memory operands.
(*cmpqi_ext_3, insv<mode>_1, addqi_ext_1, *testqi_ext_1, andqi_ext_1)
(*<any_or:code>qi_ext_1, *xorqi_ext_1_cc): Use Bc constraint
with general_operand to allow constant memory operands.

testsuite/ChangeLog:

PR target/78904
* gcc.target/i386/pr78904-3.c: New test.

From-SVN: r243937
gcc/ChangeLog
gcc/config/i386/constraints.md
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr78904-3.c [new file with mode: 0644]