public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/64311] New: ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c
@ 2014-12-15  8:46 ubizjak at gmail dot com
  2014-12-15  8:50 ` [Bug rtl-optimization/64311] " ubizjak at gmail dot com
  2015-01-24 17:11 ` dominiq at lps dot ens.fr
  0 siblings, 2 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2014-12-15  8:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64311

            Bug ID: 64311
           Summary: ICE: Max. number of generated reload insns per insn is
                    achieved (90) with -fpic -march=corei7 for
                    gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

As seen in [1], reproducible on x86_64-linux with "-mavx512bw -mavx512vl -O2
-fpic -m32 -march=corei7":

~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc/ -mavx512bw -mavx512vl -O2 -fpic -m32
-march=corei7 -S avx512bw-vpbroadcastw-1.c  
avx512bw-vpbroadcastw-1.c: In function ‘avx512bw_test’:
avx512bw-vpbroadcastw-1.c:39:1: internal compiler error: Max. number of
generated reload insns per insn is achieved (90)

 }
 ^
0x9383d0 lra_constraints(bool)
        ../../gcc-svn/trunk/gcc/lra-constraints.c:4225
0x928301 lra(_IO_FILE*)
        ../../gcc-svn/trunk/gcc/lra.c:2277
0x8e6959 do_reload
        ../../gcc-svn/trunk/gcc/ira.c:5391
0x8e6959 execute
        ../../gcc-svn/trunk/gcc/ira.c:5561
Please submit a full bug report,

[1] https://gcc.gnu.org/ml/gcc-testresults/2014-12/msg01763.html
>From gcc-bugs-return-470679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 15 08:46:51 2014
Return-Path: <gcc-bugs-return-470679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14498 invoked by alias); 15 Dec 2014 08:46:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14470 invoked by uid 48); 15 Dec 2014 08:46:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64309] if (1 & (1 << n)) not simplified to if (n == 0)
Date: Mon, 15 Dec 2014 08:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-64309-4-5ozTknAxq8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64309-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64309-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-12/txt/msg01686.txt.bz2
Content-length: 883

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd309

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-15
          Component|rtl-optimization            |middle-end
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Sth like

 (simplify
  (ne (bit_and (lshift integer_onep @0) integer_onep) integer_zerop)
  (eq @0 { build_zero_cst (TREE_TYPE (@0)); })

with eventually also covering if ((1 & (1<< n)) == 0) -> if (n & 1 == 0)

You can extend this to cover the other cases you mention.


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

end of thread, other threads:[~2015-01-24 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15  8:46 [Bug rtl-optimization/64311] New: ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c ubizjak at gmail dot com
2014-12-15  8:50 ` [Bug rtl-optimization/64311] " ubizjak at gmail dot com
2015-01-24 17:11 ` dominiq at lps dot ens.fr

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).