https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98287
--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> --- Created attachment 49818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49818&action=edit another testcase $ x86_64-pc-linux-gnu-gcc -Og -fipa-cp another_testcase.c during RTL pass: expand another_testcase.c: In function 'bar.constprop': another_testcase.c:7:23: internal compiler error: in expand_expr_real_2, at expr.c:10000 7 | return v << (s & 3) >> (s & 3); | ~~~~~~~~~~~~~^~~~~~~~~~ 0x667803 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.c:10000 0xc280cb expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.c:10201 0xaf2b5b expand_expr /repo/gcc-trunk/gcc/expr.h:282 0xaf2b5b expand_return /repo/gcc-trunk/gcc/cfgexpand.c:3764 0xaf2b5b expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.c:3873 0xaf2b5b expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.c:3999 0xaf80fb expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.c:6036 0xaf9c76 execute /repo/gcc-trunk/gcc/cfgexpand.c:6720 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.