public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26379]  New: ICE on vector shift RTL simplification
@ 2006-02-20 10:58 jakub at gcc dot gnu dot org
  2006-02-20 11:01 ` [Bug middle-end/26379] [4.0/4.1/4.2 Regression] " jakub at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-02-20 10:58 UTC (permalink / raw)
  To: gcc-bugs

#include <mmintrin.h>

void
foo (__m64 *p)
{
  __m64 m;

  m = p[0];
  m = _mm_srli_pi16(m, 2);
  m = _mm_slli_pi16(m, 8);

  p[0] = m;
  _mm_empty();
}

ICEs with both -O2 -m32 and -O2 -m64, in GCC 4.0.2, 4.1rc1 as well as trunk.


-- 
           Summary: ICE on vector shift RTL simplification
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: i386-linux, x86_64-linux


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


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

* [Bug middle-end/26379] [4.0/4.1/4.2 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
@ 2006-02-20 11:01 ` jakub at gcc dot gnu dot org
  2006-02-20 11:42 ` jakub at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-02-20 11:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2006-02-20 11:01 -------
Obviously with -O2 -m32 -mmmx for 32-bit compiles.
The testcase compiles in GCC 3.2.3 and 3.4.5, so a regression.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
            Summary|ICE on vector shift RTL     |[4.0/4.1/4.2 Regression] ICE
                   |simplification              |on vector shift RTL
                   |                            |simplification


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


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

* [Bug middle-end/26379] [4.0/4.1/4.2 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
  2006-02-20 11:01 ` [Bug middle-end/26379] [4.0/4.1/4.2 Regression] " jakub at gcc dot gnu dot org
@ 2006-02-20 11:42 ` jakub at gcc dot gnu dot org
  2006-02-20 12:52 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-02-20 11:42 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |02/msg01606.html
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
           Keywords|                            |patch
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-20 11:42:48
               date|                            |


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


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

* [Bug middle-end/26379] [4.0/4.1/4.2 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
  2006-02-20 11:01 ` [Bug middle-end/26379] [4.0/4.1/4.2 Regression] " jakub at gcc dot gnu dot org
  2006-02-20 11:42 ` jakub at gcc dot gnu dot org
@ 2006-02-20 12:52 ` pinskia at gcc dot gnu dot org
  2006-02-21  8:09 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-20 12:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-20 12:52 -------
It did work at least in "4.1.0 20051026".


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
      Known to fail|                            |4.1.0 4.2.0 4.0.3
      Known to work|                            |3.4.0 3.4.5
   Target Milestone|---                         |4.0.3


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


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

* [Bug middle-end/26379] [4.0/4.1/4.2 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-20 12:52 ` pinskia at gcc dot gnu dot org
@ 2006-02-21  8:09 ` jakub at gcc dot gnu dot org
  2006-02-24  1:39 ` [Bug middle-end/26379] [4.0 " mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-02-21  8:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-02-21 08:09 -------
Subject: Bug 26379

Author: jakub
Date: Tue Feb 21 08:09:08 2006
New Revision: 111328

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111328
Log:
        PR middle-end/26379
        * combine.c (simplify_shift_const_1): Disable nested shifts
        optimization for vector shifts.

        * gcc.target/i386/mmx-7.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/mmx-7.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/26379] [4.0 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-21  8:09 ` jakub at gcc dot gnu dot org
@ 2006-02-24  1:39 ` mmitchel at gcc dot gnu dot org
  2006-02-24  1:39 ` [Bug middle-end/26379] [4.0/4.1 " mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24  1:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2006-02-24 01:39 -------
Patch applied to 4.1.

This patch is OK for 4.0; please apply there.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
            Summary|[4.0/4.1 Regression] ICE on |[4.0 Regression] ICE on
                   |vector shift RTL            |vector shift RTL
                   |simplification              |simplification


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


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

* [Bug middle-end/26379] [4.0/4.1 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-24  1:39 ` [Bug middle-end/26379] [4.0 " mmitchel at gcc dot gnu dot org
@ 2006-02-24  1:39 ` mmitchel at gcc dot gnu dot org
  2006-03-11  3:22 ` [Bug middle-end/26379] [4.0 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24  1:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-02-24 01:37 -------
Subject: Bug 26379

Author: mmitchel
Date: Fri Feb 24 01:37:22 2006
New Revision: 111411

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111411
Log:
        Backport:
        2006-02-21  Jakub Jelinek  <jakub@redhat.com>
        PR middle-end/26379
        * combine.c (simplify_shift_const_1): Disable nested shifts
        optimization for vector shifts.

        Backport:
        2006-02-21  Jakub Jelinek  <jakub@redhat.com>
        PR middle-end/26379
        * gcc.target/i386/mmx-7.c: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.target/i386/mmx-7.c
      - copied unchanged from r111328,
trunk/gcc/testsuite/gcc.target/i386/mmx-7.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/combine.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/26379] [4.0 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-24  1:39 ` [Bug middle-end/26379] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-03-11  3:22 ` mmitchel at gcc dot gnu dot org
  2006-03-16 21:33 ` sayle at gcc dot gnu dot org
  2006-03-17  0:17 ` roger at eyesopen dot com
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11  3:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.0.4


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


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

* [Bug middle-end/26379] [4.0 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-03-11  3:22 ` [Bug middle-end/26379] [4.0 " mmitchel at gcc dot gnu dot org
@ 2006-03-16 21:33 ` sayle at gcc dot gnu dot org
  2006-03-17  0:17 ` roger at eyesopen dot com
  8 siblings, 0 replies; 10+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-03-16 21:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sayle at gcc dot gnu dot org  2006-03-16 21:33 -------
Subject: Bug 26379

Author: sayle
Date: Thu Mar 16 21:33:38 2006
New Revision: 112152

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112152
Log:

        PR middle-end/26379
        Backport from mainline.
        2006-02-21  Jakub Jelinek  <jakub@redhat.com>
        * combine.c (simplify_shift_const_1): Disable nested shifts
        optimization for vector shifts.

        * gcc.target/i386/mmx-7.c: New test.


Added:
    branches/gcc-4_0-branch/gcc/testsuite/gcc.target/i386/mmx-7.c
Modified:
    branches/gcc-4_0-branch/gcc/ChangeLog
    branches/gcc-4_0-branch/gcc/combine.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/26379] [4.0 Regression] ICE on vector shift RTL simplification
  2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-03-16 21:33 ` sayle at gcc dot gnu dot org
@ 2006-03-17  0:17 ` roger at eyesopen dot com
  8 siblings, 0 replies; 10+ messages in thread
From: roger at eyesopen dot com @ 2006-03-17  0:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from roger at eyesopen dot com  2006-03-17 00:17 -------
I've now committed this patch (as approved by Mark) to the 4.0 branch for
Jakub, so this PR can be closed.


-- 

roger at eyesopen dot com changed:

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


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


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

end of thread, other threads:[~2006-03-17  0:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-20 10:58 [Bug middle-end/26379] New: ICE on vector shift RTL simplification jakub at gcc dot gnu dot org
2006-02-20 11:01 ` [Bug middle-end/26379] [4.0/4.1/4.2 Regression] " jakub at gcc dot gnu dot org
2006-02-20 11:42 ` jakub at gcc dot gnu dot org
2006-02-20 12:52 ` pinskia at gcc dot gnu dot org
2006-02-21  8:09 ` jakub at gcc dot gnu dot org
2006-02-24  1:39 ` [Bug middle-end/26379] [4.0 " mmitchel at gcc dot gnu dot org
2006-02-24  1:39 ` [Bug middle-end/26379] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-03-11  3:22 ` [Bug middle-end/26379] [4.0 " mmitchel at gcc dot gnu dot org
2006-03-16 21:33 ` sayle at gcc dot gnu dot org
2006-03-17  0:17 ` roger at eyesopen dot com

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