[PATCH 3/5][Arm] New pattern for CSINC instructions
commit778f19ff953792702c0a7e1fde00214709d9317e
authorSudi Das <sudi.das@arm.com>
Fri, 18 Sep 2020 15:30:11 +0000 (18 16:30 +0100)
committerOmar Tahir <omar.tahir@arm.com>
Fri, 18 Sep 2020 16:04:37 +0000 (18 17:04 +0100)
treec290b5dd4f036105dd3cfe60ea7a61b075af22c7
parentc2bb84be4a6e581bbf45891457ee632a07416982
[PATCH 3/5][Arm] New pattern for CSINC instructions

This patch adds a new pattern, *thumb2_csinc, for generating CSINC
instructions. It also modifies an existing pattern, *thumb2_cond_arith, to
output CINC when the operation is an addition and TARGET_COND_ARITH is true.

gcc/ChangeLog:

* config/arm/thumb2.md (*thumb2_csinc): New.
(*thumb2_cond_arith): Generate CINC where possible.

gcc/testsuite/ChangeLog:

* gcc.target/arm/csinc-1.c: New test.

Co-authored-by: Omar Tahir <omar.tahir@arm.com>
gcc/config/arm/thumb2.md
gcc/testsuite/gcc.target/arm/csinc-1.c [new file with mode: 0644]