Skip to content

Lowering i32x4.splat + f64x2.convert_low_i32x4 results in panic #8084

@ShinWonho

Description

@ShinWonho

Test Case

;; unsigned.wat
(module
  (func (export "foo") (result v128)
    (i32.const 0)
    (i32x4.splat)
    (f64x2.convert_low_i32x4_u)
  )
)
;; signed.wat
(module
  (func (export "foo") (result v128)
    (i32.const 0)
    (i32x4.splat)
    (f64x2.convert_low_i32x4_s)
  )
)

Steps to Reproduce

wasmtime unsigned.wat
wasmtime signed.wat

Expected Results

Terminate without any errors

Actual Results

thread '<unnamed>' panicked at cranelift/codegen/src/machinst/lower.rs:766:21:
should be implemented in ISLE: inst = `v6 = fcvt_from_uint.f64x2 v13  ; v13 = const0`, type = `Some(types::F64X2)`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      wasmtime unsigned.wat
thread '<unnamed>' panicked at cranelift/codegen/src/machinst/lower.rs:766:21:
should be implemented in ISLE: inst = `v6 = fcvt_from_sint.f64x2 v13  ; v13 = const0`, type = `Some(types::F64X2)`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      wasmtime signed.wat

Versions and Environment

Wasmtime version or commit: wasmtime-cli 18.0.2 (90db6e9 2024-02-28)

Operating system & Architecture:

  1. Server
  • OS: Ubuntu 18.04.3 LTS (Bionic Beaver)
  • Arc: x86_64
  1. IMac
  • OS: Monterey 12.6.2
  • Arc: x86_64

Extra Info

It is not reproduced in

  1. M1 MacBook Air
  • OS: Sonoma 14.3.1
  • Arc: Arm64
  1. MacBook Pro
  • Monterey 12.6.3
  • Arc: x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixingcranelift:area:aarch64Issues related to AArch64 backend.isleRelated to the ISLE domain-specific language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions