From a8504f223d6174ae6760c94f0e03dad86bce9d7d Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Thu, 14 Mar 2013 10:48:51 +0000 Subject: AArch64 should return CC_NZ for AND operation. From-SVN: r196654 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c403ca7..71c8b9f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-03-14 Ian Bolton + + * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct + CC mode for AND. + 2013-03-14 Jakub Jelinek PR tree-optimization/53265 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 8c8532c..ce572f9 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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, -- cgit v1.1