public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
@ 2011-10-29 15:14 ebotcazou at gcc dot gnu.org
  2011-10-30  9:16 ` [Bug target/50911] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-29 15:14 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50911
           Summary: [4.7 regression] assertion failure in
                    expand_vec_perm_interleave2 with -msse
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ebotcazou@gcc.gnu.org
            Target: i?86-*-* x86_64-*-*


Created attachment 25660
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25660
Concatenated testcase

This is a regression introduced by the recent changes in the x86 back-end which
are related to vectorization.  If you compile the to-be-gnatchoped testcase
with -O3 -msse, you get:

eric@atlantis:~/build/gcc> gcc -S -gnatws -O3 -msse loop_optimization9.adb
+===========================GNAT BUG DETECTED==============================+
| 4.7.0 20111028 (experimental) [trunk revision 180610] (i586-suse-linux-gnu)
GCC error:|
| in expand_vec_perm_interleave2, at config/i386/i386.c:35573              |
| Error detected around gcc/ada/rts/s-string.ads:58:4              

This compiles fine with -O3 -msse2 instead.  The testcase can directly be added
to the testsuite as gnat.dg/loop_optimization9.ad[sb].


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
@ 2011-10-30  9:16 ` rguenth at gcc dot gnu.org
  2011-11-05 11:59 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-30  9:16 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
  2011-10-30  9:16 ` [Bug target/50911] " rguenth at gcc dot gnu.org
@ 2011-11-05 11:59 ` rguenth at gcc dot gnu.org
  2011-11-09 13:57 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-11-05 11:59 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
  2011-10-30  9:16 ` [Bug target/50911] " rguenth at gcc dot gnu.org
  2011-11-05 11:59 ` rguenth at gcc dot gnu.org
@ 2011-11-09 13:57 ` jakub at gcc dot gnu.org
  2011-11-09 15:11 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-09 13:57 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-11-09
                 CC|                            |jakub at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-09 13:52:58 UTC ---
Shorter testcase (in a language I understand ;) ):
struct A { void *a, *b; };

void
foo (struct A *p)
{
  int i;
  for (i = 0; i < 1024; i++)
    {
      p[i].a = 0;
      p[i].b = "abc";
    }
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-11-09 13:57 ` jakub at gcc dot gnu.org
@ 2011-11-09 15:11 ` jakub at gcc dot gnu.org
  2011-11-09 18:31 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-09 15:11 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-09 15:01:50 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180450
I'll have a look.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-11-09 15:11 ` jakub at gcc dot gnu.org
@ 2011-11-09 18:31 ` jakub at gcc dot gnu.org
  2011-11-09 21:51 ` jakub at gcc dot gnu.org
  2011-11-09 21:54 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-09 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-09 18:26:12 UTC ---
Created attachment 25772
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25772
gcc47-pr50911.patch

Untested fix.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-11-09 18:31 ` jakub at gcc dot gnu.org
@ 2011-11-09 21:51 ` jakub at gcc dot gnu.org
  2011-11-09 21:54 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-09 21:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-09 21:37:31 UTC ---
Author: jakub
Date: Wed Nov  9 21:37:27 2011
New Revision: 181238

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181238
Log:
    PR target/50911
    * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
    V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
    to V4SFmode.

    * gcc.dg/torture/vshuf-16.inc: Add interleave low and high
    permutations.
    * gcc.dg/torture/vshuf-32.inc: Likewise.
    * gcc.dg/torture/vshuf-4.inc: Likewise.
    * gcc.dg/torture/vshuf-8.inc: Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/vshuf-16.inc
    trunk/gcc/testsuite/gcc.dg/torture/vshuf-32.inc
    trunk/gcc/testsuite/gcc.dg/torture/vshuf-4.inc
    trunk/gcc/testsuite/gcc.dg/torture/vshuf-8.inc


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/50911] [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse
  2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-11-09 21:51 ` jakub at gcc dot gnu.org
@ 2011-11-09 21:54 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-09 21:54 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-09 21:50:58 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-09 21:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-29 15:14 [Bug target/50911] New: [4.7 regression] assertion failure in expand_vec_perm_interleave2 with -msse ebotcazou at gcc dot gnu.org
2011-10-30  9:16 ` [Bug target/50911] " rguenth at gcc dot gnu.org
2011-11-05 11:59 ` rguenth at gcc dot gnu.org
2011-11-09 13:57 ` jakub at gcc dot gnu.org
2011-11-09 15:11 ` jakub at gcc dot gnu.org
2011-11-09 18:31 ` jakub at gcc dot gnu.org
2011-11-09 21:51 ` jakub at gcc dot gnu.org
2011-11-09 21:54 ` jakub at gcc dot gnu.org

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).