Stream: cranelift

Topic: trapping runtests


view this post on Zulip Kirp (Sep 29 2025 at 21:30):

Was working on https://github.com/bytecodealliance/wasmtime/pull/11748 and was wondering if it was possible / desired to have run tests that test for trapping behaviour too (as well as testing that in the happy case the outcome is the same)?

Add opts for ctz and clz - issues #11725 Add opts for srem and urem

view this post on Zulip Chris Fallin (Sep 29 2025 at 21:35):

We don't have the ability to test traps in Cranelift runtests unfortunately

view this post on Zulip Chris Fallin (Sep 29 2025 at 21:35):

If a trapping case is exposed to Wasm (e.g. for i32/i64 types) then feel free to add a wast test for it, though!


Last updated: Dec 06 2025 at 06:05 UTC