@@@ misc mess
[mLib] / test / tvec-bench.c
index bff3c3a..f61d5e1 100644 (file)
@@ -287,7 +287,7 @@ static int setvar(struct tvec_state *tv, const char *var,
   struct tvec_benchctx *bc = ctx;
 
   if (STRCMP(var, ==, "@target")) {
-    if (bc->f&TVBF_SETTRG) return (tvec_dupreg(tv, var));
+    if (bc->f&TVBF_SETTRG) return (tvec_dupregerr(tv, var));
     bc->bst->target_s = rv->f; bc->f |= TVBF_SETTRG;
   } else assert("unknown var");
   return (0);
@@ -385,6 +385,7 @@ void tvec_benchrun(struct tvec_state *tv, tvec_testfn *fn, void *ctx)
       rd->ty->dump(&TVEC_REG(tv, in, rd->i)->v, rd,
                   TVSF_COMPACT, &dstr_printops, &d);
     }
+  DPUTZ(&d);
 
   /* Run the benchmark. */
   o->ops->bbench(o, d.buf, unit);