* expmed.c (expand_shift_1): Canonicalize rotates by
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 May 2013 08:55:34 +0000 (08:55 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 May 2013 08:55:34 +0000 (08:55 +0000)
commitb96ca9cafabafe2525d1b74e1ac38dc56ffc90e7
treecf62bd2045ab3fa40d75cb48379cb1295898c3a7
parent8aacb2c508252e4ad733bc4e4b9b4ec9dd461bce
* expmed.c (expand_shift_1): Canonicalize rotates by
constant bitsize / 2 to bitsize - 1.
* simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
case ROTATERT>: Likewise.

Revert:
2013-05-10  Jakub Jelinek  <jakub@redhat.com>

* config/i386/i386.md (rotateinv): New code attr.
(*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
*<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
roll $31, %eax, etc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198864 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/expmed.c
gcc/simplify-rtx.c