summaryrefslogtreecommitdiff
path: root/gcc/config/ia64/predicates.md
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2007-03-24 12:28:37 -0700
committerRichard Henderson <rth@gcc.gnu.org>2007-03-24 12:28:37 -0700
commit13f703423a3b5cc31172d60f2d5e91ad04d9c91b (patch)
tree2cf72e2ee49c9ec77a29f5e27afdb371b1a77f63 /gcc/config/ia64/predicates.md
parent79b87c74d764bd42703818289685e48996b54eb8 (diff)
downloadgcc-13f703423a3b5cc31172d60f2d5e91ad04d9c91b.tar.gz
constraints.md: New file.
* config/ia64/constraints.md: New file. * config/ia64/predicates.md: Replace CONST_OK_FOR_? with satisfies_constraint_?. * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p, ia64_reload_gp, spill_restore_mem, ia64_expand_prologue, ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs, ia64_output_mi_thunk): Likewise. (ia64_const_ok_for_letter_p): Remove. (ia64_const_double_ok_for_letter_p): Remove. (ia64_extra_constraint): Remove. * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove. (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT): Remove. * config/ia64/ia64.md: Include constriants.md. Replace CONST_OK_FOR_? with satisfies_constraint_?. From-SVN: r123186
Diffstat (limited to 'gcc/config/ia64/predicates.md')
-rw-r--r--gcc/config/ia64/predicates.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/config/ia64/predicates.md b/gcc/config/ia64/predicates.md
index 3dd5973f43b..dbf8bb218f3 100644
--- a/gcc/config/ia64/predicates.md
+++ b/gcc/config/ia64/predicates.md
@@ -434,25 +434,25 @@
(define_predicate "gr_reg_or_6bit_operand"
(ior (match_operand 0 "gr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_M (INTVAL (op))"))))
+ (match_test "satisfies_constraint_M (op)"))))
;; True if OP is a GR register operand, or an 8-bit immediate operand.
(define_predicate "gr_reg_or_8bit_operand"
(ior (match_operand 0 "gr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_K (INTVAL (op))"))))
+ (match_test "satisfies_constraint_K (op)"))))
;; True if OP is a GR/FR register operand, or an 8-bit immediate operand.
(define_predicate "grfr_reg_or_8bit_operand"
(ior (match_operand 0 "grfr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_K (INTVAL (op))"))))
+ (match_test "satisfies_constraint_K (op)"))))
;; True if OP is a register operand, or an 8-bit adjusted immediate operand.
(define_predicate "gr_reg_or_8bit_adjusted_operand"
(ior (match_operand 0 "gr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_L (INTVAL (op))"))))
+ (match_test "satisfies_constraint_L (op)"))))
;; True if OP is a register operand, or is valid for both an 8-bit
;; immediate and an 8-bit adjusted immediate operand. This is necessary
@@ -461,20 +461,20 @@
(define_predicate "gr_reg_or_8bit_and_adjusted_operand"
(ior (match_operand 0 "gr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_K (INTVAL (op))
- && CONST_OK_FOR_L (INTVAL (op))"))))
+ (match_test "satisfies_constraint_K (op)
+ && satisfies_constraint_L (op)"))))
;; True if OP is a register operand, or a 14-bit immediate operand.
(define_predicate "gr_reg_or_14bit_operand"
(ior (match_operand 0 "gr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_I (INTVAL (op))"))))
+ (match_test "satisfies_constraint_I (op)"))))
;; True if OP is a register operand, or a 22-bit immediate operand.
(define_predicate "gr_reg_or_22bit_operand"
(ior (match_operand 0 "gr_register_operand")
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_J (INTVAL (op))"))))
+ (match_test "satisfies_constraint_J (op)"))))
;; True if OP is a 7-bit immediate operand.
(define_predicate "dshift_count_operand"
@@ -484,12 +484,12 @@
;; True if OP is a 6-bit immediate operand.
(define_predicate "shift_count_operand"
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_M (INTVAL (op))")))
+ (match_test "satisfies_constraint_M (op)")))
;; True if OP-1 is a 6-bit immediate operand, used in extr instruction.
(define_predicate "extr_len_operand"
(and (match_code "const_int")
- (match_test "CONST_OK_FOR_M (INTVAL (op) - 1)")))
+ (match_test "satisfies_constraint_M (GEN_INT (INTVAL (op) - 1))")))
;; True if OP is a 5-bit immediate operand.
(define_predicate "shift_32bit_count_operand"
@@ -524,7 +524,7 @@
(define_predicate "fr_reg_or_fp01_operand"
(ior (match_operand 0 "fr_register_operand")
(and (match_code "const_double")
- (match_test "CONST_DOUBLE_OK_FOR_G (op)"))))
+ (match_test "satisfies_constraint_G (op)"))))
;; Like fr_reg_or_fp01_operand, but don't allow any SUBREGs.
(define_predicate "xfreg_or_fp01_operand"