public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
@ 2023-11-05 14:51 zsojka at seznam dot cz
  2023-11-05 23:19 ` [Bug target/112393] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2023-11-05 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112393
           Summary: [14 Regression] ICE: in gen_reg_rtx, at
                    emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -mavx5124fmaps -Wuninitialized testcase.c
during GIMPLE pass: early_uninit
testcase.c: In function 'foo':
testcase.c:17:1: internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1208
   17 | }
      | ^
0x7408fb gen_reg_rtx(machine_mode)
        /repo/gcc-trunk/gcc/emit-rtl.cc:1208
0x1067067 force_reg(machine_mode, rtx_def*)
        /repo/gcc-trunk/gcc/explow.cc:692
0x198d7f7 ix86_expand_vec_perm_vpermt2
        /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:5261
0x199c9e7 expand_vec_perm_1
        /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:20302
0x199ca11 expand_vec_perm_1
        /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:20307
0x199ee18 ix86_expand_vec_perm_const_1
        /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:22964
0x19c95d9 ix86_vectorize_vec_perm_const(machine_mode, machine_mode, rtx_def*,
rtx_def*, rtx_def*, vec_perm_indices const&)
        /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:23295
0x1a68ea4 gimple_simplify_VEC_PERM_EXPR(gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*, tree_node*)
        /repo/build-gcc-trunk-amd64/gcc/gimple-match-8.cc:17848
0x1b4b543 gimple_resimplify3
        /repo/gcc-trunk/gcc/gimple-match-exports.cc:1077
0x1b4c6a2 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), tree_node* (*)(tree_node*))
        /repo/gcc-trunk/gcc/gimple-match-exports.cc:868
0x11322c1 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*),
tree_node* (*)(tree_node*))
        /repo/gcc-trunk/gcc/gimple-fold.cc:7543
0x16e84ac try_to_simplify
        /repo/gcc-trunk/gcc/tree-ssa-sccvn.cc:6136
0x16e84ac visit_stmt
        /repo/gcc-trunk/gcc/tree-ssa-sccvn.cc:6179
0x16e90a5 process_bb
        /repo/gcc-trunk/gcc/tree-ssa-sccvn.cc:8010
0x16eabcc do_rpo_vn_1
        /repo/gcc-trunk/gcc/tree-ssa-sccvn.cc:8609
0x16ec4da do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool,
vn_lookup_kind)
        /repo/gcc-trunk/gcc/tree-ssa-sccvn.cc:8711
0x173f7af execute_early_warn_uninitialized
        /repo/gcc-trunk/gcc/tree-ssa-uninit.cc:1478
0x173f7af execute
        /repo/gcc-trunk/gcc/tree-ssa-uninit.cc:1517
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-5128-20231105174125-g9acea4376fd-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-5128-20231105174125-g9acea4376fd-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231105 (experimental) (GCC)

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

* [Bug target/112393] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
  2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
@ 2023-11-05 23:19 ` pinskia at gcc dot gnu.org
  2023-11-06  2:23 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-05 23:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
ix86_expand_vec_perm_const_1 should not cause RTL to be generated ...

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

* [Bug target/112393] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
  2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
  2023-11-05 23:19 ` [Bug target/112393] " pinskia at gcc dot gnu.org
@ 2023-11-06  2:23 ` pinskia at gcc dot gnu.org
  2023-11-06  2:27 ` crazylht at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-06  2:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=63734

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63734#c1

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

* [Bug target/112393] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
  2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
  2023-11-05 23:19 ` [Bug target/112393] " pinskia at gcc dot gnu.org
  2023-11-06  2:23 ` pinskia at gcc dot gnu.org
@ 2023-11-06  2:27 ` crazylht at gmail dot com
  2023-11-06 10:36 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: crazylht at gmail dot com @ 2023-11-06  2:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> ---
Yes, should return true if d->testing_p instead of generate rtl code.

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

* [Bug target/112393] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
  2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2023-11-06  2:27 ` crazylht at gmail dot com
@ 2023-11-06 10:36 ` cvs-commit at gcc dot gnu.org
  2023-11-06 10:37 ` crazylht at gmail dot com
  2023-11-06 14:40 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-06 10:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:f463ef79ddb403570461343ebda0c1aeac85d5bb

commit r14-5147-gf463ef79ddb403570461343ebda0c1aeac85d5bb
Author: liuhongt <hongtao.liu@intel.com>
Date:   Mon Nov 6 10:58:15 2023 +0800

    Avoid generating RTL code when d->testing_p.

    gcc/ChangeLog:

            PR target/112393
            * config/i386/i386-expand.cc (ix86_expand_vec_perm_vpermt2):
            Avoid generating RTL code when d->testing_p.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr112393.c: New test.

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

* [Bug target/112393] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
  2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2023-11-06 10:36 ` cvs-commit at gcc dot gnu.org
@ 2023-11-06 10:37 ` crazylht at gmail dot com
  2023-11-06 14:40 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: crazylht at gmail dot com @ 2023-11-06 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> ---
Fixed.

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

* [Bug target/112393] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized
  2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2023-11-06 10:37 ` crazylht at gmail dot com
@ 2023-11-06 14:40 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-06 14:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.

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

end of thread, other threads:[~2023-11-06 14:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-05 14:51 [Bug tree-optimization/112393] New: [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1208 with -mavx5124fmaps -Wuninitialized zsojka at seznam dot cz
2023-11-05 23:19 ` [Bug target/112393] " pinskia at gcc dot gnu.org
2023-11-06  2:23 ` pinskia at gcc dot gnu.org
2023-11-06  2:27 ` crazylht at gmail dot com
2023-11-06 10:36 ` cvs-commit at gcc dot gnu.org
2023-11-06 10:37 ` crazylht at gmail dot com
2023-11-06 14:40 ` 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).