[committed] Fix bug in register move costing on H8/300
Commit Message
Spotted while looking at a regression on the H8/300. We used MAC_REG
rather than MAC_REGS when referring to a register class. This caused
code quality regressions while looking into Paul K's suggestion for
fixing the auto-increment issue on the H8.
Pushed to the trunk,
Jeff
commit 6c3da5ca84ded7c5754183f8d2cad0d01e1562ff
Author: Jeff Law <jeffreyalaw@gmail.com>
Date: Sat Oct 15 23:38:20 2022 -0400
Fix bug in register move costing on H8/300
gcc/
* config/h8300/h8300.cc (h8300_register_move_cost): Fix typo.
@@ -1140,7 +1140,7 @@ static int
h8300_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
reg_class_t from, reg_class_t to)
{
- if (from == MAC_REGS || to == MAC_REG)
+ if (from == MAC_REGS || to == MAC_REGS)
return 6;
else
return 3;