public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/45142] split for *vec_set<mode>_0_sse2 incomplete
Date: Fri, 30 Jul 2010 14:25:00 -0000	[thread overview]
Message-ID: <20100730142452.3907.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45142-10053@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-07-30 14:24 -------
Created an attachment (id=21360)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21360&action=view)
required patch

Together with attached patch (from the vector-enhancement GSoC project).

#define vector(elcount, type)  \
__attribute__((vector_size((elcount)*sizeof(type)))) type

#define vidx(type, vec, idx) (*(((type *) &(vec)) + idx))

int main (int argc, char **argv)
{
   vector (4, int) i0 = {argc, 1,2,3};
   vector(4,int) i2;
   vector (4, int) imask = {0,3,2,1};
   int a, b, c;

   if (argc > 4)
       __builtin_abort ();

   i2 = __builtin_shuffle (imask, i0);

   b = 0;
   if (vidx (int,imask,b) == vidx (int, i2, b))
      __builtin_abort ();

   return 0;
}

ICEs at -O2 on x86_64.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45142


  parent reply	other threads:[~2010-07-30 14:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 10:46 [Bug target/45142] New: " rguenth at gcc dot gnu dot org
2010-07-30 14:17 ` [Bug target/45142] " rth at gcc dot gnu dot org
2010-07-30 14:25 ` rguenth at gcc dot gnu dot org [this message]
2010-07-31 10:55 ` ubizjak at gmail dot com
2010-07-31 11:03 ` ubizjak at gmail dot com
2010-07-31 11:18 ` rguenther at suse dot de
2010-07-31 12:06 ` rguenth at gcc dot gnu dot org
2010-08-01 10:01 ` ubizjak at gmail dot com
2010-08-01 10:42 ` uros at gcc dot gnu dot org
2010-08-01 10:43 ` ubizjak at gmail dot com

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=20100730142452.3907.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).