Re: [PATCH 1/4] rs6000: New insns setbc and setbcr

2020-05-06 Thread Segher Boessenkool
Hi! On Wed, May 06, 2020 at 03:31:08PM -0500, Bill Schmidt wrote: > (ne3): Replace :P with :GPR; use setbc for TARGET_FUTURE; > else for non-Pmode, use gen_eq and gen_xor. Before this patch, there was only ne:P, which results in the same thing (done by generic code). I should have do

[PATCH 1/4] rs6000: New insns setbc and setbcr

2020-05-06 Thread Bill Schmidt via Gcc-patches
New instructions setbc and setbcr. setbc sets a GPR to 1 if some condition register bit is set, and 0 otherwise; setbcr does it the other way around. 2020-05-06 Segher Boessenkool * config/rs6000/rs6000.md (setbc_signed_): New define_insn. (*setbcr_signed_): Likewise.