Cranelift: Can't distinguish between i64 and i64x1 despite being ABI relevant on arm64

Đang mở
#15,057 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

The payload gives a .clif test case but names no source file or failing test. Start by tracing how I64.by(1) determines the ABI type for uint64x1_t when compiling this case with cg_clif on arm64. Done means b is passed in a vector register rather than an integer register.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug cranelift
.clif Test Case
use std::arch::aarch64::uint64x1_t;
#[unsafe(no_mangle)]
extern "C" fn lane(_a: u8, b: uint64x1_t) -> uint64x1_t {
    b
}
Steps to Reproduce
  • Compile with cg_clif
Expected Results

b is passed in a vector register.

Actual Results

b is passed in an integer register as I64.by(1) returns i64 as type rather than a i64x1 vector type.

Versions and Environment

Cranelift version or commit: 0.137

Operating system: Linux

Architecture: arm64

Extra Info

Originally reported at https://github.com/rust-lang/rustc_codegen_cranelift/issues/1718

Ngôn ngữ chính
Rust
Star
18.9k
Fork
2k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
238

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/wasmtime

Tất cả issue của bytecodealliance/wasmtime

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.