[Bug c/111334] ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #3 from chenglulu --- This involves the template di3_fake: (define_insn "di3_fake" [(set (match_operand:DI 0 "register_operand" "=r,&r,&r") (sign_extend:DI (any_div:SI (match_operand:DI 1 "register_operand" "r,r,0

[Bug c/111334] ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #2 from chenglulu --- This problem occurred after adding the r14-3511 optimization. However, during the debugging process, it was discovered that it was due to the attempt to generate rtx during the combine pass optimization. (set

[Bug c/111334] ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #1 from chenglulu --- $ gcc test.c -o - -S -O1 test.c: 在函数‘add_startpgm’中: test.c:33:1: 编译器内部错误:在 simplify_subreg 中,于 simplify-rtx.cc:7538 33 | } | ^ 0x13506f4 simplify_context::simplify_subreg(machine_mode, rtx_def*, machi