Skip to content

Commit c8e7731

Browse files
author
gquintin
committed
Fix mask_store* tests
1 parent 6504fae commit c8e7731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

egg/gen_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ def gen_mask_store(opts, op, typ, lang):
23662366
23672367
fprintf(stdout, "test of {op_name} over {typ}...\\n");
23682368
2369-
CHECK(vout = ({typ}*)nsimd_aligned_alloc(2 * len));{unalign}
2369+
CHECK(vout = ({typ}*)nsimd_aligned_alloc({sizeof} * len));{unalign}
23702370
23712371
/* Fill vout with zeors */
23722372
for (i = 0; i < len; i++) {{
@@ -2398,7 +2398,7 @@ def gen_mask_store(opts, op, typ, lang):
23982398
}}'''.format(includes=get_includes(lang), op_name=op.name,
23992399
typ=typ, year=date.today().year, test=test,
24002400
comp1=comp1, comp2=comp2, unalign=unalign,
2401-
fill_vout=fill_vout))
2401+
fill_vout=fill_vout, sizeof=common.sizeof(typ)))
24022402
common.clang_format(opts, filename)
24032403

24042404
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)