bjorn3 commented on Issue #1166:
This is a bug with the old x86 backend.
cfallin closed Issue #1166:
Reported in https://github.com/bytecodealliance/cranelift/issues/1305 and fixed (by partially reverting a patch in https://github.com/bytecodealliance/cranelift/pull/1308), it appears that when
brzandbrnzare emitted with runtime-inferredREXprefixes (and therefore don't have constant instruction size), the code can jump into the middle of nowhere.https://github.com/bytecodealliance/cranelift/pull/1308 changed
brzandbrnzback to using separate encodings for REX and non-REX to prevent crashes in the meantime. This issue is to find the cause and fix it.STR are in https://github.com/bytecodealliance/cranelift/issues/1305 but I was not able to reproduce it locally.
Last updated: Dec 13 2025 at 21:03 UTC