https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104024
--- Comment #4 from Kewen Lin <linkw at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #3)
> Most of those options were removed. Does this problem (adjusted properly,
> those options are now enabled iff you use -mcpu=power10 or later) still
> happen on trunk?
Yes, even if the option -mpower10-fusion is changed to "Undocumented" by
r12-7297, it can still be enabled by the explicit -mpower10-fusion without
-mcpu=power10, the ICE still happens on trunk.
$ /home/linkw/gcc/build/gcc-fix-debug/gcc/xgcc -v 2>&1 | grep "gcc version"
gcc version 12.0.1 20220221 (experimental) (GCC)
$ /home/linkw/gcc/build/gcc-fix-debug/gcc/xgcc -B
/home/linkw/gcc/build/gcc-fix-debug/gcc/ pr104024-1.c -mpower10-fusion -S
-mcpu=power6 -O1
pr104024-1.c:16:1: error: unable to generate reloads for:
16 | }
| ^
(insn 13 78 50 2 (parallel [
(set (reg:TI 128)
(and:TI (xor:TI (reg:TI 124)
(reg/v:TI 123 [ y ]))
(reg:TI 127)))
(clobber (reg:TI 147))
]) "pr104024-1.c":13:7 2564 {*fuse_vxor_vand}
(expr_list:REG_UNUSED (reg:TI 147)
(expr_list:REG_DEAD (reg:TI 127)
(expr_list:REG_DEAD (reg/v:TI 123 [ y ])
(nil)))))
during RTL pass: reload
Will adjust, rebase, re-test and resend out the patch to gcc-patch@ later.