Commit f1d4a790 by Richard Henderson Committed by Richard Henderson

sparc: Use match_code in zero_or_v7_operand.

Failure to do so means that genpreds doesn't know that we're
matching a const_int, and it generates the wrong mode test.

        * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.

From-SVN: r183481
parent ed6cf318
2012-01-25 Richard Henderson <rth@redhat.com> 2012-01-25 Richard Henderson <rth@redhat.com>
* config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
2012-01-25 Richard Henderson <rth@redhat.com>
PR target/51968 PR target/51968
* config/arm/arm.c (neon_split_vcombine): Emit deleted note * config/arm/arm.c (neon_split_vcombine): Emit deleted note
to effect no-op split. to effect no-op split.
......
;; Predicate definitions for SPARC. ;; Predicate definitions for SPARC.
;; Copyright (C) 2005, 2007, 2008, 2010 Free Software Foundation, Inc. ;; Copyright (C) 2005, 2007, 2008, 2010, 2012 Free Software Foundation, Inc.
;; ;;
;; This file is part of GCC. ;; This file is part of GCC.
;; ;;
...@@ -113,8 +113,9 @@ ...@@ -113,8 +113,9 @@
;; Return true if OP is Zero, or if the target is V7. ;; Return true if OP is Zero, or if the target is V7.
(define_predicate "zero_or_v7_operand" (define_predicate "zero_or_v7_operand"
(ior (match_test "op == const0_rtx") (and (match_code "const_int")
(match_test "!TARGET_V8 && !TARGET_V9"))) (ior (match_test "INTVAL (op) == 0")
(match_test "!TARGET_V8 && !TARGET_V9"))))
;; Predicates for symbolic constants. ;; Predicates for symbolic constants.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment