Commit 166208c2 by Paul Koning

pdp11.md: Change output operands to disallow immediate operands.

* config/pdp11/pdp11.md: Change output operands to disallow
immediate operands.
* config/pdp11/predicates.md (float_nonimm_operand): New.

From-SVN: r166108
parent b034e301
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
return (abs (sh) > 1 && abs (sh) <= 4); return (abs (sh) > 1 && abs (sh) <= 4);
}) })
;; Accept anything general-operand accepts, except that registers must ;; Accept anything general_operand accepts, except that registers must
;; be FPU registers. ;; be FPU registers.
(define_predicate "float_operand" (define_predicate "float_operand"
(if_then_else (match_code "reg") (if_then_else (match_code "reg")
...@@ -44,3 +44,12 @@ ...@@ -44,3 +44,12 @@
(match_test "REGNO_REG_CLASS (REGNO (op)) == LOAD_FPU_REGS") (match_test "REGNO_REG_CLASS (REGNO (op)) == LOAD_FPU_REGS")
(match_test "REGNO_REG_CLASS (REGNO (op)) == NO_LOAD_FPU_REGS")) (match_test "REGNO_REG_CLASS (REGNO (op)) == NO_LOAD_FPU_REGS"))
(match_test "general_operand (op, mode)"))) (match_test "general_operand (op, mode)")))
;; Accept anything nonimmediate_operand accepts, except that registers must
;; be FPU registers.
(define_predicate "float_nonimm_operand"
(if_then_else (match_code "reg")
(ior
(match_test "REGNO_REG_CLASS (REGNO (op)) == LOAD_FPU_REGS")
(match_test "REGNO_REG_CLASS (REGNO (op)) == NO_LOAD_FPU_REGS"))
(match_test "nonimmediate_operand (op, mode)")))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment