i386.md (absneg splitters with general regs): Use general_reg_operand predicate.
authorUros Bizjak <ubizjak@gmail.com>
Mon, 9 May 2016 15:37:30 +0000 (17:37 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 9 May 2016 15:37:30 +0000 (17:37 +0200)
commitfc97f8050225946f1f8ba00046ff0d068783c3b4
treee08cacca4be27d30ed814de006fa7ceae96ce517
parente3abc83ebaea2312510ace3da69436393e73046c
i386.md (absneg splitters with general regs): Use general_reg_operand predicate.

* config/i386/i386.md (absneg splitters with general regs): Use
general_reg_operand predicate.
(btsq peephole2): Use x86_64_immediate_operand to check if new
value is suitable for immediate operand.  Generate emitted insn
using RTL expressions.
(btcq peephole2): Ditto.
(btrq peephole2): Ditto.  Generate correct immediate operand
for AND masking.

testsuite/ChangeLog:

* gcc.target/i386/fabsneg-1.c New test.

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