Swap RA and RS when assembling "and", "or", and such instructions.
authorGeorge Koehler <xkernigh@netscape.net>
Mon, 30 Jan 2017 20:47:09 +0000 (15:47 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Mon, 30 Jan 2017 20:47:09 +0000 (15:47 -0500)
commit48e3aab72858159e9537de9655bab8d6a0a9d97c
treeb2caf81f5c0b5a751291dedf2bcb928d2e196086
parent9ddbb66c8b0c53738d3d9607aa584a91412acd81
Swap RA and RS when assembling "and", "or", and such instructions.

They must use OP_RA_RS_RB_C instead of OP_RS_RA_RB_C.  The code
generator often sets RS and RA to the same register, so swapping them
causes no change in many programs.

I also rename OP_RS_RA_UI_CC to OP_RA_RS_UI_CC, and OP_RS_RA_C to
OP_RA_RS_C, because they already swap RA and RS.
mach/powerpc/as/mach2.c
mach/powerpc/as/mach3.c
mach/powerpc/as/mach4.c