public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* bad shifts generated in sim code
@ 2002-12-10  0:40 Doug Evans
  2002-12-10 13:41 ` Ben Elliston
  2002-12-13  8:49 ` Frank Ch. Eigler
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Evans @ 2002-12-10  0:40 UTC (permalink / raw)
  To: cgen

I found these in sim/m32r/decodex.c

          unsigned int val = (((insn >> -8) & (3 << 0)));

          unsigned int val = (((insn >> -12) & (1 << 0)));

Someone want to fess up?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bad shifts generated in sim code
  2002-12-10  0:40 bad shifts generated in sim code Doug Evans
@ 2002-12-10 13:41 ` Ben Elliston
  2002-12-13  8:49 ` Frank Ch. Eigler
  1 sibling, 0 replies; 3+ messages in thread
From: Ben Elliston @ 2002-12-10 13:41 UTC (permalink / raw)
  To: Doug Evans; +Cc: cgen

>>>>> "Doug" == Doug Evans <dje@transmeta.com> writes:

  Doug> I found these in sim/m32r/decodex.c
  Doug>           unsigned int val = (((insn >> -8) & (3 << 0)));
  Doug>           unsigned int val = (((insn >> -12) & (1 << 0)));

  Doug> Someone want to fess up?

I'm not sure there is any fessing to do.  Has this file been
regenerated lately?  There was a bug in decoder generation that
generated negative shifts which I thought we'd fixed.

Ben

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bad shifts generated in sim code
  2002-12-10  0:40 bad shifts generated in sim code Doug Evans
  2002-12-10 13:41 ` Ben Elliston
@ 2002-12-13  8:49 ` Frank Ch. Eigler
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Ch. Eigler @ 2002-12-13  8:49 UTC (permalink / raw)
  To: Doug Evans; +Cc: cgen

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

Hi -

On Tue, Dec 10, 2002 at 12:40:08AM -0800, Doug Evans wrote:
> I found these in sim/m32r/decodex.c
>           unsigned int val = (((insn >> -8) & (3 << 0)));
>           unsigned int val = (((insn >> -12) & (1 << 0)));
> [...]

Do these bad shifts still occur with current cgen?

FWIW, working on sim/m32r may be a short-lived pleasure, if the
target-obsoleting eagerness of gdb guys ends up getting that target
removed.  You're welcome to work in sid land. :-)


- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-13 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10  0:40 bad shifts generated in sim code Doug Evans
2002-12-10 13:41 ` Ben Elliston
2002-12-13  8:49 ` Frank Ch. Eigler

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).