[Arm] Add 16-bit thumb alternatives to iorsi3_compare0[_scratch]

Programming / Compilers / GCC - rearnsha [138bc75d-0d04-0410-961f-82ee72b054a4] - 22 August 2019 14:40 EDT

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.

a02b858e879 [Arm] Add 16-bit thumb alternatives to iorsi3_compare0[_scratch]
gcc/ChangeLog | 6 ++++++
gcc/config/arm/arm.md | 26 ++++++++++++++++----------
2 files changed, 22 insertions(+), 10 deletions(-)

Upstream: gcc.gnu.org


  • Share