Skip to content

Winch x64: panic compilingi32.atomic.load16_u with large offset #13327

@alexcrichton

Description

@alexcrichton

This input:

(module
  (memory 2 )
  (func (export "f") (param i32) (result i32)
    local.get 0
    i32.atomic.load16_u offset=65536
  )
)

currently fails with:

$ cargo run compile -C compiler=winch foo.wat
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/wasmtime compile -C compiler=winch foo.wat`

thread '<unnamed>' (1303362) panicked at winch/codegen/src/isa/x64/asm.rs:1196:81:
called `Result::unwrap()` on an `Err` value: TryFromIntError(())
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

cc @saulecabrera

Metadata

Metadata

Assignees

No one assigned

    Labels

    winchWinch issues or pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions