Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cranelift: bmask not implemented for any type on x86_64 #5106

Closed
afonso360 opened this issue Oct 24, 2022 · 0 comments · Fixed by #5148
Closed

Cranelift: bmask not implemented for any type on x86_64 #5106

afonso360 opened this issue Oct 24, 2022 · 0 comments · Fixed by #5148
Labels
bug Incorrect behavior in the current implementation that needs fixing cranelift Issues related to the Cranelift code generator

Comments

@afonso360
Copy link
Contributor

👋 Hey,

This was noted recently in #5031, but I'm adding these to fuzzgen as well and It's complaining about it.

.clif Test Case

test interpret
test run
set enable_llvm_abi_extensions=true
target x86_64

function %a(i64) -> i64 {
block0(v0: i64):
    v1 = bmask.i64 v0
    return v1
}
; run: %a(1) == -1

Steps to Reproduce

  • clif-util test ./the-above.clif

Expected Results

The above tests to pass.

Actual Results

    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'not implemented: Bmask not implemented', cranelift/codegen/src/isa/x64/lower.rs:500:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: not implemented: Bmask not implemented
FAIL ./lmao.clif: panicked in worker #0: not implemented: Bmask not implemented
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main
Operating system: Windows
Architecture: x86_64

@afonso360 afonso360 added bug Incorrect behavior in the current implementation that needs fixing cranelift Issues related to the Cranelift code generator labels Oct 24, 2022
@afonso360 afonso360 changed the title Cranelift: bmask not implemented on x86_64 Cranelift: bmask not implemented for any type on x86_64 Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior in the current implementation that needs fixing cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant