From: Jeff Law Date: Sun, 16 Oct 2022 03:38:20 +0000 (-0400) Subject: Fix bug in register move costing on H8/300 X-Git-Tag: basepoints/gcc-14~3891 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3da5ca84ded7c5754183f8d2cad0d01e1562ff;p=thirdparty%2Fgcc.git Fix bug in register move costing on H8/300 gcc/ * config/h8300/h8300.cc (h8300_register_move_cost): Fix typo. --- diff --git a/gcc/config/h8300/h8300.cc b/gcc/config/h8300/h8300.cc index 78cf15f15c73..be3e385c91e9 100644 --- a/gcc/config/h8300/h8300.cc +++ b/gcc/config/h8300/h8300.cc @@ -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;