This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
XStormy16: Define IRA_COVER_CLASSES
- From: Nick Clifton <nickc at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Aug 2008 18:00:58 +0100
- Subject: 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", \