(shl_and_kind): typo fix.
authorJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 27 Jan 1997 18:32:05 +0000 (18:32 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 27 Jan 1997 18:32:05 +0000 (18:32 +0000)
From-SVN: r13556

gcc/config/sh/sh.c

index 11d662ae6020a4f00ca7d4968ae37ca41624a8b1..74d157b25fa46e383af798c76d75a4777f842a58 100644 (file)
@@ -1158,7 +1158,7 @@ shl_and_kind (left_rtx, mask_rtx, attrp)
       if (i > right)
        break;
       cost = (i != 0) + (CONST_OK_FOR_I (mask >> i) ? 2 : 3)
-       + (can_ext ? ext_shift_insns : shift_insns)[left];
+       + (can_ext ? ext_shift_insns : shift_insns)[left + i];
       if (cost < best_cost)
        {
          best = 4 - can_ext;