rs6000: Clean up the cstore code a bit
commita85069b5e3ae2980f1d55435b46b12638e645857
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Dec 2015 17:28:54 +0000 (4 17:28 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Dec 2015 17:28:54 +0000 (4 17:28 +0000)
tree1bf94659736977c4161f80f0edfe303639443ac6
parent7ed86ba5787700903cbae053e141edb5c724cfe1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231287 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.md