public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dave Korn <dave.korn.cygwin@googlemail.com>
To: daniel tian <daniel.xntian@gmail.com>
Cc: gcc@gcc.gnu.org, Ian Lance Taylor <iant@google.com>,
	  peng.zheng@mavrixtech.com
Subject: Re: DImode operations
Date: Wed, 23 Sep 2009 13:02:00 -0000	[thread overview]
Message-ID: <4ABA1F9F.5050402@gmail.com> (raw)
In-Reply-To: <121fadb80909230410x71ca0e0co65202ab901266846@mail.gmail.com>

daniel tian wrote:
> Hi:
> 
>     Do I have to write the DImode operations on my *.md target description file?

  Yes.  movMM must be implemented for all types that you want the compiler to
be able to handle at all; it's the only way it knows to move them around.
(Technically, it's supposed to be able to treat DImode as BLKmode and break it
down by pieces, but this code hasn't always been reliable and is definitely
less efficient than implementing a proper movdi pattern in your backend.)

> My target is a RISC32 chip. There is no 64bit operations. And now I
> don't wanna any 64bit operations in my C programs.
> So do I have to finish the DImode operations?

  I think you really should.  Take a look at how other ports handle it;
generally they use a define_expand for movdi, which emits the move as two
separate SI-mode move insns.  (Note in particular how they have to take care
what order to emit the two word moves in, as it's possible for the register
pairs used in input and output operations to overlap.)

  If you insisted, you could probably just hack the *di* routines out of the
libgcc makefile and get through to the end of the build, but I really wouldn't
recommend it, since "long long" is a standard C99 type.  It's not a great deal
of work to add the expander pattern and code that you'll need.

    cheers,
      DaveK

  reply	other threads:[~2009-09-23 13:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 11:10 daniel tian
2009-09-23 13:02 ` Dave Korn [this message]
2009-09-24  7:05   ` daniel tian
2009-09-24  9:01     ` daniel tian
2009-09-24 14:54       ` Dave Korn
2009-09-28 10:50         ` daniel tian
2009-09-28 11:44           ` daniel tian
2009-09-28 13:07           ` Dave Korn
2009-09-29  2:00             ` daniel tian
2009-09-29  6:50               ` daniel tian
2009-09-29 14:56                 ` Ian Lance Taylor
2009-09-30 12:39                   ` daniel tian
2009-09-24 14:49     ` Dave Korn

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=4ABA1F9F.5050402@gmail.com \
    --to=dave.korn.cygwin@googlemail.com \
    --cc=daniel.xntian@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=iant@google.com \
    --cc=peng.zheng@mavrixtech.com \
    /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).