abrown commented on issue #2237:
And there is even trouble with
b8andb1as @afonso360 points out here:Running `C:\Users\Afonso\CLionProjects\wasmtime\target\debug\clif-util.exe test ./test.clif` thread 'worker #0' panicked at 'argument type mismatch: b8 != b1', cranelift\filetests\src\function_runner.rs:200:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace FAIL ./test.clif: panicked in worker #0: argument type mismatch: b8 != b1 1 tests Error: 1 failure
akirilov-arm labeled issue #2237:
The
test rundirective compiles CLIF to machine code using theSingleFunctionCompiler; the trampolines created here are limited in that they only really understand how to handle small booleans:b1andb8. They should support larger boolean types, both scalar and vector.The underlying issue here is that Cranelift's
loadandstoredo not operate on boolean types so the trampoline must convert them from an equivalent integer type in memory to their boolean type before calling the compiled function (and vice-versa for the return).
abrown closed issue #2237:
The
test rundirective compiles CLIF to machine code using theSingleFunctionCompiler; the trampolines created here are limited in that they only really understand how to handle small booleans:b1andb8. They should support larger boolean types, both scalar and vector.The underlying issue here is that Cranelift's
loadandstoredo not operate on boolean types so the trampoline must convert them from an equivalent integer type in memory to their boolean type before calling the compiled function (and vice-versa for the return).
Last updated: Dec 06 2025 at 06:05 UTC