[Bug target/105993] [13 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1932 with -O -mxop

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 16 06:38:21 GMT 2022


--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 53149
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53149&action=edit
Patch to fix the failure

The patch fixes this particular failure by using (match_dup X). In general,
rtx_equal_p should be used before reload (also with register_operand). REGNO on
register_operand is valid only after reload (post-reload splitters and
peephole2 patterns).

More information about the Gcc-bugs mailing list