[committed] clarify sleu_operand
Eric Christopher
echristo@redhat.com
Tue Jun 7 19:07:00 GMT 2005
While looking into changes for LE_EXPR vs LT_EXPR coming from the front
end I decided that this code was easier to look at done this way.
Ideally what we'll want is to do the checks in mips_emit_scc and be able
to support the full range of the slt operand for LE. However, for now...
No regressions. Committed to mainline.
-eric
2005-06-07 Eric Christopher <echristo@redhat.com>
* config/mips/predicates.md (sleu_operand): Use
IN_RANGE to specify range of operand.
Index: config/mips/predicates.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/predicates.md,v
retrieving revision 1.4
diff -u -p -w -r1.4 predicates.md
--- config/mips/predicates.md 11 May 2005 20:03:39 -0000 1.4
+++ config/mips/predicates.md 7 Jun 2005 19:01:42 -0000
@@ -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")
More information about the Gcc-patches
mailing list