Bug 67717 - [6.0 regression] ICE when compiling WRF benchmark from cpu2006 with -Ofast -march=bdver4
Summary: [6.0 regression] ICE when compiling WRF benchmark from cpu2006 with -Ofast -m...
Status: RESOLVED DUPLICATE of bug 67447
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: 6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-25 10:21 UTC by vekumar
Modified: 2015-10-04 16:06 UTC (History)
2 users (show)

See Also:
Host:
Target: x86
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-09-25 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vekumar 2015-09-25 10:21:06 UTC
gfortran -c -o module_cu_gd.fppized.o -I. -I./netcdf/include -march=bdver4 -Ofast -fno-second-underscore module_cu_gd.fppized.f90
module_cu_gd.fppized.f90:1302:0:

(Snip)
    END SUBROUTINE CUP_enss
^
Error: insn does not satisfy its constraints:
(insn 8179 8178 14983 589 (parallel [
            (set (reg:V4SF 23 xmm2 [orig:2240 vect__1137.6099 ] [2240])
                (unspec:V4SF [
                        (reg:V4SF 23 xmm2 [orig:2240 vect__1137.6099 ] [2240])
                        (mem:SF (unspec:DI [
                                    (reg/f:DI 4 si [4841])
                                    (reg:V2DI 21 xmm0 [orig:6879 vect__1136.6096 ] [6879])
                                    (const_int 4 [0x4])
                                ] UNSPEC_VSIBADDR) [0  S4 A8])
                        (mem:BLK (scratch) [0  A8])
                        (reg:V4SF 23 xmm2 [orig:2240 vect__1137.6099 ] [2240])
                    ] UNSPEC_GATHER))
            (clobber (reg:V4SF 23 xmm2 [orig:2240 vect__1137.6099 ] [2240]))
        ]) module_cu_gd.fppized.f90:1102 4603 {*avx2_gatherdiv4sf}
     (nil))
module_cu_gd.fppized.f90:1302:0: internal compiler error: in extract_constrain_insn, at recog.c:2200
0xaf0548 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
        ../../gcc-fsf-trunk/gcc/rtl-error.c:109
0xaf056f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc-fsf-trunk/gcc/rtl-error.c:120
0xabe03d extract_constrain_insn(rtx_insn*)
        ../../gcc-fsf-trunk/gcc/recog.c:2200
0xa9e185 reload_cse_simplify_operands
        ../../gcc-fsf-trunk/gcc/postreload.c:408
0xa9f245 reload_cse_simplify
        ../../gcc-fsf-trunk/gcc/postreload.c:194
0xa9f245 reload_cse_regs_1
        ../../gcc-fsf-trunk/gcc/postreload.c:233
0xaa0b13 reload_cse_regs
        ../../gcc-fsf-trunk/gcc/postreload.c:81
0xaa0b13 execute
        ../../gcc-fsf-trunk/gcc/postreload.c:2350
Please submit a full bug report,
with preprocessed source if appropriate.
(Snip)

I am trying to get a reduced test case.

But the Bug seems to starts from r227382 

commit 0af99ebfea26293fc900fe9050c5dd514005e4e5
    2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>

        PR target/61578
        * lra-lives.c (process_bb_lives): Process move pseudos with the
        same value for copies and preferences
        * lra-constraints.c (match_reload): Create match reload pseudo
        with the same value from single dying input pseudo.
Comment 1 Uroš Bizjak 2015-09-25 11:00:40 UTC
Does additional patch [1] from PR 61578 also fix this failure?

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61578#c31
Comment 2 vekumar 2015-09-25 12:11:24 UTC
yes reproducible with today's trunk.
gcc version 6.0.0 20150925 (experimental) (GCC)
Comment 3 vekumar 2015-09-25 12:12:53 UTC
(In reply to vekumar from comment #2)
> yes reproducible with today's trunk.
> gcc version 6.0.0 20150925 (experimental) (GCC)

I meant ICE still shows up in the trunk.
Comment 4 Mikhail Maltsev 2015-09-25 13:15:52 UTC
Looks like a dup of PR67447.
Comment 5 Uroš Bizjak 2015-10-04 16:06:32 UTC
Dup.

*** This bug has been marked as a duplicate of bug 67447 ***