https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100200
--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> --- Backtrace is: #0 0x4340bc0 in aarch64_plus_immediate(rtx_def*, machine_mode) /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/predicates.md:129 #1 0x2e0d168 in aarch64_rtx_costs /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.c:13000 #2 0x2e1ae1c in aarch64_rtx_costs_wrapper /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.c:13824 #3 0x1d97328 in rtx_cost(rtx_def*, machine_mode, rtx_code, int, bool) /home/alecop01/toolchain/src/gcc/gcc/rtlanal.c:4626 #4 0x49424bc in notreg_cost /home/alecop01/toolchain/src/gcc/gcc/cse.c:731 #5 0x495882c in cse_insn /home/alecop01/toolchain/src/gcc/gcc/cse.c:5130 #6 0x496e198 in cse_extended_basic_block /home/alecop01/toolchain/src/gcc/gcc/cse.c:6590 #7 0x496e198 in cse_main /home/alecop01/toolchain/src/gcc/gcc/cse.c:6769 #8 0x4972808 in rest_of_handle_cse /home/alecop01/toolchain/src/gcc/gcc/cse.c:7599 #9 0x4972808 in execute /home/alecop01/toolchain/src/gcc/gcc/cse.c:7642 #10 0x1b5ec1c in execute_one_pass(opt_pass*) /home/alecop01/toolchain/src/gcc/gcc/passes.c:2567 #11 0x1b623b8 in execute_pass_list_1 /home/alecop01/toolchain/src/gcc/gcc/passes.c:2656 #12 0x1b623f0 in execute_pass_list_1 /home/alecop01/toolchain/src/gcc/gcc/passes.c:2657 #13 0x1b624d4 in execute_pass_list(function*, opt_pass*) /home/alecop01/toolchain/src/gcc/gcc/passes.c:2667 #14 0xc7b2a4 in cgraph_node::expand() /home/alecop01/toolchain/src/gcc/gcc/cgraphunit.c:1830 #15 0xc7ff24 in expand_all_functions /home/alecop01/toolchain/src/gcc/gcc/cgraphunit.c:1994 #16 0xc7ff24 in symbol_table::compile() /home/alecop01/toolchain/src/gcc/gcc/cgraphunit.c:2358 #17 0xc8b81c in symbol_table::compile() /home/alecop01/toolchain/src/gcc/gcc/cgraphunit.c:2271 #18 0xc8b81c in symbol_table::finalize_compilation_unit() /home/alecop01/toolchain/src/gcc/gcc/cgraphunit.c:2539 #19 0x1f97478 in compile_file /home/alecop01/toolchain/src/gcc/gcc/toplev.c:482 #20 0x68d9b0 in do_compile /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2201 #21 0x68d9b0 in toplev::main(int, char**) /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2340 #22 0x6910d0 in main /home/alecop01/toolchain/src/gcc/gcc/main.c:39 #23 0xffff7cc036dc in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x206dc) #24 0x691b2c (/data/alecop01/builds/bstrap-ubsan/gcc/cc1+0x691b2c)