From: DJ Delorie Date: Sat, 24 May 2008 00:51:18 +0000 (-0400) Subject: * config/m32c/jump.md (untyped_call): Add. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9db440dd71fc73344da315e8a9964fc6752ce8c;p=gcc.git * config/m32c/jump.md (untyped_call): Add. From-SVN: r135843 --- 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; +}")