+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
(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")