From c9db440dd71fc73344da315e8a9964fc6752ce8c Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 23 May 2008 20:51:18 -0400 Subject: [PATCH] * config/m32c/jump.md (untyped_call): Add. From-SVN: r135843 --- gcc/ChangeLog | 2 ++ gcc/config/m32c/jump.md | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cde90861276..57bb8bec414 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2008-05-23 DJ Delorie + * config/m32c/jump.md (untyped_call): Add. + * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type for A24 to PSImode. (m32c_address_cost): Detail costs for indirect offsets. diff --git a/gcc/config/m32c/jump.md b/gcc/config/m32c/jump.md index f5b185bebad..b9585c5d43f 100644 --- a/gcc/config/m32c/jump.md +++ b/gcc/config/m32c/jump.md @@ -111,3 +111,23 @@ switch (which_alternative) { }" [(set_attr "flags" "x,x,x")] ) + +(define_expand "untyped_call" + [(parallel [(call (match_operand 0 "" "") + (const_int 0)) + (match_operand 1 "" "") + (match_operand 2 "" "")])] + "" + " +{ + int i; + + emit_call_insn (gen_call (operands[0], const0_rtx, const0_rtx)); + + for (i = 0; i < XVECLEN (operands[2], 0); i++) + { + rtx set = XVECEXP (operands[2], 0, i); + emit_move_insn (SET_DEST (set), SET_SRC (set)); + } + DONE; +}") -- 2.30.2