From: Steve Ellcey <sje@cup.hp.com>
To: geoffk@geoffk.org
Cc: gcc-patches@gcc.gnu.org
Subject: Re: patch to stop GCC from shifting by a negative number
Date: Tue, 13 Aug 2002 12:46:00 -0000 [thread overview]
Message-ID: <200208131945.MAA18032@hpsje.cup.hp.com> (raw)
> + /* You want to truncate to a _what_? */
> + if (GET_MODE_CLASS (mode) != MODE_INT
> + && GET_MODE_CLASS (mode) != MODE_PARTIAL_INT)
> + abort ();
> +
I ran the test suite with your patch and hit this abort a couple of
times on the PA64 HP-UX platform with tests
gcc.c-torture/execute/20020227-1.c and gcc.c-torture/compile/simd-1.c
using -O2 optmization.
In 20020227-1.c I enter simplify_binary_operation
with
code=LSHIFTRT
mode=SCmode
op0=(const_int -1 [0xffffffffffffffff])
op1=(const_int 32 [0x20])
In simd-1.c I enter simplify_binary_operation
with
code=ASHIFT
mode=V2SImode
op0=(const_int 4294967295 [0xffffffff])
op1=(const_int 32 [0x20])
and in both cases I call trunc_int_for_mode right at the end of
simplify_binary_operation with a mode of either SCmode or V2SImode which
then causes the abort to be hit.
Any ideas on what a good fix for these cases would be?
Steve Ellcey
sje@cup.hp.com
next reply other threads:[~2002-08-13 19:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-13 12:46 Steve Ellcey [this message]
2002-08-13 12:56 ` Geoff Keating
-- strict thread matches above, loose matches on Subject: below --
2002-08-16 14:09 Steve Ellcey
2002-08-17 10:49 ` Richard Henderson
2002-08-12 15:57 Steve Ellcey
2002-08-12 16:33 ` Richard Henderson
2002-08-12 16:56 ` Geoff Keating
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200208131945.MAA18032@hpsje.cup.hp.com \
--to=sje@cup.hp.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=geoffk@geoffk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).