OSDN Git Service

2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Aug 2000 23:43:22 +0000 (23:43 +0000)
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Aug 2000 23:43:22 +0000 (23:43 +0000)
        * config/c4x/c4x.md (return_indirect_internal): New.
        * config/c4x/c4x.c (c4x_expand_epilogue): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35497 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/c4x/c4x.c
gcc/config/c4x/c4x.md

index 6f56ef5..2880934 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-05  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+
+        * config/c4x/c4x.md (return_indirect_internal): New.
+        * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
+
 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * c-common.c (time_char_table): Mark up formats added in C99 and
index c8d865c..49bfadc 100644 (file)
@@ -1165,8 +1165,8 @@ c4x_expand_epilogue()
       
       if (jump)
        {
-         insn = emit_insn (gen_indirect_jump (
-                                              gen_rtx_REG (QImode, R2_REGNO)));
+         insn = emit_jump_insn (gen_return_indirect_internal
+                                (gen_rtx_REG (QImode, R2_REGNO)));
           RTX_FRAME_RELATED_P (insn) = 1;
        }
       else
index 99ca228..bd9cc96 100644 (file)
   "nop")
 ; Default to misc type attr.
 
+(define_insn "return_indirect_internal"
+  [(return)
+   (use (match_operand:QI 0 "reg_operand" ""))]
+  "reload_completed"                           
+  "bu%#\\t%0"
+  [(set_attr "type" "jump")])
+
 (define_expand "prologue"
   [(const_int 1)]
   ""