From 2d232d05278c1a5e45612ed694993cf7e9e5f963 Mon Sep 17 00:00:00 2001
From: rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 19 Mar 2002 18:00:43 +0000
Subject:         * emit-rtl.c (gen_int_mode): New function.         * rtl.h:
 Prototype for it.         * combine.c (make_extraction, simplify_comparison),
 expmed.c         (store_bit_field, expand_mult_highpart, expand_divmod),
 expr.c         (convert_modes, store_field), optabs.c (expand_fix),        
 simplify-rtx.c (neg_const_int, simplify_unary_real),

        * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
        Use it instead of GEN_INT (trunc_int_for_mode (...)).


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51030 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/expr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'gcc/expr.c')

diff --git a/gcc/expr.c b/gcc/expr.c
index ebe05fc20c9..f8a045a49fd 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1352,7 +1352,7 @@ convert_modes (mode, oldmode, x, unsignedp)
 	      && (val & ((HOST_WIDE_INT) 1 << (width - 1))))
 	    val |= (HOST_WIDE_INT) (-1) << width;
 
-	  return GEN_INT (trunc_int_for_mode (val, mode));
+	  return gen_int_mode (val, mode);
 	}
 
       return gen_lowpart (mode, x);
@@ -5150,8 +5150,7 @@ store_field (target, bitsize, bitpos, mode, exp, value_mode, unsignedp, type,
 
 	      if (unsignedp)
 		return expand_and (tmode, temp,
-				   GEN_INT (trunc_int_for_mode (width_mask,
-								tmode)),
+				   gen_int_mode (width_mask, tmode),
 				   NULL_RTX);
 
 	      count = build_int_2 (GET_MODE_BITSIZE (tmode) - bitsize, 0);
-- 
cgit v1.2.1