Commit 82f8f53a by Edgar E. Iglesias Committed by Michael Eager

Dont allow unsupported target rtx into call_internal1

  * config/microblaze/predicates.md (call_insn_simple_operand):
     New predicate for supported rtx code types.
  * config/microblaze/microblaze.md (call_internal1): Use
     call_insn_simple_operand predicate.

From-SVN: r196433
parent 409b1de4
2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
* config/microblaze/predicates.md (call_insn_simple_operand):
New predicate for supported rtx code types.
* config/microblaze/microblaze.md (call_internal1): Use
call_insn_simple_operand predicate.
2013-03-04 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
......
......@@ -2031,7 +2031,7 @@
(set_attr "length" "4")])
(define_insn "call_internal1"
[(call (mem (match_operand:SI 0 "call_insn_operand" "ri"))
[(call (mem (match_operand:SI 0 "call_insn_simple_operand" "ri"))
(match_operand:SI 1 "" "i"))
(clobber (reg:SI R_SR))]
""
......
......@@ -49,6 +49,10 @@
(define_predicate "call_insn_operand"
(match_test "CALL_INSN_OP (op)"))
(define_predicate "call_insn_simple_operand"
(and (match_test "CALL_INSN_OP (op)")
(match_test "GET_CODE (op) == REG || GET_CODE (op) == SYMBOL_REF || GET_CODE (op) == CONST_INT")))
;; Return if OPERAND is valid as a source operand for a move instruction.
(define_predicate "move_operand"
(and (
......
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