public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59683] New: ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f")
@ 2014-01-05 12:26 zsojka at seznam dot cz
  2015-03-12 18:04 ` [Bug target/59683] " ubizjak at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2014-01-05 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59683
           Summary: ICE: in classify_argument, at config/i386/i386.c:6637
                    with #pragma GCC target("avx512f")
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 31571
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31571&action=edit
reduced testcase

Compiler output:
$ gcc testcase.c         
testcase.c: In function 'bar':
testcase.c:16:1: internal compiler error: in classify_argument, at
config/i386/i386.c:6637
 {
 ^
0xddb0be classify_argument
        /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:6637
0xddb0d9 examine_argument
        /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:6660
0xde676a return_in_memory_64
        /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:7903
0xde676a ix86_return_in_memory
        /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:7935
0x8d83f4 aggregate_value_p(tree_node const*, tree_node const*)
        /mnt/svn/gcc-trunk/gcc/function.c:2047
0x8df017 allocate_struct_function(tree_node*, bool)
        /mnt/svn/gcc-trunk/gcc/function.c:4523
0x62a67f store_parm_decls()
        /mnt/svn/gcc-trunk/gcc/c/c-decl.c:8454
0x6814ac c_parser_declaration_or_fndef
        /mnt/svn/gcc-trunk/gcc/c/c-parser.c:1914
0x684d64 c_parser_external_declaration
        /mnt/svn/gcc-trunk/gcc/c/c-parser.c:1399
0x685699 c_parser_translation_unit
        /mnt/svn/gcc-trunk/gcc/c/c-parser.c:1286
0x685699 c_parse_file()
        /mnt/svn/gcc-trunk/gcc/c/c-parser.c:14017
0x6d6fb3 c_common_parse_file()
        /mnt/svn/gcc-trunk/gcc/c-family/c-opts.c:1060
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


$ gcc -v         
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-206332-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-206332-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 4.9.0 20140104 (experimental) (GCC)


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

* [Bug target/59683] ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f")
  2014-01-05 12:26 [Bug target/59683] New: ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f") zsojka at seznam dot cz
@ 2015-03-12 18:04 ` ubizjak at gmail dot com
  2015-06-26 19:59 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2015-03-12 18:04 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-12
      Known to work|                            |5.0
   Target Milestone|---                         |4.9.3
     Ever confirmed|0                           |1

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
This compiles OK with 5.0:

pr59683.c: In function ‘bar’:
pr59683.c:16:1: warning: AVX512F vector return without AVX512F enabled changes
the ABI [-Wpsabi]
 {
 ^

Confirmed on 4.9 branch.
>From gcc-bugs-return-480223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 12 18:14:20 2015
Return-Path: <gcc-bugs-return-480223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126392 invoked by alias); 12 Mar 2015 18:14:19 -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 126322 invoked by uid 48); 12 Mar 2015 18:14:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65369] [5 Regression] nettle test failure on powerpc64le-linux-gnu when built with -O3
Date: Thu, 12 Mar 2015 18:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: thopre01 at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65369-4-fHak3d3st0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65369-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: 2015-03/txt/msg01367.txt.bz2
Content-length: 1274

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

--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, on my version of the testcase with r210843 -O3 -mcpu=power8 there are like
49
32 bit load in host endianness found at: _105 = MEM[(const unsigned char
*)load_src_25];
occurrences, so I've added a quick hack (should have used dbg counters
parhaps), and
with BSWAPCNT\x16 it works fine, with BSWAPCNT\x17 it fails.
In the *.optimized dump, I've noticed that this single load matters for
vectorization in md4_update function, with BSWAPCNT\x16 a chunk of code isn't
vectorized, with BSWAPCNT\x17 it is.

--- tree-ssa-math-opts.c.xx    2015-03-12 17:44:13.000000000 +0100
+++ tree-ssa-math-opts.c    2015-03-12 18:52:49.280605232 +0100
@@ -2132,6 +2132,17 @@ bswap_replace (gimple stmt, gimple_stmt_
       gimple addr_stmt, load_stmt;
       unsigned align;

+static int cntx = -1;
+if (cntx == -1)
+{
+if (getenv ("BSWAPCNT"))
+cntx = atoi (getenv ("BSWAPCNT"));
+else
+cntx = 0x7fffffff;
+}
+if (cntx == 0)
+return false;
+cntx--;
       align = get_object_alignment (src);
       if (bswap && SLOW_UNALIGNED_ACCESS (TYPE_MODE (load_type), align))
     return false;

So very well this might just trigger a latent bug in the vectorizer or powerpc
backend.


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

* [Bug target/59683] ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f")
  2014-01-05 12:26 [Bug target/59683] New: ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f") zsojka at seznam dot cz
  2015-03-12 18:04 ` [Bug target/59683] " ubizjak at gmail dot com
@ 2015-06-26 19:59 ` jakub at gcc dot gnu.org
  2015-06-26 20:30 ` jakub at gcc dot gnu.org
  2021-08-13 21:41 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 19:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug target/59683] ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f")
  2014-01-05 12:26 [Bug target/59683] New: ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f") zsojka at seznam dot cz
  2015-03-12 18:04 ` [Bug target/59683] " ubizjak at gmail dot com
  2015-06-26 19:59 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:30 ` jakub at gcc dot gnu.org
  2021-08-13 21:41 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


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

* [Bug target/59683] ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f")
  2014-01-05 12:26 [Bug target/59683] New: ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f") zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2015-06-26 20:30 ` jakub at gcc dot gnu.org
@ 2021-08-13 21:41 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-13 21:41 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 61925.

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

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

end of thread, other threads:[~2021-08-13 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-05 12:26 [Bug target/59683] New: ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f") zsojka at seznam dot cz
2015-03-12 18:04 ` [Bug target/59683] " ubizjak at gmail dot com
2015-06-26 19:59 ` jakub at gcc dot gnu.org
2015-06-26 20:30 ` jakub at gcc dot gnu.org
2021-08-13 21:41 ` pinskia at gcc dot gnu.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).