Re: [PATCH] rs6000: Expand all comparisons against a constant

2015-05-06 Thread David Edelsohn
On Wed, May 6, 2015 at 9:36 AM, Segher Boessenkool wrote: > This patch makes cstore expand all comparisons against a constant > (that aren't already handled by a subfc;subfe sequence) as an > addi ; [n]{and,or}[c] ; sr[wd]i sequence. It expands all the > possible inversions separately (as well a

[PATCH] rs6000: Expand all comparisons against a constant

2015-05-06 Thread Segher Boessenkool
This patch makes cstore expand all comparisons against a constant (that aren't already handled by a subfc;subfe sequence) as an addi ; [n]{and,or}[c] ; sr[wd]i sequence. It expands all the possible inversions separately (as well as add to zero); combine and friends will take care of all that. Th