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]

[patch] h8300.md: Fix the insn length of calls.


Hi,

Attached is a patch to fix the insn length of calls.

Tested on h8300 port.  Committed.

Kazu Hirata

2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md (call): Fix the insn lengths.
	(call_value): Likewise.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.225
diff -u -r1.225 h8300.md
--- h8300.md	25 Jun 2003 11:54:44 -0000	1.225
+++ h8300.md	25 Jun 2003 12:45:09 -0000
@@ -1806,8 +1806,8 @@
   [(set_attr "cc" "clobber")
    (set (attr "length")
 	(if_then_else (match_operand:QI 0 "small_call_insn_operand" "")
-		      (const_int 4)
-		      (const_int 8)))])
+		      (const_int 2)
+		      (const_int 4)))])
 
 ;; Call subroutine, returning value in operand 0
 ;; (which must be a hard register).
@@ -1830,8 +1830,8 @@
   [(set_attr "cc" "clobber")
    (set (attr "length")
 	(if_then_else (match_operand:QI 0 "small_call_insn_operand" "")
-		      (const_int 4)
-		      (const_int 8)))])
+		      (const_int 2)
+		      (const_int 4)))])
 
 (define_insn "nop"
   [(const_int 0)]


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