rs6000: Clean up the cstore code a bit
authorSegher Boessenkool <segher@gcc.gnu.org>
Fri, 4 Dec 2015 17:28:54 +0000 (18:28 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 4 Dec 2015 17:28:54 +0000 (18:28 +0100)
commit586cdac8e5af3fff142829e579558f8728e56f81
tree1bf94659736977c4161f80f0edfe303639443ac6
parent04a9ae287f6d76c60464c57be98550a25b358c34
rs6000: Clean up the cstore code a bit

"register_operand" was a bit confusing.  Also some other minor cleanups.

* (cstore<mode>4_unsigned): Use gpc_reg_operand instead of
register_operand.  Remove empty constraints.  Use std::swap.
(cstore_si_as_di, cstore<mode>4_signed_imm,
cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
gpc_reg_operand instead of register_operand.
(cstore<mode>4 for FP): Use gpc_reg_operand instead of
register_operand.  Remove empty constraints.

From-SVN: r231287
gcc/ChangeLog
gcc/config/rs6000/rs6000.md