diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-04-22 16:29:04 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-04-22 16:29:04 +0000 |
commit | be989dda4b2f4c7610751885caeb548aaa60a90d (patch) | |
tree | 7fc73a53865d3cf6807ba3fe742397131ead33e4 /gcc/config/mn10300/mn10300.md | |
parent | f56cac0d51ddbeb3f90457641138937e02e11d12 (diff) | |
download | gcc-be989dda4b2f4c7610751885caeb548aaa60a90d.tar.gz |
* mn10300.c (expand_prologue): End the current sequence before
counting the tst insns in the current function. Start a new
one before emitting any prologue instructions.
* mn10300.h (REGISTER_MOVE_COST): Bump up cost of moves in the
same class.
* mn10300.md (untyped_call): New expander.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mn10300/mn10300.md')
-rw-r--r-- | gcc/config/mn10300/mn10300.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/config/mn10300/mn10300.md b/gcc/config/mn10300/mn10300.md index d936a02df12..c34b1bc36be 100644 --- a/gcc/config/mn10300/mn10300.md +++ b/gcc/config/mn10300/mn10300.md @@ -1234,6 +1234,26 @@ "calls %C1" [(set_attr "cc" "clobber")]) +(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)); + + 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; +}") + (define_insn "nop" [(const_int 0)] "" |