public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/34077]  New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
@ 2007-11-12 20:36 michael dot meissner at amd dot com
  2007-11-12 20:38 ` [Bug target/34077] " michael dot meissner at amd dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: michael dot meissner at amd dot com @ 2007-11-12 20:36 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2083 bytes --]

I was building SPEC 2006 with the options: -minline-all-stringops
-minline-stringops-dynamically in addition to my normal options.  If you use
both options together, GCC generates the following error:
foo.c: In function ‘spec_random_load’:
foo.c:24: internal compiler error: in int_mode_for_mode, at stor-layout.c:258
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tracing it down, emit_cmp_and_jump_insns is called to compare and jump with two
constant values:
Breakpoint 3, emit_cmp_and_jump_insns (x=0x2aaaadff3c50, y=0x2aaaadff3480,
comparison=LTU, size=0x0, mode=SImode, unsignedp=1, label=0x2aaaae134fa0)
    at /proj/gcc/fsf-src/trunk/gcc/optabs.c:4428
(gdb) print x
$7 = (rtx) 0x2aaaadff3c50
(gdb) pr
(const_int 131072 [0x20000])
(gdb) print y
$8 = (rtx) 0x2aaaadff3480
(gdb) pr
(const_int 8 [0x8])
(gdb) up
#1  0x00000000008adab6 in ix86_expand_movmem (dst=0x2aaaae136a60,
src=0x2aaaae136a80, count_exp=0x2aaaadff3c50, align_exp=<value optimized out>, 
    expected_align_exp=<value optimized out>, expected_size_exp=<value
optimized out>) at /proj/gcc/fsf-src/trunk/gcc/config/i386/i386.c:15362

The failure comes because integer constants have VOIDmode type, rather than an
integer type.

Either emit_cmp_and_jump_insns should handle the constant/constant case, or
ix86_expand_movemem should not call emit_cmp_and_jump_insns with constant
tests.


-- 
           Summary: GCC -O1 -minline-all-stringops -minline-stringops-
                    dynamically fails for spec 2006 bzip2, gobmk, and
                    h264ref benchmarks
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot meissner at amd dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug target/34077] GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
  2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
@ 2007-11-12 20:38 ` michael dot meissner at amd dot com
  2007-11-13 10:19 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: michael dot meissner at amd dot com @ 2007-11-12 20:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from michael dot meissner at amd dot com  2007-11-12 20:38 -------
Created an attachment (id=14533)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14533&action=view)
Reduced testcase for bug 34077 from 401.bzip2

This is the reduced testcase from 401.bzip2.


-- 


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


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

* [Bug target/34077] GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
  2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
  2007-11-12 20:38 ` [Bug target/34077] " michael dot meissner at amd dot com
@ 2007-11-13 10:19 ` rguenth at gcc dot gnu dot org
  2007-11-13 20:48 ` michael dot meissner at amd dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-13 10:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-11-13 10:19 -------
I think ix86_expand_movemem should not call emit_cmp_and_jump_insns with
constant
tests.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug target/34077] GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
  2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
  2007-11-12 20:38 ` [Bug target/34077] " michael dot meissner at amd dot com
  2007-11-13 10:19 ` rguenth at gcc dot gnu dot org
@ 2007-11-13 20:48 ` michael dot meissner at amd dot com
  2007-11-19  5:20 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: michael dot meissner at amd dot com @ 2007-11-13 20:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from michael dot meissner at amd dot com  2007-11-13 20:48 -------
Created an attachment (id=14548)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14548&action=view)
Patch to fix PR34077


-- 


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


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

* [Bug target/34077] GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
  2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
                   ` (2 preceding siblings ...)
  2007-11-13 20:48 ` michael dot meissner at amd dot com
@ 2007-11-19  5:20 ` pinskia at gcc dot gnu dot org
  2007-11-26 22:33 ` meissner at gcc dot gnu dot org
  2007-12-03  3:38 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-19  5:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-11-19 05:20 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-11-19 05:20:34
               date|                            |


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


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

* [Bug target/34077] GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
  2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
                   ` (3 preceding siblings ...)
  2007-11-19  5:20 ` pinskia at gcc dot gnu dot org
@ 2007-11-26 22:33 ` meissner at gcc dot gnu dot org
  2007-12-03  3:38 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: meissner at gcc dot gnu dot org @ 2007-11-26 22:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from meissner at gcc dot gnu dot org  2007-11-26 22:33 -------
Subject: Bug 34077

Author: meissner
Date: Mon Nov 26 22:33:30 2007
New Revision: 130453

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130453
Log:
Fix PR 34077

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr34077.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/34077] GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks
  2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
                   ` (4 preceding siblings ...)
  2007-11-26 22:33 ` meissner at gcc dot gnu dot org
@ 2007-12-03  3:38 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-03  3:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-12-03 03:37 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-12-03  3:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12 20:36 [Bug target/34077] New: GCC -O1 -minline-all-stringops -minline-stringops-dynamically fails for spec 2006 bzip2, gobmk, and h264ref benchmarks michael dot meissner at amd dot com
2007-11-12 20:38 ` [Bug target/34077] " michael dot meissner at amd dot com
2007-11-13 10:19 ` rguenth at gcc dot gnu dot org
2007-11-13 20:48 ` michael dot meissner at amd dot com
2007-11-19  5:20 ` pinskia at gcc dot gnu dot org
2007-11-26 22:33 ` meissner at gcc dot gnu dot org
2007-12-03  3:38 ` 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).