On Tue, Aug 04, 2020 at 10:40:15PM -0400, Michael Meissner wrote: > The power10 processor adds 3 new instructions (BRH, BRW, BRD) that byte swaps > half-words, words, and double-words within a GPR register.
The brh insn reverses the bytes in each of four 16-bit words in a GPR, but this patch only does it for HImode. Similar for brw. Okay. > 2020-08-04 Michael Meissner <meiss...@linux.ibm.com> > > * config/rs6000/rs6000.md (bswaphi2_reg): Generate the BRH > instruction on ISA 3.1. The changelog should just describe the change, not the effect of the change, so just "New define_insn." or "New pattern." or "New." here. All other info goes in the commit message. This patch is okay for trunk, and all backports later. Thanks Mike! Segher