diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2022-10-15 23:38:20 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-10-15 23:38:20 -0400 |
commit | 6c3da5ca84ded7c5754183f8d2cad0d01e1562ff (patch) | |
tree | c93bd6a87282f3271ca156d883b47cabebc02de1 /gcc/config | |
parent | 8f605de98de65262c0d3e81064b5bc708fed8f5c (diff) | |
download | gcc-6c3da5ca84ded7c5754183f8d2cad0d01e1562ff.zip gcc-6c3da5ca84ded7c5754183f8d2cad0d01e1562ff.tar.gz gcc-6c3da5ca84ded7c5754183f8d2cad0d01e1562ff.tar.bz2 |
Fix bug in register move costing on H8/300
gcc/
* config/h8300/h8300.cc (h8300_register_move_cost): Fix typo.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/h8300/h8300.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/h8300/h8300.cc b/gcc/config/h8300/h8300.cc index 78cf15f..be3e385 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; |