[arm] make arm_carry_operation and arm_borrow_operation duals
commitb747c183714a5d68da8037d8b705a8bc67f11bac
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 22 Oct 2019 13:16:42 +0000 (22 13:16 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 22 Oct 2019 13:16:42 +0000 (22 13:16 +0000)
treebc135817e7aa0f414e2682dff1e6a57d9fc33baf
parent6c7b0df8029d01e05577668333660d0bc58a3023
[arm] make arm_carry_operation and arm_borrow_operation duals

Arm_carry_operation and arm_borrow_operation are duals: given that we
have a comparison that returns a result that relies solely in the
carry flag one is the inverse of the other.  So there's no reason for
one to have a CC mode that the other does not have.  This patch
restores that equivalence.

* config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.

From-SVN: r277289
gcc/ChangeLog
gcc/config/arm/predicates.md