AArch64 should return CC_NZ for AND operation.

From-SVN: r196654
This commit is contained in:
Ian Bolton 2013-03-14 10:48:51 +00:00 committed by Ian Bolton
parent fbd28bc3b2
commit a8504f223d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-03-14 Ian Bolton <ian.bolton@arm.com>
* config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
CC mode for AND.
2013-03-14 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/53265

View File

@ -3086,7 +3086,7 @@ aarch64_select_cc_mode (RTX_CODE code, rtx x, rtx y)
if ((GET_MODE (x) == SImode || GET_MODE (x) == DImode)
&& y == const0_rtx
&& (code == EQ || code == NE || code == LT || code == GE)
&& (GET_CODE (x) == PLUS || GET_CODE (x) == MINUS))
&& (GET_CODE (x) == PLUS || GET_CODE (x) == MINUS || GET_CODE (x) == AND))
return CC_NZmode;
/* A compare with a shifted operand. Because of canonicalization,