rs6000: Add second variant of adde
commit3a3ca394a5f7a83b45eeb93f823c1887cbfd96fd
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Nov 2017 22:30:24 +0000 (29 22:30 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Nov 2017 22:30:24 +0000 (29 22:30 +0000)
treea4b9d5a275d732e4fbc2ce408ac37570452e2977
parent4f1bac7c1fcf62800ea091cdcde15696e48e83fe
rs6000: Add second variant of adde

This adds a second variant of the adde insn pattern, this one with the
CA register as the second operand.  The existing pattern has it as the
third operand.  It would be ideal if RTL was always canonicalised like
that, but it isn't (and that is not trivial), and this is a simple and
harmless patch.

* config/rs6000/rs6000.md (*add<mode>3_carry_in_internal2): New.

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