From 12faad0298b3cf3c9af2b3f5b44ebd48ee3ce3ae Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Thu, 17 Nov 2016 09:33:40 +0000 Subject: [PATCH] [AArch64] Fix gcc.dg/torture/float32-builtin.c with RTL checking * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for const_double code before calling aarch64_float_const_zero_rtx_p. From-SVN: r242539 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/predicates.md | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d70f88df81d..1050391b8ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-17 Kyrylo Tkachov + + * 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 PR tree-optimization/78306 diff --git a/gcc/config/aarch64/predicates.md b/gcc/config/aarch64/predicates.md index ebda6d812e7..0671cc8c595 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") -- 2.30.2