aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/bfin/predicates.md
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2008-04-11 14:40:55 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2008-04-11 14:40:55 +0000
commit9fdd7520f9094f83012c8a0617f9d5e80bdd2662 (patch)
tree0e38d51e4c942999391bd69d58cb8d526275a728 /gcc/config/bfin/predicates.md
parent0a4bf1d3718d9eb52fae4970455baeafda19ccd6 (diff)
downloadgcc-9fdd7520f9094f83012c8a0617f9d5e80bdd2662.zip
gcc-9fdd7520f9094f83012c8a0617f9d5e80bdd2662.tar.gz
gcc-9fdd7520f9094f83012c8a0617f9d5e80bdd2662.tar.bz2
constraints.md: New file.
* config/bfin/constraints.md: New file. * config/bfin/bfin.md: Include it. (adddi3): Use satisfies_constraint functions instead of the old macros. * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN, CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P, CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P, CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P, CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M, CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER, EXTRA_CONSTRAINT): Delete. * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand, reg_or_neg7bit_operand): Use satisfies_constraint functions instead of the old macros. * config/bfin/bfin.c: Include "tm-constrs.h". (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs): Use satisfies_constraint functions instead of the old macros. * doc/md.texi (Blackfin Constraints): Update file name reference. From-SVN: r134198
Diffstat (limited to 'gcc/config/bfin/predicates.md')
-rw-r--r--gcc/config/bfin/predicates.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/bfin/predicates.md b/gcc/config/bfin/predicates.md
index ec26133..23ca2e4 100644
--- a/gcc/config/bfin/predicates.md
+++ b/gcc/config/bfin/predicates.md
@@ -34,7 +34,7 @@
;; if the constant would be cheap to load.
(define_predicate "highbits_operand"
(and (match_code "const_int")
- (match_test "log2constp (-INTVAL (op)) && !CONST_7BIT_IMM_P (INTVAL (op))")))
+ (match_test "log2constp (-INTVAL (op)) && !satisfies_constraint_Ks7 (op)")))
;; Return nonzero if OP is suitable as a right-hand side operand for an
;; andsi3 operation.
@@ -99,7 +99,7 @@
(define_predicate "reg_or_7bit_operand"
(ior (match_operand 0 "register_operand")
(and (match_code "const_int")
- (match_test "CONST_7BIT_IMM_P (INTVAL (op))"))))
+ (match_test "satisfies_constraint_Ks7 (op)"))))
;; Return nonzero if OP is a register other than DREG and PREG.
(define_predicate "nondp_register_operand"
@@ -123,7 +123,7 @@
(define_predicate "reg_or_neg7bit_operand"
(ior (match_operand 0 "register_operand")
(and (match_code "const_int")
- (match_test "CONST_7BIT_IMM_P (-INTVAL (op))"))))
+ (match_test "satisfies_constraint_KN7 (op)"))))
;; Used for secondary reloads, this function returns 1 if OP is of the
;; form (plus (fp) (const_int)).