public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/17731] sub-optimal code generated for left shift
Date: Wed, 29 Sep 2004 18:11:00 -0000	[thread overview]
Message-ID: <20040929181107.5174.qmail@sourceware.org> (raw)
In-Reply-To: <20040929175802.17731.tromey@gcc.gnu.org>


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-29 18:11 -------
on PPC:
__ZN4test5shiftEii:
        rlwinm r5,r5,0,27,31
        slw r3,r4,r5
        blr

Which is correct as r5 could be greater than 31 and being greater than 31 is undefined (4 bits are only 
used really but it could do something different than that).

So if this were to be done correctly, we would need a target hook for the Java front-end.

Note the only reason why I bring this up is because we just had a bootstrap failure where we depended 
on being anded by the machine and not in the code.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17731


  parent reply	other threads:[~2004-09-29 18:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29 17:58 [Bug java/17731] New: " tromey at gcc dot gnu dot org
2004-09-29 18:05 ` [Bug java/17731] " pinskia at gcc dot gnu dot org
2004-09-29 18:09 ` tromey at gcc dot gnu dot org
2004-09-29 18:11 ` pinskia at gcc dot gnu dot org [this message]
2004-09-29 18:14 ` [Bug target/17731] " pinskia at gcc dot gnu dot org
2004-09-29 18:16 ` pinskia at gcc dot gnu dot org
2004-09-29 19:39 ` [Bug rtl-optimization/17731] " rth at gcc dot gnu dot org
2004-09-29 21:03 ` tromey at gcc dot gnu dot org

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=20040929181107.5174.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.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).