Stream: git-wasmtime

Topic: wasmtime / issue #5863 Cranelift: Panic `attempt to negat...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2023 at 14:43):

afonso360 opened issue #5863:

:wave: Hey,

.clif Test Case

test compile
target s390x

function u1:0() -> i64 system_v {
block0:
    v8 = iconst.i8 0
    v10 = iconst.i64 0x8000_0000_0000_0000
    v21 = isub v10, v10
    v23 = ushr v21, v8
    return v23
}

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 'attempt to negate with overflow', cranelift/codegen/src/isa/s390x/lower/isle.rs:645:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: attempt to negate with overflow
FAIL ./lmao.clif: panicked in worker #0: attempt to negate with overflow
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: s390x

Extra Info

cc: @uweigand

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2023 at 14:43):

afonso360 labeled issue #5863:

:wave: Hey,

.clif Test Case

test compile
target s390x

function u1:0() -> i64 system_v {
block0:
    v8 = iconst.i8 0
    v10 = iconst.i64 0x8000_0000_0000_0000
    v21 = isub v10, v10
    v23 = ushr v21, v8
    return v23
}

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 'attempt to negate with overflow', cranelift/codegen/src/isa/s390x/lower/isle.rs:645:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: attempt to negate with overflow
FAIL ./lmao.clif: panicked in worker #0: attempt to negate with overflow
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: s390x

Extra Info

cc: @uweigand

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2023 at 14:43):

afonso360 labeled issue #5863:

:wave: Hey,

.clif Test Case

test compile
target s390x

function u1:0() -> i64 system_v {
block0:
    v8 = iconst.i8 0
    v10 = iconst.i64 0x8000_0000_0000_0000
    v21 = isub v10, v10
    v23 = ushr v21, v8
    return v23
}

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 'attempt to negate with overflow', cranelift/codegen/src/isa/s390x/lower/isle.rs:645:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: attempt to negate with overflow
FAIL ./lmao.clif: panicked in worker #0: attempt to negate with overflow
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: s390x

Extra Info

cc: @uweigand

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2023 at 14:43):

afonso360 labeled issue #5863:

:wave: Hey,

.clif Test Case

test compile
target s390x

function u1:0() -> i64 system_v {
block0:
    v8 = iconst.i8 0
    v10 = iconst.i64 0x8000_0000_0000_0000
    v21 = isub v10, v10
    v23 = ushr v21, v8
    return v23
}

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 'attempt to negate with overflow', cranelift/codegen/src/isa/s390x/lower/isle.rs:645:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: attempt to negate with overflow
FAIL ./lmao.clif: panicked in worker #0: attempt to negate with overflow
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: s390x

Extra Info

cc: @uweigand

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2023 at 15:43):

uweigand commented on issue #5863:

Thanks for the report! I've posted a fix for this as well.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2023 at 18:24):

jameysharp closed issue #5863:

:wave: Hey,

.clif Test Case

test compile
target s390x

function u1:0() -> i64 system_v {
block0:
    v8 = iconst.i8 0
    v10 = iconst.i64 0x8000_0000_0000_0000
    v21 = isub v10, v10
    v23 = ushr v21, v8
    return v23
}

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 'attempt to negate with overflow', cranelift/codegen/src/isa/s390x/lower/isle.rs:645:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ERROR cranelift_filetests::concurrent > FAIL: panicked in worker #0: attempt to negate with overflow
FAIL ./lmao.clif: panicked in worker #0: attempt to negate with overflow
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: s390x

Extra Info

cc: @uweigand


Last updated: Nov 22 2024 at 17:03 UTC