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

            Bug ID: 108805
           Summary: [13 Regression] ICE: in simplify_subreg, at
                    simplify-rtx.cc:7400 at -O and above
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          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 54469
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54469&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O testcase.c
during RTL pass: combine
testcase.c: In function 'foo':
testcase.c:16:1: internal compiler error: in simplify_subreg, at
simplify-rtx.cc:7400
   16 | }
      | ^
0x79d82a simplify_context::simplify_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<1u, unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:7400
0x13a9438 simplify_context::simplify_gen_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<1u, unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:7694
0x13a9438 simplify_context::simplify_gen_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<1u, unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:7694
0x23c8a32 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode,
poly_int<1u, unsigned long>)
        /repo/gcc-trunk/gcc/rtl.h:3535
0x23c8a32 if_then_else_cond
        /repo/gcc-trunk/gcc/combine.cc:9375
0x23c8535 if_then_else_cond
        /repo/gcc-trunk/gcc/combine.cc:9240
0x23ddd0c combine_simplify_rtx
        /repo/gcc-trunk/gcc/combine.cc:5723
0x23e01eb subst
        /repo/gcc-trunk/gcc/combine.cc:5605
0x23e00e8 subst
        /repo/gcc-trunk/gcc/combine.cc:5532
0x23e3831 try_combine
        /repo/gcc-trunk/gcc/combine.cc:3336
0x23ebca0 combine_instructions
        /repo/gcc-trunk/gcc/combine.cc:1287
0x23ebca0 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.cc:14978
0x23ebca0 execute
        /repo/gcc-trunk/gcc/combine.cc:15023
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.

Reply via email to