https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122403
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We get:
```
beq .L2
bl __stack_chk_fail
mov w0, 1
```
But was expecting:
```
bne .L4
mov w0, 1
ldp x29, x30, [sp, 272]
add sp, sp, 288
ret
.L4:
bl __stack_chk_fail
```
With -fno-reorder-blocks on a cross compiler I also get the beq version.
I have not looked into why but I doubt it matters that much more likely this
testcase needs to be tightened up and use -fno-reorder-blocks and use the beq
version.