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]

[Committed] S/390: Fix pr48335 testsuite fails


I've committed the attached patch fixing the following testsuite fails
on s390 (-march=z196):

< FAIL: gcc.dg/pr48335-2.c (internal compiler error)
< FAIL: gcc.dg/pr48335-2.c (test for excess errors)
< FAIL: gcc.dg/pr48335-3.c (internal compiler error)
< FAIL: gcc.dg/pr48335-3.c (test for excess errors)

I've also committed the fix to 4.8 branch since it is a regression
from 4.7.



2013-04-08  Andreas Krebbel  <>

	* config/s390/s390.c (s390_expand_insv): Only accept insertions
	within mode size.

 gcc/config/s390/s390.c |    3 +++
 1 file changed, 3 insertions(+)

Index: gcc/config/s390/s390.c
*** gcc/config/s390/s390.c.orig
--- gcc/config/s390/s390.c
*************** s390_expand_insv (rtx dest, rtx op1, rtx
*** 4648,4653 ****
--- 4648,4656 ----
    int smode_bsize, mode_bsize;
    rtx op, clobber;
+   if (bitsize + bitpos > GET_MODE_SIZE (mode))
+     return false;
    /* Generate INSERT IMMEDIATE (IILL et al).  */
    /* (set (ze (reg)) (const_int)).  */

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