https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82120
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Doesn't cortex-a5 also force BRANCH_COST of 1? If yes, you should fix up logical_op_short_circuit tcl function. If not, then I have no idea why that happens.