optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
2007-07-05 Sandra Loosemore <sandra@codesourcery.com> gcc/ * optabs.c (expand_binop_directly): Fix signed/unsigned comparison. From-SVN: r126382
This commit is contained in:
parent
6e29b5a488
commit
9ee3427440
|
@ -1,3 +1,7 @@
|
||||||
|
2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
|
* optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
|
||||||
|
|
||||||
2007-07-05 Uros Bizjak <ubizjak@gmail.com>
|
2007-07-05 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* rtl.def (NOTE): Change print format string to print
|
* rtl.def (NOTE): Change print format string to print
|
||||||
|
|
|
@ -1456,7 +1456,7 @@ expand_binop (enum machine_mode mode, optab binoptab, rtx op0, rtx op1,
|
||||||
{
|
{
|
||||||
optab otheroptab = (binoptab == rotl_optab ? rotr_optab : rotl_optab);
|
optab otheroptab = (binoptab == rotl_optab ? rotr_optab : rotl_optab);
|
||||||
rtx newop1;
|
rtx newop1;
|
||||||
int bits = GET_MODE_BITSIZE (mode);
|
unsigned int bits = GET_MODE_BITSIZE (mode);
|
||||||
|
|
||||||
if (GET_CODE (op1) == CONST_INT)
|
if (GET_CODE (op1) == CONST_INT)
|
||||||
newop1 = GEN_INT (bits - INTVAL (op1));
|
newop1 = GEN_INT (bits - INTVAL (op1));
|
||||||
|
|
Loading…
Reference in New Issue