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

            Bug ID: 121660
           Summary: [16 Regression] RISC-V: internal compiler error: in
                    apply_scale, at profile-count.h:1187
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: skothadiya at whileone dot in
  Target Milestone: ---

Created attachment 62190
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62190&action=edit
Preprocessed source stored into ccaAsoKc.out file.

-freport-bug

~~~/riscv-gnu-toolchain-build/bin/riscv64-unknown-linux-gnu-gcc
-I/compiler-fuzz-ci/csmith-build/include -fsigned-char -fno-strict-aliasing
-fwrapv -march=rv64gcv -O3 red.c -o rv64gcv.out -w -freport-bug
during GIMPLE pass: vect
red.c: In function 'main':
red.c:4:5: internal compiler error: in apply_scale, at profile-count.h:1187
    4 | int main() {
      |     ^~~~
0x2f973c6 internal_error(char const*, ...)
       
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/diagnostic-global-context.cc:534
0xd9b1b2 fancy_abort(char const*, int, char const*)
       
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/diagnostics/context.cc:1687
0xb7de8d profile_count::apply_scale(long, long) const
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/profile-count.h:1187
0xb7de8d profile_count::apply_scale(long, long) const
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/profile-count.h:1178
0xb7de8d profile_count::operator*(long) const
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/profile-count.h:1083
0xb7de8d scale_loop_profile(loop*, profile_probability, long)
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/cfgloopmanip.cc:737
0x188e617 vect_do_peeling(_loop_vec_info*, tree_node*, tree_node*, tree_node**,
tree_node**, tree_node**, int, bool, bool, tree_node**)
       
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-loop-manip.cc:3407
0x1879a24 vect_transform_loop(_loop_vec_info*, gimple*)
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-loop.cc:11320
0x18cabd1 vect_transform_loops
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1040
0x18cb3c3 try_vectorize_loop_1
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1189
0x18cb3c3 try_vectorize_loop
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1219
0x18cba3c execute
        /compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1335
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 /tmp/ccaAsoKc.out file, please attach this to
your bugreport.~~~

Reply via email to