summaryrefslogtreecommitdiff
path: root/gcc/config/i386/constraints.md
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-26 08:34:01 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-26 08:34:01 +0000
commit4e9abdcc8c9f81e9978cae85f20ac3f15e88c5de (patch)
tree497c4155e0c61defa1e0d4948f2dfccb6efb8afd /gcc/config/i386/constraints.md
parente85d1f6264480fcf984e02b10b8f8f7d80d302cb (diff)
downloadgcc-4e9abdcc8c9f81e9978cae85f20ac3f15e88c5de.tar.gz
* reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
* config/i386/constraints.md (define_constraint "I"): Use IN_RANGE macro. (define_constraint "J"): Ditto. (define_constraint "K"): Ditto. (define_constraint "M"): Ditto. (define_constraint "N"): Ditto. (define_constraint "O"): Ditto. * config/i386/predicates.md (define_predicate "register_no_elim_operand"): Use IN_RANGE macro. (define_predicate "const_0_to_3_operand"): Ditto. (define_predicate "const_0_to_7_operand"): Ditto. (define_predicate "const_0_to_15_operand"): Ditto. (define_predicate "const_0_to_63_operand"): Ditto. (define_predicate "const_0_to_255_operand"): Ditto. (define_predicate "const_1_to_31_operand"): Ditto. (define_predicate "const_2_to_3_operand"): Ditto. (define_predicate "const_4_to_7_operand"): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/constraints.md')
-rw-r--r--gcc/config/i386/constraints.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/i386/constraints.md b/gcc/config/i386/constraints.md
index 8f3e3cef066..da700219ed8 100644
--- a/gcc/config/i386/constraints.md
+++ b/gcc/config/i386/constraints.md
@@ -103,17 +103,17 @@
(define_constraint "I"
"Integer constant in the range 0 @dots{} 31, for 32-bit shifts."
(and (match_code "const_int")
- (match_test "ival >= 0 && ival <= 31")))
+ (match_test "IN_RANGE (ival, 0, 31)")))
(define_constraint "J"
"Integer constant in the range 0 @dots{} 63, for 64-bit shifts."
(and (match_code "const_int")
- (match_test "ival >= 0 && ival <= 63")))
+ (match_test "IN_RANGE (ival, 0, 63)")))
(define_constraint "K"
"Signed 8-bit integer constant."
(and (match_code "const_int")
- (match_test "ival >= -128 && ival <= 127")))
+ (match_test "IN_RANGE (ival, -128, 127)")))
(define_constraint "L"
"@code{0xFF} or @code{0xFFFF}, for andsi as a zero-extending move."
@@ -123,18 +123,18 @@
(define_constraint "M"
"0, 1, 2, or 3 (shifts for the @code{lea} instruction)."
(and (match_code "const_int")
- (match_test "ival >= 0 && ival <= 3")))
+ (match_test "IN_RANGE (ival, 0, 3)")))
(define_constraint "N"
"Unsigned 8-bit integer constant (for @code{in} and @code{out}
instructions)."
(and (match_code "const_int")
- (match_test "ival >= 0 && ival <= 255")))
+ (match_test "IN_RANGE (ival, 0, 255)")))
(define_constraint "O"
"@internal Integer constant in the range 0 @dots{} 127, for 128-bit shifts."
(and (match_code "const_int")
- (match_test "ival >= 0 && ival <= 127")))
+ (match_test "IN_RANGE (ival, 0, 127)")))
;; Floating-point constant constraints.
;; We allow constants even if TARGET_80387 isn't set, because the