About five years ago, I looked into adding patterns so that combine would recognize bit-reversal shifts and ORs to use the PowerPC byte reversal instruction. It requires a large number of intermediate, valid patterns so that GCC combine pass eventually will combine enough of the pieces so that it discovers the byte-reversal instruction. David