[Arm] Add 16-bit thumb alternatives to iorsi3_compare0[_scratch]
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 22 Aug 2019 14:40:52 +0000 (14:40 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 22 Aug 2019 14:40:52 +0000 (14:40 +0000)
commit203ef022c6a0477c33a8cf4a65890e33d0912cf0
tree8b499ff0e85de91c9b460c2571a1f9d0f2240fa0
parent391625888d4d97f9016ab9ac04acc55d81f0c26f
[Arm] Add 16-bit thumb alternatives to iorsi3_compare0[_scratch]

The iorsi3_compare0 and iorsi3_compare0_scratch patterns can make use
of the 16-bit thumb orrs instruction if suitable registers are
allocated.  This patch adds the alternative to allow this to happen.

* config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
insn.
(iorsi3_compare0_scratch): Likewise.

From-SVN: r274822
gcc/ChangeLog
gcc/config/arm/arm.md