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.
This commit is contained in:
Cary R 2008-11-13 17:23:39 -08:00 committed by Stephen Williams
parent 416bd35f2e
commit dc6a9e03c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;