public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/32421] [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
  2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
@ 2007-06-20 13:34 ` pinskia at gcc dot gnu dot org
  2007-06-21 13:32 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-20 13:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-06-20 13:34 -------
Mine.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-06-20 13:34:42
               date|                            |
   Target Milestone|---                         |4.3.0


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


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

* [Bug tree-optimization/32421]  New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
@ 2007-06-20 13:34 pinskia at gcc dot gnu dot org
  2007-06-20 13:34 ` [Bug tree-optimization/32421] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-20 13:34 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
int f(int **restrict a, int ** restrict b)
{
  int i;
  for(i= 0;i<32;i++)
    a[i] = b[i] + 1;
}


-- 
           Summary: [4.3 Regression] -ftree-vectorize -msse2 ICEs in
                    build2_stat when vectorizing POINTER_PLUS_EXPR
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/32421] [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
  2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
  2007-06-20 13:34 ` [Bug tree-optimization/32421] " pinskia at gcc dot gnu dot org
@ 2007-06-21 13:32 ` pinskia at gcc dot gnu dot org
  2007-06-22  0:01 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-21 13:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-06-21 13:32 -------
*** Bug 32435 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janis at gcc dot gnu dot org


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


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

* [Bug tree-optimization/32421] [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
  2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
  2007-06-20 13:34 ` [Bug tree-optimization/32421] " pinskia at gcc dot gnu dot org
  2007-06-21 13:32 ` pinskia at gcc dot gnu dot org
@ 2007-06-22  0:01 ` pinskia at gcc dot gnu dot org
  2007-06-24  8:08 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-22  0:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-06-22 00:01 -------
Patch which fixes the ICE:
Index: tree-vect-transform.c
===================================================================
--- tree-vect-transform.c       (revision 125927)
+++ tree-vect-transform.c       (working copy)
@@ -2968,6 +2968,12 @@

   operation = GIMPLE_STMT_OPERAND (stmt, 1);
   code = TREE_CODE (operation);
+
+  /* For pointer addition, we should use the normal plus for
+     the vector addition.  */
+  if (code == POINTER_PLUS_EXPR)
+    code = PLUS_EXPR;
+
   optab = optab_for_tree_code (code, vectype);

   /* Support only unary or binary operations.  */


-- 


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


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

* [Bug tree-optimization/32421] [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
  2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-06-22  0:01 ` pinskia at gcc dot gnu dot org
@ 2007-06-24  8:08 ` pinskia at gcc dot gnu dot org
  2007-06-26  0:20 ` pinskia at gcc dot gnu dot org
  2007-06-26  0:22 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-24  8:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-06-24 08:08 -------
*** Bug 32476 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com


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


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

* [Bug tree-optimization/32421] [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
  2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-06-24  8:08 ` pinskia at gcc dot gnu dot org
@ 2007-06-26  0:20 ` pinskia at gcc dot gnu dot org
  2007-06-26  0:22 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-26  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-06-26 00:19 -------
Subject: Bug 32421

Author: pinskia
Date: Tue Jun 26 00:19:44 2007
New Revision: 126012

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126012
Log:
2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR tree-opt/32421
        * tree-vect-transform.c (vectorizable_operation): Convert
        POINTER_PLUS_EXPR over to PLUS_EXPR.


2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR tree-opt/32421
        * gcc.dg/vect/pr32421.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr32421.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-transform.c


-- 


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


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

* [Bug tree-optimization/32421] [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR
  2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-06-26  0:20 ` pinskia at gcc dot gnu dot org
@ 2007-06-26  0:22 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-26  0:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-06-26 00:22 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-06-26  0:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20 13:34 [Bug tree-optimization/32421] New: [4.3 Regression] -ftree-vectorize -msse2 ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR pinskia at gcc dot gnu dot org
2007-06-20 13:34 ` [Bug tree-optimization/32421] " pinskia at gcc dot gnu dot org
2007-06-21 13:32 ` pinskia at gcc dot gnu dot org
2007-06-22  0:01 ` pinskia at gcc dot gnu dot org
2007-06-24  8:08 ` pinskia at gcc dot gnu dot org
2007-06-26  0:20 ` pinskia at gcc dot gnu dot org
2007-06-26  0:22 ` pinskia at gcc dot gnu dot 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).