This is the mail archive of the 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] enable push/pop for xstormy16

Turns out the name was wrong for these to get recognized as named
patterns and therefore used.

As a side effect it also fixed:




2004-12-02  Eric Christopher  <>

	* config/stormy16/ (pushqi, popqi, pushhi,
	pophi): Add number of arguments to name so that the
	pattern is recognized as a named pattern.

Index: gcc/config/stormy16/
RCS file: /cvs/cvsfiles/gnupro/gcc/config/stormy16/,v
retrieving revision 1.7
diff -u -p -r1.7
--- gcc/config/stormy16/	17 Nov 2004 11:52:34 -0000	1.7
+++ gcc/config/stormy16/	3 Dec 2004 00:01:53 -0000
@@ -108,7 +108,7 @@
 ;; offset.  By using separate patterns for push and pop we ensure that
 ;; insns like this one are never generated.
-(define_insn "pushqi"
+(define_insn "pushqi1"
   [(set (mem:QI (post_inc (reg:HI 15)))
 	(match_operand:QI 0 "register_operand" "r"))]
@@ -116,7 +116,7 @@
   [(set_attr "psw_operand" "nop")
    (set_attr "length" "2")])
-(define_insn "popqi"
+(define_insn "popqi1"
   [(set (match_operand:QI 0 "register_operand" "=r")
 	(mem:QI (pre_dec (reg:HI 15))))]
@@ -160,7 +160,7 @@
 	      (const_int 2)])
    (set_attr "psw_operand" "0,0,0,0,nop,0,nop,0,0")])
-(define_insn "pushhi"
+(define_insn "pushhi1"
   [(set (mem:HI (post_inc (reg:HI 15)))
 	(match_operand:HI 0 "register_operand" "r"))]
@@ -168,7 +168,7 @@
   [(set_attr "psw_operand" "nop")
    (set_attr "length" "2")])
-(define_insn "pophi"
+(define_insn "pophi1"
   [(set (match_operand:HI 0 "register_operand" "=r")
 	(mem:HI (pre_dec (reg:HI 15))))]

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