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

            Bug ID: 122097
           Summary: loongarch64 ICE: in
                    loongarch_const_vector_bitimm_set_p, at
                    config/loongarch/loongarch.cc:1729
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chenglulu at loongson dot cn
  Target Milestone: ---

Created attachment 62470
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62470&action=edit
testsuite

# gcc/cc1 test.c -quiet  -msimd=lsx -O3 -o test.s
during RTL pass: sched1
test.c: In function ‘test_simde_mm_mask_range_pd’:
test.c:268:1: internal compiler error: in loongarch_const_vector_bitimm_set_p,
at config/loongarch/loongarch.cc:1728
  268 | }
      | ^
0x2dc08d6 internal_error(char const*, ...)
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/diagnostic-global-context.cc:786
0x2dd0578 fancy_abort(char const*, int, char const*)
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/diagnostics/context.cc:1803
0x1e649f3 loongarch_const_vector_bitimm_set_p(rtx_def*, machine_mode)
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/config/loongarch/loongarch.cc:1728
0x29651ed satisfies_constraint_YC
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/config/loongarch/constraints.md:311
0x15bc648 constraint_satisfied_p
        ./tm-preds.h:263
0x15be8a9 record_reg_classes
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/ira-costs.cc:840
0x15c1425 record_operand_costs
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/ira-costs.cc:1502
0x15c1874 scan_one_insn
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/ira-costs.cc:1596
0x15c2269 process_bb_for_costs
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/ira-costs.cc:1748
0x15c368f find_costs_and_classes
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/ira-costs.cc:2062
0x15c5809 ira_set_pseudo_classes(bool, _IO_FILE*)
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/ira-costs.cc:2648
0x2b1bcc7 alloc_global_sched_pressure_data
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/haifa-sched.cc:7221
0x2b1c1e4 sched_init()
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/haifa-sched.cc:7376
0x2b1c226 haifa_sched_init()
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/haifa-sched.cc:7388
0x18678c2 schedule_insns()
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/sched-rgn.cc:3527
0x18681f0 rest_of_handle_sched
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/sched-rgn.cc:3739
0x186835c execute
       
/home/chenglulu/work/toolchain-glibc/src/gcc-r15-orig/gcc/sched-rgn.cc:3849
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.
  • [Bug target/122097] New: loongar... chenglulu at loongson dot cn via Gcc-bugs

Reply via email to