Re: [PATCH 3/4] rs6000: Merge zero_extend*si2 and zero_extend*di2

2014-09-01 Thread David Edelsohn
On Mon, Sep 1, 2014 at 3:49 PM, Segher Boessenkool wrote: > Don't group the insns based on extended size; use source size instead. > Use the "andi." insn rather than "rldicl." and friends if possible. > The instructions guarded by TARGET_LFIWZX do not need that guard: the > constraints already gua

[PATCH 3/4] rs6000: Merge zero_extend*si2 and zero_extend*di2

2014-09-01 Thread Segher Boessenkool
Don't group the insns based on extended size; use source size instead. Use the "andi." insn rather than "rldicl." and friends if possible. The instructions guarded by TARGET_LFIWZX do not need that guard: the constraints already guarantee the (correct!) condition. Tested as usual; no regressions.