Skip to content

Commit

Permalink
Relaxed width constraint on pad_expression output.
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Sep 10, 2004
1 parent d16e8f7 commit a8ee786
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tgt-vvp/eval_expr.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: eval_expr.c,v 1.108 2004/06/30 03:07:32 steve Exp $"
#ident "$Id: eval_expr.c,v 1.109 2004/09/10 00:14:31 steve Exp $"
#endif

# include "vvp_priv.h"
Expand Down Expand Up @@ -1355,10 +1355,12 @@ static struct vector_info draw_pad_expr(ivl_expr_t exp, unsigned wid)
struct vector_info res;

subv = draw_eval_expr(ivl_expr_oper1(exp), 0);
if (wid == subv.wid) {
if (wid <= subv.wid) {
if (subv.base >= 8)
save_expression_lookaside(subv.base, exp, wid);
return subv;
save_expression_lookaside(subv.base, exp, subv.wid);
res.base = subv.base;
res.wid = wid;
return res;
}

res.base = allocate_vector(wid);
Expand Down Expand Up @@ -2137,6 +2139,9 @@ struct vector_info draw_eval_expr(ivl_expr_t exp, int stuff_ok_flag)

/*
* $Log: eval_expr.c,v $
* Revision 1.109 2004/09/10 00:14:31 steve
* Relaxed width constraint on pad_expression output.
*
* Revision 1.108 2004/06/30 03:07:32 steve
* Watch out for real compared to constant. Handle as real.
*
Expand Down

0 comments on commit a8ee786

Please sign in to comment.