s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.

2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.

From-SVN: r209032
This commit is contained in:
Andreas Krebbel 2014-04-02 20:08:53 +00:00 committed by Andreas Krebbel
parent 7c40228a19
commit a9d46e3237
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (pad_bb): Do not crash when the last

View File

@ -4613,7 +4613,7 @@ s390_expand_insv (rtx dest, rtx op1, rtx op2, rtx src)
int smode_bsize, mode_bsize;
rtx op, clobber;
if (bitsize + bitpos > GET_MODE_SIZE (mode))
if (bitsize + bitpos > GET_MODE_BITSIZE (mode))
return false;
/* Generate INSERT IMMEDIATE (IILL et al). */