public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Pierre Mallard" <pierremallard@yahoo.fr>
To: diwil@eis.ru
Cc: gcc@gcc.gnu.org
Subject: Re: splitting addhi, addsi
Date: Mon, 21 Oct 2002 10:20:00 -0000	[thread overview]
Message-ID: <20021021143746.35945.qmail@web20305.mail.yahoo.com> (raw)
In-Reply-To: <200210211213.29760.diwil@eis.ru>

Hi
Ok then looks working good ... until .. :
if ever gcc decide to separate completly the two expr
(add and add_with_carry) and put between it some other
code that change the carry, result will be wrong.
How can I do to make it impossible (i.e. allowed only
expression that do not affect the cc reg between add
and add_with_carry)?

Thanks a lot, Regards
Pierre
--- Dmitry <diwil@eis.ru> a écrit : > HOw about
unspec?
> 
> (define_insn "*plus_with_carry"
> [(set (reg:QI  XX) 
>        (unspec:QI [(reg:QI XX) (reg:QI YY)]
> 1234567))]
> "condition"
> "asm_code_for_plus_and_carry %0 %1 %2"
> [attributes])
> 
> Then:
>  (plus:HI (reg:HI)(reg:HI))
> splits into:
>  (plus:QI (reg:QI)(reg:QI))
>  (unspec:QI [(reg:QI)(reg:QI)] 1234567)...
> 
> ~d
> 
> 
> On Monday 21 October 2002 11:56, Pierre Mallard
> wrote:
> > Hi,
> > I'm working on the c compiler gcc-3.0.4 to port
> code
> > for my cpu.
> > In order to feel right my delay pipe of 3 slot I
> need
> > to cut every expression in code of one length
> > instruction.
> > So I need to have my addhi and addsi cut with sthg
> > like a define_split or things like this and I need
> to
> > take care of the carry...
> > I'm wondering how I can define a define_insn that
> do
> > not match the pattern of addqi and that realise
> the
> > add_with_carry instruction :
> >
> > (plus:HI (reg:HI)(reg:HI))
> > ->
> > (plus:QI (reg:QI)(reg:QI))
> > (plus_with_carry:QI (reg:QI)(reg:QI))...
> > Thanks,Regards
> > Pierre Mallard
> >
> >
> >
> >
>
___________________________________________________________
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> et en français !
> > Yahoo! Mail : http://fr.mail.yahoo.com
> 
> -- 
>
/********************************************************************
>      ("`-''-/").___..--''"`-._     (\   Dimmy the
> Wild      UA1ACZ
>       `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise
> Information Sys 
>       (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky
> prospekt,   20 / 44
>     _..`--'_..-_/  /--'_.' ,'           Saint
> Petersburg,   Russia
>    (il),-''  (li),'  ((!.-'             +7 (812) 
> 3468202, 5585314
> 
>
********************************************************************/
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

  parent reply	other threads:[~2002-10-21 14:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200210211213.29760.diwil@eis.ru>
2002-10-21  9:45 ` Pierre Mallard
2002-10-21 10:20 ` Pierre Mallard [this message]
2002-10-21  8:26 Pierre Mallard
2002-10-21 12:30 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2002-10-21  8:23 Pierre Mallard

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=20021021143746.35945.qmail@web20305.mail.yahoo.com \
    --to=pierremallard@yahoo.fr \
    --cc=diwil@eis.ru \
    --cc=gcc@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).