https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117140
--- Comment #3 from Edwin Lu <ewlu at rivosinc dot com> --- Created attachment 59349 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59349&action=edit reduced testcase (In reply to Andrew Pinski from comment #2) > I suspect r15-4324-gaccb85345edb91 . Confirmed to be the first bad commit. In the reduced testcase, if the first code snippet is not included (commented out), the following ice details appear: ewlu@ewlu:/scratch/ewlu/ci/triage/baseline/build-ice$ ./build-gcc-linux-stage1/gcc/xgcc -B./build-gcc-linux-stage1/gcc/ testcase.i -march=rv32gcv -mabi=ilp32d -mcmodel=medlow -fdiagnostics-plain-output -ftree-vectorize -O2 -mrvv-max-lmul=m8 -mrvv-vector-bits=zvl -lm -o ./multiple_rgroup_run-1.exe during GIMPLE pass: vect testcase.i: In function 'main': testcase.i:64:5: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in element_mode, at tree.cc:13450 0x2f15805 internal_error(char const*, ...) ../../../gcc/gcc/diagnostic-global-context.cc:517 0xbad22d tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../../gcc/gcc/tree.cc:9053 0xbb3be6 tree_class_check(tree_node const*, tree_code_class, char const*, int, char const*) ../../../gcc/gcc/tree.h:4076 0xbb3be6 element_mode(tree_node const*) ../../../gcc/gcc/tree.cc:13450 0x133e13c HONOR_NANS(tree_node const*) ../../../gcc/gcc/real.cc:5492 0x16107e3 process_bb ../../../gcc/gcc/tree-ssa-sccvn.cc:8101 0x161165e do_rpo_vn_1 ../../../gcc/gcc/tree-ssa-sccvn.cc:8648 0x1612fd3 do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool, bool, vn_lookup_kind) ../../../gcc/gcc/tree-ssa-sccvn.cc:8752 0x173d778 execute ../../../gcc/gcc/tree-vectorizer.cc:1396 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.