https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108805
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-02-15 Component|target |rtl-optimization Ever confirmed|0 |1 --- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- Confirmed, combine chokes itself with the RTX it cannot chew: (gdb) bt #0 internal_error (gmsgid=gmsgid@entry=0x2614840 "in %s, at %s:%d") at ../../git/gcc/gcc/diagnostic.cc:2138 #1 0x0000000000891812 in fancy_abort (file=file@entry=0x20b75d8 "../../git/gcc/gcc/simplify-rtx.cc", line=line@entry=7400, function=function@entry=0x20b74e8 "simplify_subreg") at ../../git/gcc/gcc/diagnostic.cc:2242 #2 0x00000000007653cb in simplify_context::simplify_subreg (this=0x7fffffffd2a8, outermode=<optimized out>, op=<optimized out>, innermode=<optimized out>, byte=...) at ../../git/gcc/gcc/simplify-rtx.cc:7400 #3 0x0000000000ecfee9 in simplify_context::simplify_gen_subreg (this=<optimized out>, outermode=E_V4QImode, op=0x7fffea209480, innermode=E_VOIDmode, byte=...) at ../../git/gcc/gcc/simplify-rtx.cc:7694 #4 0x0000000000ecfee9 in simplify_context::simplify_gen_subreg (this=this@entry=0x7fffffffd2a8, outermode=outermode@entry=E_V4QImode, op=0x7fffea3e4b58, innermode=E_DImode, byte=...) at ../../git/gcc/gcc/simplify-rtx.cc:7694 #5 0x0000000001c92bde in simplify_gen_subreg (byte=..., innermode=<optimized out>, op=<optimized out>, outermode=E_V4QImode) at ../../git/gcc/gcc/rtl.h:3408 #6 if_then_else_cond (x=x@entry=0x7fffea3e4558, ptrue=ptrue@entry=0x7fffffffd328, pfalse=pfalse@entry=0x7fffffffd338) at ../../git/gcc/gcc/combine.cc:9375 #7 0x0000000001c929b1 in if_then_else_cond (x=x@entry=0x7fffea3e42b8, ptrue=ptrue@entry=0x7fffffffd400, pfalse=pfalse@entry=0x7fffffffd408) at ../../git/gcc/gcc/combine.cc:9240 #8 0x0000000001c9de0a in combine_simplify_rtx (x=0x7fffea3e42b8, op0_mode=E_V4QImode, in_dest=0, in_cond=0) at ../../git/gcc/gcc/combine.cc:5723 (gdb) f 3 #3 0x0000000000ecfee9 in simplify_context::simplify_gen_subreg (this=<optimized out>, outermode=E_V4QImode, op=0x7fffea209480, innermode=E_VOIDmode, byte=...) at ../../git/gcc/gcc/simplify-rtx.cc:7694 7694 newx = simplify_subreg (outermode, op, innermode, byte); (gdb) p debug_rtx (op) (const_int -1 [0xffffffffffffffff])