From 6ab911bb392d453230df167741febebdd22edd16 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Mon, 27 Jan 1997 18:32:05 +0000 Subject: [PATCH] (shl_and_kind): typo fix. From-SVN: r13556 --- gcc/config/sh/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 11d662ae602..74d157b25fa 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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; -- 2.30.2