This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to stop GCC from shifting by a negative number
- From: Richard Henderson <rth at redhat dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: geoffk at geoffk dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 17 Aug 2002 10:48:59 -0700
- Subject: Re: patch to stop GCC from shifting by a negative number
- References: <200208162108.OAA29455@hpsje.cup.hp.com>
On Fri, Aug 16, 2002 at 02:08:47PM -0700, Steve Ellcey wrote:
> - /* Don't attempt bitwise arithmetic on non-integral modes. */
> - if (! INTEGRAL_MODE_P (compute_mode))
> + /* Don't attempt bitwise arithmetic on non-integer modes. */
> + if (GET_MODE_CLASS (compute_mode) != MODE_INT
> + && GET_MODE_CLASS (compute_mode) != MODE_PARTIAL_INT)
> +
> {
Please introduce a new macro SCALAR_INT_MODE_P for this test,
and use as needed throughout. Do not introduce random whitespace.
Ok with that change.
r~