+2006-04-26 David Edelsohn <edelsohn@gnu.org>
+ Paolo Bonzini <bonzini@gnu.org>
+
+ PR middle-end/27282
+ * combine.c (simplify_and_const_int_1): Use gen_int_mode.
+ (simplify_and_const_int): Same.
+
2006-04-26 Aldy Hernandez <aldyh@redhat.com>
* tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
return NULL_RTX;
/* Otherwise, return an AND. */
- constop = trunc_int_for_mode (constop, mode);
- return simplify_gen_binary (AND, mode, varop, GEN_INT (constop));
+ return simplify_gen_binary (AND, mode, varop, gen_int_mode (constop, mode));
}
return tem;
if (!x)
- x = simplify_gen_binary (AND, GET_MODE (varop), varop, GEN_INT (constop));
+ x = simplify_gen_binary (AND, GET_MODE (varop), varop,
+ gen_int_mode (constop, mode));
if (GET_MODE (x) != mode)
x = gen_lowpart (mode, x);
return x;