summaryrefslogtreecommitdiff
path: root/gcc/config/pdp11/pdp11.md
diff options
context:
space:
mode:
authorPaul Koning <ni1d@arrl.net>2010-10-21 15:39:30 -0400
committerPaul Koning <pkoning@gcc.gnu.org>2010-10-21 15:39:30 -0400
commit19ce9cf1b8f0f1808500580fdd0fd1db00354df3 (patch)
tree8104fc631e1f5f8f4c6c62cf75196d766b5df41c /gcc/config/pdp11/pdp11.md
parent4fcf718a6127fc70a3d39011b1c98d829c5fc2df (diff)
downloadgcc-19ce9cf1b8f0f1808500580fdd0fd1db00354df3.tar.gz
pdp11-protos.md (arith_operand, [...]): Delete
* config/pdp11/pdp11-protos.md (arith_operand, const_immediate_operand, expand_shift_operand, immediate15_operand): Delete * config/pdp11/pdp11.c: Ditto. * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete. * config/pdp11/pdp11.md (various): Use standard constraints instead of removed ones. * config/pdp11/constraints.md: New file. * config/pdp11/predicates.md: New file. From-SVN: r165784
Diffstat (limited to 'gcc/config/pdp11/pdp11.md')
-rw-r--r--gcc/config/pdp11/pdp11.md16
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md
index d1b43066cd0..3043deb9c27 100644
--- a/gcc/config/pdp11/pdp11.md
+++ b/gcc/config/pdp11/pdp11.md
@@ -19,10 +19,8 @@
;; along with GCC; see the file COPYING3. If not see
;; <http://www.gnu.org/licenses/>.
-;; Match CONST_DOUBLE zero for tstd/tstf.
-(define_predicate "register_or_const0_operand"
- (ior (match_operand 0 "register_operand")
- (match_test "op == CONST0_RTX (GET_MODE (op))")))
+(include "predicates.md")
+(include "constraints.md")
;; HI is 16 bit
@@ -331,7 +329,7 @@
(define_expand "movmemhi"
[(parallel [(set (match_operand:BLK 0 "general_operand" "=g,g")
(match_operand:BLK 1 "general_operand" "g,g"))
- (use (match_operand:HI 2 "arith_operand" "n,&mr"))
+ (use (match_operand:HI 2 "general_operand" "n,&mr"))
(use (match_operand:HI 3 "immediate_operand" "i,i"))
(clobber (match_scratch:HI 4 "=&r,X"))
(clobber (match_dup 5))
@@ -925,7 +923,7 @@
(define_insn "xorsi3"
[(set (match_operand:SI 0 "register_operand" "=r")
(xor:SI (match_operand:SI 1 "register_operand" "%0")
- (match_operand:SI 2 "arith_operand" "r")))]
+ (match_operand:SI 2 "register_operand" "r")))]
"TARGET_40_PLUS"
"*
{ /* Here we trust that operands don't overlap */
@@ -1078,7 +1076,7 @@
(define_insn ""
[(set (match_operand:QI 0 "general_operand" "=r,o")
(ashift:QI (match_operand:QI 1 "general_operand" "0,0")
- (match_operand:HI 2 "const_immediate_operand" "n,n")))]
+ (match_operand:HI 2 "const_int_operand" "n,n")))]
""
"*
{ /* allowing predec or post_inc is possible, but hairy! */
@@ -1109,7 +1107,7 @@
(define_insn ""
[(set (match_operand:QI 0 "general_operand" "=r,o")
(ashiftrt:QI (match_operand:QI 1 "general_operand" "0,0")
- (match_operand:HI 2 "const_immediate_operand" "n,n")))]
+ (match_operand:HI 2 "const_int_operand" "n,n")))]
""
"*
{ /* allowing predec or post_inc is possible, but hairy! */
@@ -1171,7 +1169,7 @@
;;(define_insn "lshrsi3"
;; [(set (match_operand:HI 0 "register_operand" "=r")
;; (lshiftrt:HI (match_operand:HI 1 "register_operand" "0")
-;; (match_operand:HI 2 "arith_operand" "rI")))]
+;; (match_operand:HI 2 "general_operand" "rI")))]
;; ""
;; "srl %0,%2")