https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93996
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The bad tree comes from the mem_attrs from (mem/v:SI (reg/f:DI 0 x0 [97]) [-1 S4 A32]) inside the following instruction: $3 = (insn:TI 30 34 31 3 (set (reg:SI 1 x1 [98]) (unspec_volatile:SI [ (mem/v:SI (reg/f:DI 0 x0 [97]) [-1 S4 A32]) (const_int 5 [0x5]) ] UNSPECV_LX)) "t1.c":2:17 3889 {aarch64_load_exclusivesi} (nil)) ---- CUT ----