Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>

Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
        * loop.c (canonicalize_condition): Use gen_int_mode.

From-SVN: r57040
This commit is contained in:
Alexander Kabaev 2002-09-11 22:04:05 +00:00 committed by Richard Henderson
parent 685e966329
commit eb53eed587
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-09-11 Alexander Kabaev <kan@FreeBSD.ORG>
Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
* loop.c (canonicalize_condition): Use gen_int_mode.
2002-09-08 Alan Modra <amodra@bigpond.net.au>
* reload.c (find_reloads <p constraint>): Pass operand_mode to

View File

@ -9264,7 +9264,7 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
{
case LE:
if ((unsigned HOST_WIDE_INT) const_val != max_val >> 1)
code = LT, op1 = GEN_INT (const_val + 1);
code = LT, op1 = gen_int_mode (const_val + 1, GET_MODE (op0));
break;
/* When cross-compiling, const_val might be sign-extended from
@ -9273,17 +9273,17 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
if ((HOST_WIDE_INT) (const_val & max_val)
!= (((HOST_WIDE_INT) 1
<< (GET_MODE_BITSIZE (GET_MODE (op0)) - 1))))
code = GT, op1 = GEN_INT (const_val - 1);
code = GT, op1 = gen_int_mode (const_val - 1, GET_MODE (op0));
break;
case LEU:
if (uconst_val < max_val)
code = LTU, op1 = GEN_INT (uconst_val + 1);
code = LTU, op1 = gen_int_mode (uconst_val + 1, GET_MODE (op0));
break;
case GEU:
if (uconst_val != 0)
code = GTU, op1 = GEN_INT (uconst_val - 1);
code = GTU, op1 = gen_int_mode (uconst_val - 1, GET_MODE (op0));
break;
default: