# Verified builds for utf8-check. [project] isa = "x86-64" assembler = "nasm" target = "Windows x64 objects, AVX2" [[step]] name = "assemble the scalar reference" run = ["nasm", "-f", "win64", "-o", "build/utf8_scalar.obj", "src/utf8_scalar.asm"] [[step]] name = "assemble AVX2" run = ["nasm", "-f", "win64", "-o", "build/utf8_avx2.obj", "src/utf8_avx2.asm"] [[step]] name = "build the tests" run = ["gcc", "-O2", "-Wall", "-o", "build/test.exe", "test/test.c", "build/utf8_scalar.obj", "build/utf8_avx2.obj"] [[step]] name = "table 3-7, then 1,000,000 fuzzed inputs" on = "windows" run = ["./build/test.exe", "1000000"] expect = "0 mismatches" [[step]] name = "build the benchmark" run = ["gcc", "-O2", "-Wall", "-o", "build/bench.exe", "bench/bench.c", "build/utf8_scalar.obj", "build/utf8_avx2.obj"] [[step]] name = "time both on 64 MiB" on = "windows" run = ["./build/bench.exe"] expect = "MiB of mixed text" [artifact] path = "build/utf8_avx2.obj" paths = ["build/utf8_scalar.obj"]