Commit e879eb2f by Jan Hubicka Committed by Jan Hubicka

* loop.c (canonicalize_condition): Use gen_int_mode.

From-SVN: r52715
parent 4287a893
Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
* loop.c (canonicalize_condition): Use gen_int_mode.
2002-04-24 Aldy Hernandez <aldyh@redhat.com> 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/altivec.h: Cleanup file. Add non individual * config/rs6000/altivec.h: Cleanup file. Add non individual
......
...@@ -9264,7 +9264,7 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg) ...@@ -9264,7 +9264,7 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
{ {
case LE: case LE:
if ((unsigned HOST_WIDE_INT) const_val != max_val >> 1) 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; break;
/* When cross-compiling, const_val might be sign-extended from /* When cross-compiling, const_val might be sign-extended from
...@@ -9273,17 +9273,17 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg) ...@@ -9273,17 +9273,17 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
if ((HOST_WIDE_INT) (const_val & max_val) if ((HOST_WIDE_INT) (const_val & max_val)
!= (((HOST_WIDE_INT) 1 != (((HOST_WIDE_INT) 1
<< (GET_MODE_BITSIZE (GET_MODE (op0)) - 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; break;
case LEU: case LEU:
if (uconst_val < max_val) 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; break;
case GEU: case GEU:
if (uconst_val != 0) 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; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment