aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ft32/constraints.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/ft32/constraints.md')
-rw-r--r--gcc/config/ft32/constraints.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/ft32/constraints.md b/gcc/config/ft32/constraints.md
index 4780315..6d2c2b4 100644
--- a/gcc/config/ft32/constraints.md
+++ b/gcc/config/ft32/constraints.md
@@ -91,7 +91,7 @@
(define_constraint "L"
"A 16-bit unsigned constant, multiple of 4 (-65532..0)"
(and (match_code "const_int")
- (match_test "-65532 <= ival && ival <= 0 && (ival & 3) == 0")))
+ (match_test "ival >= -65532 && ival <= 0 && (ival & 3) == 0")))
(define_constraint "S"
"A 20-bit signed constant (-524288..524287)"
@@ -105,9 +105,9 @@
(define_constraint "b"
"A constant for a bitfield width (1..16)"
(and (match_code "const_int")
- (match_test "1 <= ival && ival <= 16")))
+ (match_test "ival >= 1 && ival <= 16")))
(define_constraint "KA"
"A 10-bit signed constant (-512..511)"
(and (match_code "const_int")
- (match_test "-512 <= ival && ival <= 511")))
+ (match_test "ival >= -512 && ival <= 511")))