[AArch64] Fix gcc.dg/torture/float32-builtin.c with RTL checking
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 17 Nov 2016 09:33:40 +0000 (09:33 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 17 Nov 2016 09:33:40 +0000 (09:33 +0000)
    * 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
gcc/config/aarch64/predicates.md

index d70f88df81d76698f404fa54d962a9a8ebda5437..1050391b8ef85dfd1d891ac230cd3d019103eaf2 100644 (file)
@@ -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
index ebda6d812e7261d8d8c6e300e9db5f4a8884bfed..0671cc8c595a8ac8891679ef79980796f2a623a5 100644 (file)
@@ -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")