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]

XStormy16: Define IRA_COVER_CLASSES


Hi Guys,

  I am checking in the patch below to define IRA_COVER_CLASSES for the
  XStormy16 target.  Whilst checking this patch I found a problem with
  the length attribute of the zero_extendqihi2 pattern, so I am
  including a fix for this as well.

Cheers
  Nick

gcc/ChangeLog
2008-08-28  Nick Clifton  <nickc@redhat.com>

	* config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
	* config/stormy16/stormy16.md (zero_extendqihi2): Fix length
	attribute.

Index: gcc/config/stormy16/stormy16.md
===================================================================
--- gcc/config/stormy16/stormy16.md	(revision 139716)
+++ gcc/config/stormy16/stormy16.md	(working copy)
@@ -265,9 +265,9 @@
    mov.b %0, %1
    shl %0,#8\n\tshr %0,#8"
   [(set_attr "psw_operand" "nop,0")
-   (set_attr_alternative "length" 
-	     [(const_int 2)
-	      (const_int 4)])])
+   (set_attr_alternative "length"
+	     [(const_int 4)
+	      (const_int 8)])])
 
 
 ;; ::::::::::::::::::::
Index: gcc/config/stormy16/stormy16.h
===================================================================
--- gcc/config/stormy16/stormy16.h	(revision 139716)
+++ gcc/config/stormy16/stormy16.h	(working copy)
@@ -198,6 +198,11 @@
 
 #define N_REG_CLASSES ((int) LIM_REG_CLASSES)
 
+#define IRA_COVER_CLASSES			\
+{						\
+  GENERAL_REGS, CARRY_REGS, LIM_REG_CLASSES	\
+}
+
 #define REG_CLASS_NAMES				\
 {						\
   "NO_REGS", 					\


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