-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugIncorrect behavior in the current implementation that needs fixingIncorrect behavior in the current implementation that needs fixingcraneliftIssues related to the Cranelift code generatorIssues related to the Cranelift code generatorwasmtime:platform-supportRelated to supporting a new platform in WasmtimeRelated to supporting a new platform in Wasmtime
Description
.wat Test Case
(module
(type (;0;) (func (param f64) (result f64)))
(func $f (type 0) (param f64) (result f64)
local.get 0
f64.floor))
Steps to Reproduce
wasmtime run --wasm-features=-simd --cranelift-set has_sse41=false testcase.wat
Expected Results
I would expect wasmtime / cranelift to be able to compile this code on a machine with has_sse41=false. (In particular, this shows up in a QEMU VM.)
Actual Results
I get an error:
thread 'main' panicked at 'not implemented: cannot generate relocation against libcall FloorF64', crates/cranelift/src/obj.rs:155:21
Versions and Environment
Cranelift version or commit: 4.0.0
Operating system: Linux 6.1.3
Architecture: x86_64; the problem shows up in a QEMU VM where has_sse41=false, but can also be observed outside of a QEMU VM by explicitly passing has_sse41=false like above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIncorrect behavior in the current implementation that needs fixingIncorrect behavior in the current implementation that needs fixingcraneliftIssues related to the Cranelift code generatorIssues related to the Cranelift code generatorwasmtime:platform-supportRelated to supporting a new platform in WasmtimeRelated to supporting a new platform in Wasmtime