aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@redhat.com>2005-06-07 19:09:34 +0000
committerEric Christopher <echristo@gcc.gnu.org>2005-06-07 19:09:34 +0000
commitf11480cc825ffe29c7652ae554fe43ea80cb15ce (patch)
treeda06e8dc41fa083ff9badae78c3f3d3856b5bd1d
parentce3116ffc533d5aa5fc88a5d442819927be5619a (diff)
downloadgcc-f11480cc825ffe29c7652ae554fe43ea80cb15ce.zip
gcc-f11480cc825ffe29c7652ae554fe43ea80cb15ce.tar.gz
gcc-f11480cc825ffe29c7652ae554fe43ea80cb15ce.tar.bz2
predicates.md (sleu_operand): Use IN_RANGE to specify range of operand.
2005-06-07 Eric Christopher <echristo@redhat.com> * config/mips/predicates.md (sleu_operand): Use IN_RANGE to specify range of operand. From-SVN: r100716
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/predicates.md6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 12f036b..8496165 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-07 Eric Christopher <echristo@redhat.com>
+
+ * config/mips/predicates.md (sleu_operand): Use
+ IN_RANGE to specify range of operand.
+
2005-06-07 Steven Bosscher <stevenb@suse.de>
PR tree-optimization/21847
diff --git a/gcc/config/mips/predicates.md b/gcc/config/mips/predicates.md
index d486cfc..a64b335 100644
--- a/gcc/config/mips/predicates.md
+++ b/gcc/config/mips/predicates.md
@@ -7,7 +7,7 @@
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
-;;
+;;
;; GCC is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -39,8 +39,8 @@
(match_test "SMALL_OPERAND (INTVAL (op) + 1)")))
(define_predicate "sleu_operand"
- (and (match_operand 0 "sle_operand")
- (match_test "INTVAL (op) + 1 != 0")))
+ (and (match_code "const_int")
+ (match_test "IN_RANGE ((INTVAL (op) + 1), 0, 32767)")))
(define_predicate "const_0_operand"
(and (match_code "const_int,const_double,const_vector")