From: Alan Modra Date: Wed, 19 Mar 2003 01:36:16 +0000 (+0000) Subject: re PR target/10073 (powerpc cannot split insn while building rscheme) X-Git-Tag: releases/gcc-3.2.3~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e309402fb86563c556d8655c3857d3cf9dc975c;p=thirdparty%2Fgcc.git re PR target/10073 (powerpc cannot split insn while building rscheme) PR target/10073 * combine.c (force_to_mode ): Use gen_int_mode. From-SVN: r64567 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f394bf60128..24a8e04f5fac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-19 Alan Modra + + PR target/10073 + * combine.c (force_to_mode ): Use gen_int_mode. + 2003-03-17 Dave Love Rainer Orth diff --git a/gcc/combine.c b/gcc/combine.c index 5e8ad1ac3a28..581b24782fbc 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -1,6 +1,6 @@ /* Optimize by combining instructions for GNU compiler. Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GCC. @@ -7125,7 +7125,8 @@ force_to_mode (x, mode, mask, reg, just_select) < GET_MODE_BITSIZE (GET_MODE (x))) && INTVAL (XEXP (XEXP (x, 0), 1)) < HOST_BITS_PER_WIDE_INT) { - temp = GEN_INT (mask << INTVAL (XEXP (XEXP (x, 0), 1))); + temp = gen_int_mode (mask << INTVAL (XEXP (XEXP (x, 0), 1)), + GET_MODE (x)); temp = gen_binary (XOR, GET_MODE (x), XEXP (XEXP (x, 0), 0), temp); x = gen_binary (LSHIFTRT, GET_MODE (x), temp, XEXP (XEXP (x, 0), 1));