public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17853] New: -O2 ICE for MMX testcase
@ 2004-10-05 21:41 stuart at apple dot com
  2004-10-05 22:21 ` [Bug target/17853] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: stuart at apple dot com @ 2004-10-05 21:41 UTC (permalink / raw)
  To: gcc-bugs

gcc -O2 -mmmx i386-mmx-5.c
GCC fails thus:
---------------------------------------------
i386-mmx-5.c: In function 'main':
i386-mmx-5.c:15: internal compiler error: in simplify_binary_operation, at simplify-rtx.c:2151
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
---------------------------------------------
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -mmmx" } */
#include <mmintrin.h>
#include <stdlib.h>

__m64 global_mask;

main()
{
    __m64 zero = _mm_setzero_si64();
    __m64 mask = _mm_cmpeq_pi8( zero, zero );
    mask = _mm_unpacklo_pi8( mask, zero );
    global_mask = mask;
    exit(0);
}
-----------------------------------------------------

-- 
           Summary: -O2 ICE for MMX testcase
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stuart at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


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


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

* [Bug target/17853] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
@ 2004-10-05 22:21 ` pinskia at gcc dot gnu dot org
  2004-10-05 22:22 ` [Bug rtl-optimization/17853] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 22:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-05 22:21 -------
Confirmed, the problem comes down to:
(insn 29 28 31 0 (set (reg:V8QI 59 [ D.2054 ])
        (eq:V8QI (reg:V8QI 60 [ D.2051 ])
            (reg:V8QI 60 [ D.2051 ]))) 627 {eqv8qi3} (insn_list 28 (nil))
    (expr_list:REG_EQUAL (const_int 1 [0x1])
        (nil)))

Looks like CSE is adding the REG_EQUAL for no reason.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |target
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-05 22:21:37
               date|                            |


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


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

* [Bug rtl-optimization/17853] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
  2004-10-05 22:21 ` [Bug target/17853] " pinskia at gcc dot gnu dot org
@ 2004-10-05 22:22 ` pinskia at gcc dot gnu dot org
  2004-10-05 22:29 ` [Bug rtl-optimization/17853] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 22:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-05 22:22 -------
Really the const_int should be instead a const_vect.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |rtl-optimization


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


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

* [Bug rtl-optimization/17853] [3.4/4.0 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
  2004-10-05 22:21 ` [Bug target/17853] " pinskia at gcc dot gnu dot org
  2004-10-05 22:22 ` [Bug rtl-optimization/17853] " pinskia at gcc dot gnu dot org
@ 2004-10-05 22:29 ` pinskia at gcc dot gnu dot org
  2004-10-05 22:32 ` pinskia 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 @ 2004-10-05 22:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.3 4.0.0
      Known to work|                            |3.3.3
            Summary|-O2 ICE for MMX testcase    |[3.4/4.0 Regression] -O2 ICE
                   |                            |for MMX testcase
   Target Milestone|---                         |3.4.3


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


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

* [Bug rtl-optimization/17853] [3.4/4.0 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
                   ` (2 preceding siblings ...)
  2004-10-05 22:29 ` [Bug rtl-optimization/17853] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-05 22:32 ` pinskia at gcc dot gnu dot org
  2004-10-09 19:28 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 22:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-05 22:32 -------
: Search converges between 2003-02-08-trunk (#179) and 2003-02-10-trunk (#180).
I almost this it was caused by:

2003-02-09  Jan Hubicka  <jh@suse.cz>

        * i386.md (ahi?v*3): Set third operand type to TImode.
        * i386.c (ix86_expand_binop_builtin): Extend operand when needed.

        * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
        integer mode.

        * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
        Change code so they are arithmetic expressions now.
        * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
        simplify_ternary_operation): Deal with VEC_* expressions.

        * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.


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


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


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

* [Bug rtl-optimization/17853] [3.4/4.0 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
                   ` (3 preceding siblings ...)
  2004-10-05 22:32 ` pinskia at gcc dot gnu dot org
@ 2004-10-09 19:28 ` cvs-commit at gcc dot gnu dot org
  2004-10-09 20:10 ` [Bug rtl-optimization/17853] [3.4 " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-09 19:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-09 19:28 -------
Subject: Bug 17853

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	sayle@gcc.gnu.org	2004-10-09 19:27:55

Modified files:
	gcc            : ChangeLog simplify-rtx.c 
	gcc/doc        : rtl.texi tm.texi 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: i386-mmx-5.c 

Log message:
	2004-10-09  Roger Sayle  <roger@eyesopen.com>
	
	PR rtl-optimization/17853
	* simplify-rtx.c (simplify_relational_operation): Correct comment.
	Reorganize handling of comparison operations with floating point
	results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
	Likewise, introduce support for comparison operations with vector
	result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
	
	* doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
	* doc/tm.texi: Likewise.
	
	2004-10-09  Stuart Hastings  <stuart@apple.com>
	Roger Sayle  <roger@eyesopen.com>
	
	PR rtl-optimization/17853
	* gcc.dg/i386-mmx-5.c: New testcase.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5821&r2=2.5822
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/simplify-rtx.c.diff?cvsroot=gcc&r1=1.204&r2=1.205
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/rtl.texi.diff?cvsroot=gcc&r1=1.72&r2=1.73
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/tm.texi.diff?cvsroot=gcc&r1=1.378&r2=1.379
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4421&r2=1.4422
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/i386-mmx-5.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug rtl-optimization/17853] [3.4 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
                   ` (4 preceding siblings ...)
  2004-10-09 19:28 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-09 20:10 ` pinskia at gcc dot gnu dot org
  2004-10-10 17:52 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 20:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-09 20:10 -------
Fixed on the mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.3 4.0.0                 |3.4.3
      Known to work|3.3.3                       |3.3.3 4.0.0
            Summary|[3.4/4.0 Regression] -O2 ICE|[3.4 Regression] -O2 ICE for
                   |for MMX testcase            |MMX testcase


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


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

* [Bug rtl-optimization/17853] [3.4 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
                   ` (5 preceding siblings ...)
  2004-10-09 20:10 ` [Bug rtl-optimization/17853] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-10 17:52 ` pinskia at gcc dot gnu dot org
  2004-10-10 21:53 ` cvs-commit at gcc dot gnu dot org
  2004-10-10 21:56 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-10 17:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-10 17:52 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00859.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug rtl-optimization/17853] [3.4 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
                   ` (6 preceding siblings ...)
  2004-10-10 17:52 ` pinskia at gcc dot gnu dot org
@ 2004-10-10 21:53 ` cvs-commit at gcc dot gnu dot org
  2004-10-10 21:56 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-10 21:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-10 21:53 -------
Subject: Bug 17853

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	sayle@gcc.gnu.org	2004-10-10 21:53:39

Modified files:
	gcc            : ChangeLog combine.c cse.c simplify-rtx.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: i386-mmx-5.c 

Log message:
	2004-10-10  Roger Sayle  <roger@eyesopen.com>
	
	PR rtl-optimization/17853
	* combine.c (combine_simplify_rtx): Don't attempt any simplifications
	of vector mode comparison operators.
	* cse.c (fold_rtx): Likewise.
	* simplify-rtx.c (simplify_gen_relational):  Avoid calling
	simplify_relational_operation with vector mode comparison operators.
	(simplify_rtx): Likewise.
	
	2004-10-10  Stuart Hastings  <stuart@apple.com>
	Roger Sayle  <roger@eyesopen.com>
	
	PR rtl-optimization/17853
	* gcc.dg/i386-mmx-5.c: New testcase.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.652&r2=2.2326.2.653
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/combine.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.400.4.9&r2=1.400.4.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cse.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.278.4.6&r2=1.278.4.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/simplify-rtx.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.172.4.2&r2=1.172.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.282&r2=1.3389.2.283
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/i386-mmx-5.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.4.1



-- 


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


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

* [Bug rtl-optimization/17853] [3.4 Regression] -O2 ICE for MMX testcase
  2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
                   ` (7 preceding siblings ...)
  2004-10-10 21:53 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-10 21:56 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-10 21:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-10 21:56 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-10-10 21:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-05 21:41 [Bug c/17853] New: -O2 ICE for MMX testcase stuart at apple dot com
2004-10-05 22:21 ` [Bug target/17853] " pinskia at gcc dot gnu dot org
2004-10-05 22:22 ` [Bug rtl-optimization/17853] " pinskia at gcc dot gnu dot org
2004-10-05 22:29 ` [Bug rtl-optimization/17853] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-05 22:32 ` pinskia at gcc dot gnu dot org
2004-10-09 19:28 ` cvs-commit at gcc dot gnu dot org
2004-10-09 20:10 ` [Bug rtl-optimization/17853] [3.4 " pinskia at gcc dot gnu dot org
2004-10-10 17:52 ` pinskia at gcc dot gnu dot org
2004-10-10 21:53 ` cvs-commit at gcc dot gnu dot org
2004-10-10 21:56 ` 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).