summaryrefslogtreecommitdiff
path: root/gcc/config/i386/predicates.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/predicates.md')
-rw-r--r--gcc/config/i386/predicates.md11
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index 3f53e2d1d41..70418f43022 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -660,12 +660,12 @@
return i == 2 || i == 4 || i == 8;
})
-;; Match 1, 2, 5, or 6
-(define_predicate "const1256_operand"
+;; Match 2, 3, 5, or 6
+(define_predicate "const2356_operand"
(match_code "const_int")
{
HOST_WIDE_INT i = INTVAL (op);
- return i == 1 || i == 2 || i == 5 || i == 6;
+ return i == 2 || i == 3 || i == 5 || i == 6;
})
;; Match 1, 2, 4, or 8
@@ -754,11 +754,6 @@
return val <= 255*8 && val % 8 == 0;
})
-;; Match 1 to 2.
-(define_predicate "const_1_to_2_operand"
- (and (match_code "const_int")
- (match_test "IN_RANGE (INTVAL (op), 1, 2)")))
-
;; Return true if OP is CONST_INT >= 1 and <= 31 (a valid operand
;; for shift & compare patterns, as shifting by 0 does not change flags).
(define_predicate "const_1_to_31_operand"