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]

[Committed] S/390: Fix I and J constraint letters


Hi,

the attached patch fixes an ancient bug in the S/390 I and J
constraints.  The wrong type cast somehow survived from one of the
first versions of the back-end although we touched that condition
several times over the back-end life time - how embarrassing :(

Committed to mainline and 4.4 branch.

Bye,

-Andreas-


2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/constraints.md ('I', 'J'): Fix condition.


Index: gcc/gcc/config/s390/constraints.md
===================================================================
--- gcc.orig/gcc/config/s390/constraints.md
+++ gcc/gcc/config/s390/constraints.md
@@ -129,13 +129,13 @@
 (define_constraint "I"
   "An 8-bit constant (0..255)"
   (and (match_code "const_int")
-       (match_test "(unsigned int) ival <= 255")))
+       (match_test "(unsigned HOST_WIDE_INT) ival <= 255")))
 
 
 (define_constraint "J"
   "A 12-bit constant (0..4095)"
   (and (match_code "const_int")
-       (match_test "(unsigned int) ival <= 4095")))
+       (match_test "(unsigned HOST_WIDE_INT) ival <= 4095")))
 
 
 (define_constraint "K"


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