aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/aarch64/predicates.md6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d70f88d..1050391 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
+ const_double code before calling aarch64_float_const_zero_rtx_p.
+
2016-11-17 Richard Biener <rguenther@suse.de>
PR tree-optimization/78306
diff --git a/gcc/config/aarch64/predicates.md b/gcc/config/aarch64/predicates.md
index ebda6d8..0671cc8 100644
--- a/gcc/config/aarch64/predicates.md
+++ b/gcc/config/aarch64/predicates.md
@@ -54,9 +54,9 @@
(match_test "op == const0_rtx"))))
(define_predicate "aarch64_reg_or_fp_zero"
- (and (match_code "reg,subreg,const_double")
- (ior (match_operand 0 "register_operand")
- (match_test "aarch64_float_const_zero_rtx_p (op)"))))
+ (ior (match_operand 0 "register_operand")
+ (and (match_code "const_double")
+ (match_test "aarch64_float_const_zero_rtx_p (op)"))))
(define_predicate "aarch64_reg_zero_or_m1_or_1"
(and (match_code "reg,subreg,const_int")