public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109219] New: csmith: ice in vect_slp_analyze_node_operations_1, at tree-vect-slp.cc:5954
@ 2023-03-20 20:22 dcb314 at hotmail dot com
  2023-03-20 20:28 ` [Bug tree-optimization/109219] [12/13 Regression] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2023-03-20 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109219
           Summary: csmith: ice in vect_slp_analyze_node_operations_1, at
                    tree-vect-slp.cc:5954
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C code:

safe_lshift_func_int32_t_s_s_left, safe_lshift_func_int32_t_s_s_right,
    safe_sub_func_uint64_t_u_u_ui2, safe_mul_func_uint64_t_u_u_ui2, g_79_2,
    g_97_l_439;
g_97() {
  unsigned short __trans_tmp_16;
  long __trans_tmp_15;
  int __trans_tmp_14, __trans_tmp_7;
  int *l_437 = g_97;
  for (; g_97_l_439; g_97_l_439 += 1) {
    char l_502 = 0;
    for (; l_502 < 4; l_502++) {
      __trans_tmp_14 = safe_lshift_func_int32_t_s_s_right >= 2 ||
                               safe_lshift_func_int32_t_s_s_left
                           ?: safe_lshift_func_int32_t_s_s_right;
      __trans_tmp_15 = __trans_tmp_14 * safe_mul_func_uint64_t_u_u_ui2;
      __trans_tmp_16 = -__trans_tmp_15;
      __trans_tmp_7 =
          (__trans_tmp_16 ^ 65535UL) - safe_sub_func_uint64_t_u_u_ui2;
      *l_437 ^= (short)(__trans_tmp_7 ^ g_79_2);
    }
  }
}
main() {}

when compiled by recent gcc trunk and compiler flag -O3, does this:

$ ~/gcc/results/bin/gcc -c -w -O3 bug900.c
during GIMPLE pass: vect
bug900.c: In function ‘g_97’:
bug900.c:4:1: internal compiler error: in vect_slp_analyze_node_operations_1,
at tree-vect-slp.cc:5954
    4 | g_97() {
      | ^~~~
0x7d6a29 vect_slp_analyze_node_operations_1
        ../../trunk.year/gcc/tree-vect-slp.cc:5954
0x7d6a29 vect_slp_analyze_node_operations
        ../../trunk.year/gcc/tree-vect-slp.cc:6147
0x119b14f vect_slp_analyze_node_operations
        ../../trunk.year/gcc/tree-vect-slp.cc:6126
0x119b14f vect_slp_analyze_node_operations
        ../../trunk.year/gcc/tree-vect-slp.cc:6126

It is fine at -O2:

$ ~/gcc/results/bin/gcc -c -w -O2 bug900.c
$ 

The bug has existed since sometime before 20220403.

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

end of thread, other threads:[~2023-04-17  9:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 20:22 [Bug c/109219] New: csmith: ice in vect_slp_analyze_node_operations_1, at tree-vect-slp.cc:5954 dcb314 at hotmail dot com
2023-03-20 20:28 ` [Bug tree-optimization/109219] [12/13 Regression] " pinskia at gcc dot gnu.org
2023-03-20 20:28 ` pinskia at gcc dot gnu.org
2023-03-21  8:19 ` rguenth at gcc dot gnu.org
2023-03-21 10:55 ` [Bug tree-optimization/109219] [12/13 Regression] csmith: ice in vect_slp_analyze_node_operations_1, at tree-vect-slp.cc:5954 since r13-1106-g8c2733e16ec1c0cd marxin at gcc dot gnu.org
2023-03-21 11:35 ` rguenth at gcc dot gnu.org
2023-03-21 13:04 ` cvs-commit at gcc dot gnu.org
2023-04-17  9:14 ` [Bug tree-optimization/109219] [12 " cvs-commit at gcc dot gnu.org
2023-04-17  9:15 ` rguenth 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).