public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rask Ingemann Lambertsen <rask@sygehus.dk>
To: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] lower-subreg: Decompose multiword shifts
Date: Tue, 07 Aug 2007 01:41:00 -0000	[thread overview]
Message-ID: <20070807014133.GX25795@sygehus.dk> (raw)
In-Reply-To: <20070802192140.GA32685@de.ibm.com>

On Thu, Aug 02, 2007 at 09:21:40PM +0200, Andreas Krebbel wrote:
> Hello,
> 
> > > + typedef unsigned int u32;
> > > + typedef unsigned long long u64;
> > 
> >    Please use uint32_t and uint64_t from stdint.h (or some other reliable
> > means of getting types of the sizes you want).
> 
> Yes the names I've choosen aren't correct for any platform but I think the types are nevertheless a good choice

   For starters, some targets have 16 bits wide int so your testcase will
fail there with excess errors. Since your shift counts and constants in the
testcase assume 32 bits for u32 and 64 bits for u64, you should use the
stdint.h types because they work on all targets.

> considering that I need something as wide as register and something else with twice the size.

   Somewhat surpricingly, a fairly common 64-bit target such as x86_64 has a
long long with a width of only 64 bits rather than the expected 128 bits. If
you scanned the RTL dumps to check that the decomposition happened, x86_64
would fail the testcase.

-- 
Rask Ingemann Lambertsen

  reply	other threads:[~2007-08-07  1:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02 15:35 Andreas Krebbel
2007-08-02 16:56 ` Paolo Bonzini
2007-08-03 16:41   ` Andreas Krebbel
2007-08-03 19:02     ` Paolo Bonzini
2007-08-02 18:52 ` Rask Ingemann Lambertsen
2007-08-02 19:21   ` Andreas Krebbel
2007-08-07  1:41     ` Rask Ingemann Lambertsen [this message]
2007-08-07  8:29       ` Andreas Krebbel
2007-08-02 23:16 ` Rask Ingemann Lambertsen
2007-08-03 12:03   ` Michael Matz
2007-08-03 14:34   ` Andreas Krebbel
2007-08-03 15:37     ` Michael Matz
2007-08-07  1:08       ` Ian Lance Taylor
2007-08-07  1:27 ` Ian Lance Taylor
2007-08-07 10:47   ` Andreas Krebbel
2007-08-08 18:40     ` Andreas Tobler
2007-08-09  7:45       ` Andreas Krebbel

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=20070807014133.GX25795@sygehus.dk \
    --to=rask@sygehus.dk \
    --cc=Andreas.Krebbel@de.ibm.com \
    --cc=gcc-patches@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).