From 449ecb09b3677aa1d7225862dcc53e6f27b0bad0 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Sat, 20 Nov 2004 01:44:25 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/simplify-rtx.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91282c311e9..760e977ec57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-19 Aldy Hernandez + + * simplify-rtx.c (simplify_ternary_operation): Use + trunc_int_for_mode. + 2004-11-19 Kazu Hirata * tree-cfg.c (reinstall_phi_args): New. diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index e463fef1efe..a9d4ba3e5d2 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -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; -- 2.30.2