public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap
@ 2011-11-01 10:00 markus at trippelsdorf dot de
  2011-11-01 10:55 ` [Bug target/50940] " markus at trippelsdorf dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2011-11-01 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50940
           Summary: [4.7 Regression] ICE in extract_insn, at recog.c:2137
                    during bootstrap
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


I've hit the following ICE during bootstrap on x86_64-pc-linux-gnu.
It only happens with the "-march=native" switch.

/var/tmp/gcc_build_dir/./prev-gcc/g++ -B/var/tmp/gcc_build_dir/./prev-gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/gcc/libstdc++-v3/libsupc++
-L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-c   -march=native -O3 -pipe -fuse-linker-plugin -flto=jobserver
-fno-fat-lto-objects -frandom-seed=1 -fprofile-generate -fno-lto -DIN_GCC   -W
-Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -fno-exceptions
-fno-rtti -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid
-I../libdecnumber    ../../gcc/gcc/df-core.c -o df-core.o
../../gcc/gcc/df-core.c: In function ‘void df_worklist_dataflow(dataflow*,
bitmap, int*, int)’:
../../gcc/gcc/df-core.c:1107:1: error: unrecognizable insn:
(insn 2516 2515 2040 168 (set (reg:V4SF 21 xmm0 [1487])
        (float:V2DF (vec_select:V2SI (reg:V4SI 21 xmm0 [1487])
                (parallel [
                        (const_int 0 [0])
                        (const_int 1 [0x1])
                    ])))) ../../gcc/gcc/df-core.c:1047 -1
     (nil))
../../gcc/gcc/df-core.c:1107:1: internal compiler error: in extract_insn, at
recog.c:2137
Please submit a full bug report,

Caused by the recent config/i386/sse.md changes rev. 180723 & 180724.

-march=native on my machine is equal to:

-march=amdfam10 -mcx16 -msahf -mno-movbe
-mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop
-mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1
-mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64
--param l2-cache-size=512 -mtune=amdfam10
-m3dnow -m64 -m80387 -mabm
-maccumulate-outgoing-args -malign-stringops -mcx16 -mfancy-math-387
-mfp-ret-in-387 -mglibc -mieee-fp -mlzcnt -mmmx -mno-sse4 -mpopcnt
-mpush-args -mred-zone -msahf -msse -msse2 -msse3 -msse4a
-mtls-direct-seg-refs


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

* [Bug target/50940] [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap
  2011-11-01 10:00 [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap markus at trippelsdorf dot de
@ 2011-11-01 10:55 ` markus at trippelsdorf dot de
  2011-11-01 12:22 ` ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2011-11-01 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-11-01 10:55:21 UTC ---
Testcase:

 % cat test.ii
typedef long int ptrdiff_t;
extern "C" {
     typedef struct _IO_FILE FILE;
     extern int fprintf (FILE *__restrict __stream,
     __const char *__restrict __format, ...);
}
typedef struct bitmap_head_def *bitmap;
typedef struct simple_bitmap_def *sbitmap;
struct function {
     struct control_flow_graph *cfg;
};
extern struct function *cfun;
extern FILE *dump_file;
struct control_flow_graph {
     int x_n_basic_blocks;
     int x_n_edges;
};
static bool df_worklist_propagate_forward (struct dataflow *dataflow,
             unsigned bb_index, unsigned *bbindex_to_postorder,
             bitmap pending, sbitmap considered, ptrdiff_t age)
{
     int dcount = 0;
     if (dump_file)     fprintf (dump_file, "df_worklist_dataflow_doublequeue:"
     "n_basic_blocks %d n_edges %d"       " count %d (%5.2g)\n",
     ((cfun + 0)->cfg->x_n_basic_blocks), ((cfun + 0)->cfg->x_n_edges),
     dcount, dcount / (float)((cfun + 0)->cfg->x_n_basic_blocks));
}

% g++ test.ii -march=amdfam10 -B/var/tmp/gcc_build_dir/./prev-gcc/
test.ii: In function ‘bool df_worklist_propagate_forward(dataflow*, unsigned
int, unsigned int*, bitmap, sbitmap, ptrdiff_t)’:
test.ii:27:1: error: unrecognizable insn:
(insn 56 55 21 3 (set (reg:V4SF 22 xmm1 [orig:64 D.2155 ] [64])
        (float:V2DF (vec_select:V2SI (reg:V4SI 22 xmm1 [orig:64 D.2155 ] [64])
                (parallel [
                        (const_int 0 [0])
                        (const_int 1 [0x1])
                    ])))) test.ii:26 -1
     (nil))
test.ii:27:1: internal compiler error: in extract_insn, at recog.c:2137


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

* [Bug target/50940] [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap
  2011-11-01 10:00 [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap markus at trippelsdorf dot de
  2011-11-01 10:55 ` [Bug target/50940] " markus at trippelsdorf dot de
@ 2011-11-01 12:22 ` ubizjak at gmail dot com
  2011-11-01 13:08 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2011-11-01 12:22 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-11-01
         AssignedTo|unassigned at gcc dot       |ubizjak at gmail dot com
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-01 12:22:02 UTC ---
Confirmed, a typo in *floatsi<mode>2_vector_sse_with_temp splitter.

Index: i386.md
===================================================================
--- i386.md    (revision 180733)
+++ i386.md    (working copy)
@@ -5053,7 +5053,7 @@
       emit_insn (gen_sse2_loadld (operands[4],
                   CONST0_RTX (V4SImode), operands[2]));
     }
-  if (<ssevecmode>mode == V4SImode)
+  if (<ssevecmode>mode == V4SFmode)
     emit_insn (gen_floatv4siv4sf2 (operands[3], operands[4]));
   else
     emit_insn (gen_sse2_cvtdq2pd (operands[3], operands[4]));


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

* [Bug target/50940] [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap
  2011-11-01 10:00 [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap markus at trippelsdorf dot de
  2011-11-01 10:55 ` [Bug target/50940] " markus at trippelsdorf dot de
  2011-11-01 12:22 ` ubizjak at gmail dot com
@ 2011-11-01 13:08 ` rguenth at gcc dot gnu.org
  2011-11-01 20:07 ` ubizjak at gmail dot com
  2011-11-01 20:07 ` ubizjak at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-11-01 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug target/50940] [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap
  2011-11-01 10:00 [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap markus at trippelsdorf dot de
                   ` (2 preceding siblings ...)
  2011-11-01 13:08 ` rguenth at gcc dot gnu.org
@ 2011-11-01 20:07 ` ubizjak at gmail dot com
  2011-11-01 20:07 ` ubizjak at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2011-11-01 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-01 20:06:25 UTC ---
Author: uros
Date: Tue Nov  1 19:48:34 2011
New Revision: 180742

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180742
Log:
    PR target/50940
    * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
    Compare <ssevecmode>mode with V4SFmode, not V4SImode.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md


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

* [Bug target/50940] [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap
  2011-11-01 10:00 [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap markus at trippelsdorf dot de
                   ` (3 preceding siblings ...)
  2011-11-01 20:07 ` ubizjak at gmail dot com
@ 2011-11-01 20:07 ` ubizjak at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2011-11-01 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2011-11/msg00081.htm
                   |                            |l
         Resolution|                            |FIXED

--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-01 20:07:17 UTC ---
Fixed.


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

end of thread, other threads:[~2011-11-01 20:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-01 10:00 [Bug target/50940] New: [4.7 Regression] ICE in extract_insn, at recog.c:2137 during bootstrap markus at trippelsdorf dot de
2011-11-01 10:55 ` [Bug target/50940] " markus at trippelsdorf dot de
2011-11-01 12:22 ` ubizjak at gmail dot com
2011-11-01 13:08 ` rguenth at gcc dot gnu.org
2011-11-01 20:07 ` ubizjak at gmail dot com
2011-11-01 20:07 ` ubizjak at gmail 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).