This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [h8300] misc patches


> Sorry to not see it sooner; it seems just the predicate of
> operand[2] of the "insv" define_expand should be changed from
> general_operand to register_operand.

Seems to work too.  Current patch:

Index: h8300.c
===================================================================
--- h8300.c	(revision 131405)
+++ h8300.c	(working copy)
@@ -927,13 +927,13 @@ h8300_expand_epilogue (void)
       if (TARGET_H8300SX)
 	returned_p = true;
       h8300_push_pop (HARD_FRAME_POINTER_REGNUM, 1, 1, returned_p);
     }
 
   if (!returned_p)
-    emit_insn (gen_rtx_RETURN (VOIDmode));
+    emit_jump_insn (gen_rtx_RETURN (VOIDmode));
 }
 
 /* Return nonzero if the current function is an interrupt
    function.  */
 
 int
Index: h8300.md
===================================================================
--- h8300.md	(revision 131405)
+++ h8300.md	(working copy)
@@ -3222,13 +3222,13 @@
    (set_attr "length" "8,6")])
 
 (define_expand "insv"
   [(set (zero_extract:HI (match_operand:HI 0 "general_operand" "")
 			 (match_operand:HI 1 "general_operand" "")
 			 (match_operand:HI 2 "general_operand" ""))
-	(match_operand:HI 3 "general_operand" ""))]
+	(match_operand:HI 3 "register_operand" ""))]
   "TARGET_H8300 || TARGET_H8300SX"
   "
 {
   if (TARGET_H8300SX)
     {
       if (GET_CODE (operands[1]) == CONST_INT


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]