https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118320
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The IR at the time which is causing the crash:
```
(insn 5 2 15 2 (clobber (reg:DI 0 x0 [orig:103 aD.4508 ] [103]))
"/app/example.cpp":3:23 -1
(nil))
(insn 15 5 18 2 (set (mem/c:DI (plus:DI (reg/f:DI 31 sp)
(const_int 16 [0x10])) [2 bD.4533+0 S8 A128])
(reg:DI 0 x0 [orig:103 aD.4508 ] [103])) "/app/example.cpp":17:5 70
{*movdi_aarch64}
(expr_list:REG_DEAD (reg:DI 0 x0 [orig:103 aD.4508 ] [103])
(nil)))
(insn 18 15 16 2 (set (reg:DI 0 x0 [orig:104 aD.4508+8 ] [104])
(const_int 1 [0x1])) "/app/example.cpp":17:5 70 {*movdi_aarch64}
(expr_list:REG_EQUIV (const_int 1 [0x1])
(nil)))
(insn 16 18 8 2 (set (mem/c:DI (plus:DI (reg/f:DI 31 sp)
(const_int 24 [0x18])) [2 bD.4533+8 S8 A64])
(reg:DI 0 x0 [orig:104 aD.4508+8 ] [104])) "/app/example.cpp":17:5 70
{*movdi_aarch64}
(expr_list:REG_DEAD (reg:DI 0 x0 [orig:104 aD.4508+8 ] [104])
(nil)))
```
Note the clobber there is needed to get the crash.