This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r262929 - in /trunk/gcc: ChangeLog config/rs600...
- From: segher at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 23 Jul 2018 11:25:29 -0000
- Subject: r262929 - in /trunk/gcc: ChangeLog config/rs600...
Author: segher
Date: Mon Jul 23 11:25:28 2018
New Revision: 262929
URL: https://gcc.gnu.org/viewcvs?rev=262929&root=gcc&view=rev
Log:
rs6000: Generate rl*imi for memory some more
An rl<wd>imi instruction is often written like "(a << 8) | (b & 255)".
If "b" now is a byte in memory, combine will combine the load with the
masking (with 255 in the example), since that is a single instruction;
and then the rl*imi isn't combined from the remaining pieces.
This patch adds a splitter to make combine handle this case.
* config/rs6000/rs6000.md (splitters for rldimi and rlwimi with the
zero_extend argument from memory): New.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.md