]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix bug in register move costing on H8/300
authorJeff Law <jeffreyalaw@gmail.com>
Sun, 16 Oct 2022 03:38:20 +0000 (23:38 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Sun, 16 Oct 2022 03:38:20 +0000 (23:38 -0400)
gcc/
* config/h8300/h8300.cc (h8300_register_move_cost): Fix typo.

gcc/config/h8300/h8300.cc

index 78cf15f15c73385435bb588605e91dbb2ce51159..be3e385c91e9958bd4b580f09297b546599309e2 100644 (file)
@@ -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;