public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/112854] New: [14] RISCV ICE: expand: in store_integral_bit_field, at expmed.cc:1049 on rv32gcv_zvl1024b --param=riscv-autovec-preference=fixed-vlmax
@ 2023-12-05  1:16 patrick at rivosinc dot com
  2023-12-05  6:53 ` [Bug middle-end/112854] " juzhe.zhong at rivai dot ai
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: patrick at rivosinc dot com @ 2023-12-05  1:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112854
           Summary: [14] RISCV ICE: expand: in store_integral_bit_field,
                    at expmed.cc:1049 on rv32gcv_zvl1024b
                    --param=riscv-autovec-preference=fixed-vlmax
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

Created attachment 56802
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56802&action=edit
-freport-bug output

Command:
> /scratch/tc-testing/tc-dec-4-trunk/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -march=rv32gcv_zvl1024b -mabi=ilp32d --param=riscv-autovec-preference=fixed-vlmax -O3 red.c -freport-bug
during RTL pass: expand
red.c: In function 'c':
red.c:2:6: internal compiler error: in store_integral_bit_field, at
expmed.cc:1049
    2 | void c(int d) {
      |      ^
0x9b17de store_integral_bit_field
        ../../../gcc/gcc/expmed.cc:1049
0x9b17de store_bit_field_1
        ../../../gcc/gcc/expmed.cc:884
0xe4c83d store_bit_field(rtx_def*, poly_int<2u, unsigned long>, poly_int<2u,
unsigned long>, poly_int<2u, unsigned long>, poly_int<2u, unsig
        ../../../gcc/gcc/expmed.cc:1193
0xe783e8 store_field
        ../../../gcc/gcc/expr.cc:8231
0xe768ba store_constructor(tree_node*, rtx_def*, int, poly_int<2u, long>, bool)
        ../../../gcc/gcc/expr.cc:7986
0xe791e8 expand_constructor
        ../../../gcc/gcc/expr.cc:9329
0xe641f8 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:11605
0xe649a9 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:11220
0xf99ff2 expand_normal(tree_node*)
        ../../../gcc/gcc/expr.h:319
0xf99ff2 expand_vec_cond_mask_optab_fn
        ../../../gcc/gcc/internal-fn.cc:3116
0xf99ff2 expand_VCOND_MASK
        ../../../gcc/gcc/internal-fn.def:235
0xd2cd07 expand_call_stmt
        ../../../gcc/gcc/cfgexpand.cc:2738
0xd2cd07 expand_gimple_stmt_1
        ../../../gcc/gcc/cfgexpand.cc:3881
0xd2cd07 expand_gimple_stmt
        ../../../gcc/gcc/cfgexpand.cc:4045
0xd31ca0 expand_gimple_basic_block
        ../../../gcc/gcc/cfgexpand.cc:6101
0xd33c36 execute
        ../../../gcc/gcc/cfgexpand.cc:6836
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /scratch/tmp/ccZuP8B4.out file, please attach
this to your bugreport.

Reduced testcase:
short a, b;
void c(int d) {
  for (; a; a--) {
    b = 0;
    for (; b <= 8; b++)
      if (d)
        break;
  }
}

Godbolt:
https://godbolt.org/z/9YGs9jTfv

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

end of thread, other threads:[~2023-12-06 18:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05  1:16 [Bug middle-end/112854] New: [14] RISCV ICE: expand: in store_integral_bit_field, at expmed.cc:1049 on rv32gcv_zvl1024b --param=riscv-autovec-preference=fixed-vlmax patrick at rivosinc dot com
2023-12-05  6:53 ` [Bug middle-end/112854] " juzhe.zhong at rivai dot ai
2023-12-05  8:03 ` rdapp at gcc dot gnu.org
2023-12-05 14:04 ` rdapp at gcc dot gnu.org
2023-12-06 10:16 ` cvs-commit at gcc dot gnu.org
2023-12-06 18:57 ` patrick at rivosinc dot com

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