public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1
@ 2012-01-09 17:17 mgretton at sourceware dot org
  2012-01-10 10:07 ` [Bug tree-optimization/51799] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mgretton at sourceware dot org @ 2012-01-09 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51799
           Summary: Compiler ICE in vect_is_simple_use_1
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mgretton@sourceware.org
            Target: arm-*-*


Created attachment 26281
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26281
Failing test case.

The attached test case causes the compiler to ICE as follows:

$ arm-none-eabi-gcc  -O1 -ftree-vectorize -mcpu=cortex-a9 \
      -mfpu=neon -mfloat-abi=softfp ice.c 
ice.c: In function 'f0a':
ice.c:7:1: internal compiler error: in vect_is_simple_use_1, at
tree-vect-stmts.c:5987
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Checked against trunk revision 183018.


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

* [Bug tree-optimization/51799] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
@ 2012-01-10 10:07 ` rguenth at gcc dot gnu.org
  2012-01-10 13:28 ` [Bug tree-optimization/51799] [4.7 Regression] " mgretton at sourceware dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |irar at gcc dot gnu.org

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 10:07:13 UTC ---
Did it work with 4.6.x?  If so, please mark it as regression.


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

* [Bug tree-optimization/51799] [4.7 Regression] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
  2012-01-10 10:07 ` [Bug tree-optimization/51799] " rguenth at gcc dot gnu.org
@ 2012-01-10 13:28 ` mgretton at sourceware dot org
  2012-01-10 14:03 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mgretton at sourceware dot org @ 2012-01-10 13:28 UTC (permalink / raw)
  To: gcc-bugs

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

Matthew Gretton-Dann <mgretton at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.2
            Summary|Compiler ICE in             |[4.7 Regression] Compiler
                   |vect_is_simple_use_1        |ICE in vect_is_simple_use_1
      Known to fail|                            |4.7.0

--- Comment #2 from Matthew Gretton-Dann <mgretton at sourceware dot org> 2012-01-10 13:27:39 UTC ---
Doesn't ICE with GCC 4.6.2.


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

* [Bug tree-optimization/51799] [4.7 Regression] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
  2012-01-10 10:07 ` [Bug tree-optimization/51799] " rguenth at gcc dot gnu.org
  2012-01-10 13:28 ` [Bug tree-optimization/51799] [4.7 Regression] " mgretton at sourceware dot org
@ 2012-01-10 14:03 ` rguenth at gcc dot gnu.org
  2012-01-11 12:15 ` ramana at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 14:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 14:03:21 UTC ---
Thanks for checking.


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

* [Bug tree-optimization/51799] [4.7 Regression] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
                   ` (2 preceding siblings ...)
  2012-01-10 14:03 ` rguenth at gcc dot gnu.org
@ 2012-01-11 12:15 ` ramana at gcc dot gnu.org
  2012-01-12 10:49 ` irar at il dot ibm.com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ramana at gcc dot gnu.org @ 2012-01-11 12:15 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-01-11
                 CC|                            |ramana at gcc dot gnu.org
     Ever Confirmed|0                           |1


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

* [Bug tree-optimization/51799] [4.7 Regression] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
                   ` (3 preceding siblings ...)
  2012-01-11 12:15 ` ramana at gcc dot gnu.org
@ 2012-01-12 10:49 ` irar at il dot ibm.com
  2012-01-12 14:42 ` irar at gcc dot gnu.org
  2012-01-12 16:50 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: irar at il dot ibm.com @ 2012-01-12 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

Ira Rosen <irar at il dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |irar at il dot ibm.com
         AssignedTo|unassigned at gcc dot       |irar at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #4 from Ira Rosen <irar at il dot ibm.com> 2012-01-12 10:48:11 UTC ---
This is actually the same problem as in pr 51301, and the fix of 51301 looks
incomplete: we want an over-promoted sequence to end with type demotion
operation, so we need to check that properly:

Index: tree-vect-patterns.c
===================================================================
--- tree-vect-patterns.c        (revision 182840)
+++ tree-vect-patterns.c        (working copy)
@@ -1186,13 +1186,15 @@
     {
       use_lhs = gimple_assign_lhs (use_stmt);
       use_type = TREE_TYPE (use_lhs);
-      /* Support only type promotion or signedess change.  Check that USE_TYPE
-        is not bigger than the original type.  */
+      /* Support only type demotion or signedess change.  */
       if (!INTEGRAL_TYPE_P (use_type)
-          || TYPE_PRECISION (new_type) > TYPE_PRECISION (use_type)
-         || TYPE_PRECISION (type) < TYPE_PRECISION (use_type))
+         || TYPE_PRECISION (type) <= TYPE_PRECISION (use_type))
         return NULL;

+      /* Check that NEW_TYPE is not bigger than the conversion result.  */
+      if (TYPE_PRECISION (new_type) > TYPE_PRECISION (use_type))
+       return NULL;
+
       if (TYPE_UNSIGNED (new_type) != TYPE_UNSIGNED (use_type)
           || TYPE_PRECISION (new_type) != TYPE_PRECISION (use_type))
         {

I am going to test this patch.


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

* [Bug tree-optimization/51799] [4.7 Regression] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
                   ` (4 preceding siblings ...)
  2012-01-12 10:49 ` irar at il dot ibm.com
@ 2012-01-12 14:42 ` irar at gcc dot gnu.org
  2012-01-12 16:50 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: irar at gcc dot gnu.org @ 2012-01-12 14:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from irar at gcc dot gnu.org 2012-01-12 14:41:51 UTC ---
Author: irar
Date: Thu Jan 12 14:41:44 2012
New Revision: 183126

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

        PR tree-optimization/51799
        * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
        that the last operation is a type demotion.


Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr51799.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c
    trunk/gcc/tree-vect-patterns.c


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

* [Bug tree-optimization/51799] [4.7 Regression] Compiler ICE in vect_is_simple_use_1
  2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
                   ` (5 preceding siblings ...)
  2012-01-12 14:42 ` irar at gcc dot gnu.org
@ 2012-01-12 16:50 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-12 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-12 16:49:21 UTC ---
Fixed.


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

end of thread, other threads:[~2012-01-12 16:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-09 17:17 [Bug tree-optimization/51799] New: Compiler ICE in vect_is_simple_use_1 mgretton at sourceware dot org
2012-01-10 10:07 ` [Bug tree-optimization/51799] " rguenth at gcc dot gnu.org
2012-01-10 13:28 ` [Bug tree-optimization/51799] [4.7 Regression] " mgretton at sourceware dot org
2012-01-10 14:03 ` rguenth at gcc dot gnu.org
2012-01-11 12:15 ` ramana at gcc dot gnu.org
2012-01-12 10:49 ` irar at il dot ibm.com
2012-01-12 14:42 ` irar at gcc dot gnu.org
2012-01-12 16:50 ` 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).