simplify-rtx.c (simplify_ternary_operation): Use trunc_int_for_mode.

* simplify-rtx.c (simplify_ternary_operation): Use
        trunc_int_for_mode.

From-SVN: r90948
This commit is contained in:
Aldy Hernandez 2004-11-20 01:44:25 +00:00 committed by Aldy Hernandez
parent 633ce8953a
commit 449ecb09b3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-19 Aldy Hernandez <aldyh@redhat.com>
* simplify-rtx.c (simplify_ternary_operation): Use
trunc_int_for_mode.
2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c (reinstall_phi_args): New.

View File

@ -3170,7 +3170,7 @@ simplify_ternary_operation (enum rtx_code code, enum machine_mode mode,
!= ((HOST_WIDE_INT) (-1) << (width - 1))))
val &= ((HOST_WIDE_INT) 1 << width) - 1;
return GEN_INT (val);
return gen_int_mode (val, mode);
}
break;