public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Uros Bizjak <ubizjak@gmail.com>
To: Ilya Enkovich <enkovich.gnu@gmail.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	"H.J. Lu" <hjl.tools@gmail.com>,
		Jakub Jelinek <jakub@redhat.com>
Subject: Re: [RFC patch, i386]: Use STV pass to load/store any TImode constant using SSE insns
Date: Fri, 29 Apr 2016 09:49:00 -0000	[thread overview]
Message-ID: <CAFULd4bSJ3=JCvhX3RB1Fu5Pk+3MiUJXipx7pbqkPu=8Z2CiEw@mail.gmail.com> (raw)
In-Reply-To: <CAMbmDYbetEjt7iWKsxhnrwO3oZFYvKao8bJjJpo5rEGyyZ6JzQ@mail.gmail.com>

On Thu, Apr 28, 2016 at 12:36 PM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:

> That's what I have in my draft for DImode immediates:
>
> @@ -3114,6 +3123,20 @@ scalar_chain::build (bitmap candidates,
> unsigned insn_uid)
>    BITMAP_FREE (queue);
>  }
>
> +/* Return a cost of building a vector costant
> +   instead of using a scalar one.  */
> +
> +int
> +scalar_chain::vector_const_cost (rtx exp)
> +{
> +  gcc_assert (CONST_INT_P (exp));
> +
> +  if (const0_operand (exp, GET_MODE (exp))
> +      || constm1_operand (exp, GET_MODE (exp)))

The above should just use

standard_sse_constant_p (exp, V2DImode).

Uros.

  parent reply	other threads:[~2016-04-29  9:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 19:59 Uros Bizjak
2016-04-27 20:35 ` H.J. Lu
2016-04-28 10:36 ` Ilya Enkovich
2016-04-28 10:41   ` Jakub Jelinek
2016-04-28 10:45     ` Ilya Enkovich
2016-04-29  7:41       ` Jakub Jelinek
2016-04-28 10:43   ` Uros Bizjak
2016-04-28 10:50     ` Ilya Enkovich
2016-04-29  9:49   ` Uros Bizjak [this message]
2016-04-29 11:27     ` Ilya Enkovich
2016-04-29 11:56       ` Uros Bizjak

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='CAFULd4bSJ3=JCvhX3RB1Fu5Pk+3MiUJXipx7pbqkPu=8Z2CiEw@mail.gmail.com' \
    --to=ubizjak@gmail.com \
    --cc=enkovich.gnu@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=jakub@redhat.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).