[PATCH][AArch64] Allow CMP+SHIFT when comparing with zero
authorSudakshina Das <sudi.das@arm.com>
Fri, 2 Jun 2017 15:32:41 +0000 (15:32 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 2 Jun 2017 15:32:41 +0000 (15:32 +0000)
commitffa8a92137cd41829d477be4ef1c1c28849ffee1
tree87ea0cd2ba57089fdd06b051c2c1ca7ba7142895
parentb160939bf3cd072e1c7a05bbbe221040f7670df2
[PATCH][AArch64] Allow CMP+SHIFT when comparing with zero

gcc/

* config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
comparision with zero.

gcc/testsuite/

* gcc.target/aarch64/cmp_shifted_reg_1.c: New.

From-SVN: r248836
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/cmp_shifted_reg_1.c [new file with mode: 0644]