From dc6a9e03c979224d3caa032584cb4b4cf396d3d4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 13 Nov 2008 17:23:39 -0800 Subject: [PATCH] Shifting a signed constant should just return the L-value. We already covered the case of shifting zero, but the case of shifting a signed constant was missed. --- tgt-vvp/eval_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vvp/eval_expr.c b/tgt-vvp/eval_expr.c index a80ea872e..b25827f02 100644 --- a/tgt-vvp/eval_expr.c +++ b/tgt-vvp/eval_expr.c @@ -1128,7 +1128,7 @@ static struct vector_info draw_binary_expr_lrs(ivl_expr_t exp, unsigned wid) /* Sign extend any constant begets itself, if this expression is signed. */ if ((lv.base < 4) && (ivl_expr_signed(exp))) - break; + return lv; if (lv.base < 4) { struct vector_info tmp;