public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: "venkat" <venkat@acmet.com>
Cc: <gcc-help@gcc.gnu.org>
Subject: Re: Specifying explicit parallel to define_insn of a named pattern.
Date: Fri, 27 Mar 2009 16:35:00 -0000	[thread overview]
Message-ID: <m3tz5ex6tg.fsf@google.com> (raw)
In-Reply-To: <B0C41DDD9BA048728AA8BD39CDCAFC18@KVENKAT> (venkat@acmet.com's message of "Fri\, 27 Mar 2009 12\:14\:18 +0530")

"venkat" <venkat@acmet.com> writes:

> (define_insn_and_split "<div_mod_optab_name>si3"
>   [(parallel[                       <== *(1)
>    (set (match_operand:SI 0 "register_operand")
>         (any_div_op:SI (match_operand:SI 1 "register_operand")
>                        (match_operand:SI 2 "register_operand")))
>    (clobber (reg:SI LO_REG_NUM))
>    (clobber (reg:SI HI_REG_NUM))
>    ])
> ]

There is an implicit parallel in define_insn_and_split.  Don't add your
own.  I quote the documentation:

    If the vector has only one element, that element is the template for
    the instruction pattern.  If the vector has multiple elements, then
    the instruction pattern is a @code{parallel} expression containing
    the elements described.

Ian

  reply	other threads:[~2009-03-27 16:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27  6:44 venkat
2009-03-27 16:35 ` Ian Lance Taylor [this message]
     [not found] <7238340b0903302236o14f0b740y7fb3178d41050fd6@mail.gmail.com>
2009-03-31  5:48 ` Ian Lance Taylor
2009-03-31  5:48 ganesh gopalasubramanian

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=m3tz5ex6tg.fsf@google.com \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=venkat@acmet.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).