Stream: git-wasmtime

Topic: wasmtime / issue #5993 Cranelift: RISC-V wrong result for...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 11 2023 at 17:14):

afonso360 opened issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}

; run: %a(-0x1.811d818400000p30) == -128

Steps to Reproduce

Expected Results

The test to pass

Actual Results

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok

view this post on Zulip Wasmtime GitHub notifications bot (Mar 11 2023 at 17:14):

afonso360 labeled issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}

; run: %a(-0x1.811d818400000p30) == -128

Steps to Reproduce

Expected Results

The test to pass

Actual Results

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok

view this post on Zulip Wasmtime GitHub notifications bot (Mar 11 2023 at 17:14):

afonso360 labeled issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}

; run: %a(-0x1.811d818400000p30) == -128

Steps to Reproduce

Expected Results

The test to pass

Actual Results

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok

view this post on Zulip Wasmtime GitHub notifications bot (Mar 11 2023 at 17:14):

afonso360 labeled issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}

; run: %a(-0x1.811d818400000p30) == -128

Steps to Reproduce

Expected Results

The test to pass

Actual Results

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok

view this post on Zulip Wasmtime GitHub notifications bot (Mar 11 2023 at 17:15):

afonso360 edited issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}
; run: %a(-0x1.811d818400000p30) == -128

function %b(f64) -> i16 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i16 v0
    return v1
}
; run: %b(-0x1.811d818400000p30) == -32768

Steps to Reproduce

Expected Results

The test to pass

Actual Results

For %a we get:

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

For %b we get:

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -32768, actual: -24673
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok

view this post on Zulip Wasmtime GitHub notifications bot (Mar 11 2023 at 17:15):

afonso360 edited issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}
; run: %a(-0x1.811d818400000p30) == -128

function %b(f64) -> i16 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i16 v0
    return v1
}
; run: %b(-0x1.811d818400000p30) == -32768

Steps to Reproduce

Expected Results

The test to pass

Actual Results

For %a we get:

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

For %b we get:

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -32768, actual: -24673
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok

view this post on Zulip Wasmtime GitHub notifications bot (Oct 23 2023 at 21:12):

afonso360 commented on issue #5993:

Fixed in #7327

view this post on Zulip Wasmtime GitHub notifications bot (Oct 23 2023 at 21:13):

afonso360 closed issue #5993:

:wave: Hey,

.clif Test Case

test interpret
test run
target riscv64gc

function %a(f64) -> i8 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i8 v0
    return v1
}
; run: %a(-0x1.811d818400000p30) == -128

function %b(f64) -> i16 {
block0(v0: f64):
    v1 = fcvt_to_sint_sat.i16 v0
    return v1
}
; run: %b(-0x1.811d818400000p30) == -32768

Steps to Reproduce

Expected Results

The test to pass

Actual Results

For %a we get:

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -128, actual: -97
1 tests
Error: 1 failure

For %b we get:

 ERROR cranelift_filetests::concurrent > FAIL: run
FAIL ./lmao.clif: run

Caused by:
    Failed test: run: %a(-0x1.811d818400000p30) == -32768, actual: -24673
1 tests
Error: 1 failure

Versions and Environment

Cranelift version or commit: main

Operating system: Linux

Architecture: riscv64

Extra Info

cc: @yuyang-ok


Last updated: Dec 23 2024 at 13:07 UTC