Stream: git-wasmtime

Topic: wasmtime / issue #5041 Cranelift: `b{and,or,xor}_not` ops...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 11 2022 at 12:43):

afonso360 labeled issue #5041:

:wave: Hey,

It looks like we don't support band_not, bor_not, bxor_not for any integer type (i8/i16/i32,i64,i128).

.clif Test Case

test run
target x86_64

function %a(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
    v2 = band_not v0, v1
    return v2
}
; run: %a(1, 1) == 0

Steps to Reproduce

Expected Results

The test to pass

Actual Results

   Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'called `Option::unwrap()` on a `None` value', cranelift/codegen/src/isa/x64/lower/isle.rs:506:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: called `Option::unwrap()` on a `None` value
FAIL ./lmao.clif: panicked in worker #0: called `Option::unwrap()` on a `None` value
1 tests
Error: 1 failure

Versions and Environment

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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 11 2022 at 12:43):

afonso360 labeled issue #5041:

:wave: Hey,

It looks like we don't support band_not, bor_not, bxor_not for any integer type (i8/i16/i32,i64,i128).

.clif Test Case

test run
target x86_64

function %a(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
    v2 = band_not v0, v1
    return v2
}
; run: %a(1, 1) == 0

Steps to Reproduce

Expected Results

The test to pass

Actual Results

   Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'called `Option::unwrap()` on a `None` value', cranelift/codegen/src/isa/x64/lower/isle.rs:506:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: called `Option::unwrap()` on a `None` value
FAIL ./lmao.clif: panicked in worker #0: called `Option::unwrap()` on a `None` value
1 tests
Error: 1 failure

Versions and Environment

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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 11 2022 at 12:43):

afonso360 opened issue #5041:

:wave: Hey,

It looks like we don't support band_not, bor_not, bxor_not for any integer type (i8/i16/i32,i64,i128).

.clif Test Case

test run
target x86_64

function %a(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
    v2 = band_not v0, v1
    return v2
}
; run: %a(1, 1) == 0

Steps to Reproduce

Expected Results

The test to pass

Actual Results

   Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'called `Option::unwrap()` on a `None` value', cranelift/codegen/src/isa/x64/lower/isle.rs:506:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: called `Option::unwrap()` on a `None` value
FAIL ./lmao.clif: panicked in worker #0: called `Option::unwrap()` on a `None` value
1 tests
Error: 1 failure

Versions and Environment

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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 11 2022 at 23:05):

ArtBlnd commented on issue #5041:

Can I take this task?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2022 at 07:10):

afonso360 commented on issue #5041:

Sure! Thanks for taking it on!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 22 2022 at 23:52):

ArtBlnd commented on issue #5041:

Ok I'm gonna work on this task now

view this post on Zulip Wasmtime GitHub notifications bot (Feb 02 2023 at 05:57):

elliottt closed issue #5041:

:wave: Hey,

It looks like we don't support band_not, bor_not, bxor_not for any integer type (i8/i16/i32,i64,i128).

.clif Test Case

test run
target x86_64

function %a(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
    v2 = band_not v0, v1
    return v2
}
; run: %a(1, 1) == 0

Steps to Reproduce

Expected Results

The test to pass

Actual Results

   Running `/home/afonso/git/wasmtime/target/debug/clif-util test ./lmao.clif`
thread 'worker #0' panicked at 'called `Option::unwrap()` on a `None` value', cranelift/codegen/src/isa/x64/lower/isle.rs:506:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: called `Option::unwrap()` on a `None` value
FAIL ./lmao.clif: panicked in worker #0: called `Option::unwrap()` on a `None` value
1 tests
Error: 1 failure

Versions and Environment

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


Last updated: Dec 23 2024 at 12:05 UTC