This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] S/390: Fix I and J constraint letters
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 24 Apr 2009 16:54:04 +0200
- Subject: [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"