Cranelift aarch64: `enable_compact_unwind_abi` + `enable_pinned_reg` clobbers the pinned register in epilogues
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
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start with the precise-output test in the issue and trace add_macho_compact_unwind_paired_regs and how it updates the clobber set for AArch64. Check the compact unwind and pinned register handling together, then add or update a regression test showing the pinned register survives the epilogue; done when the epilogue no longer restores over the pinned register.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This test
test compile precise-output
set enable_compact_unwind_abi=true
set enable_pinned_reg=true
target aarch64
function %f(i64, i64, i64, i64) -> i64 apple_aarch64 {
fn0 = colocated %callee() apple_aarch64
block0(v0: i64, v1: i64, v2: i64, v3: i64):
call fn0()
set_pinned_reg v3
v5 = iadd v0, v1
v6 = iadd v5, v2
return v6
}
shows:
stp x29, x30, [sp, #-0x10]!
mov x29, sp
stp x20, x19, [sp, #-0x10]!
stp x22, x21, [sp, #-0x10]! ; x21 saved
stp x24, x23, [sp, #-0x10]!
...
bl #0x24 ; reloc_external Call %callee 0
mov x3, x23
mov x21, x3 ; set_pinned_reg v3
...
ldp x24, x23, [sp], #0x10
ldp x22, x21, [sp], #0x10 ; x21 overwritten with its entry value
ldp x20, x19, [sp], #0x10
ldp x29, x30, [sp], #0x10
ret
The add_macho_compact_unwind_paired_regs ends up adding x21 to the clobber set which causes this which isn't correct when the pinned register is enabled.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/wasmtime
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bytecodealliance/wasmtime#15536 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bytecodealliance/wasmtime#15455 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wasi-preview1-component-adapter: fd_write does not invalidate cached InputStream, causing stale readsCó thể đã có người làm @dpfens đã nhận 13 ngày trước. Đang mởwasi
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bytecodealliance/wasmtime#15296 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug wasm-proposal:exceptions wasmtime:debugging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bytecodealliance/wasmtime#14102 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wasm-proposal:gc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
bytecodealliance/wasmtime#13808 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bytecodealliance/wasmtime
Issue tương tự
-
Android: a long press's `contextmenu` event carries no point (`clientX` and `clientY` are 0)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Test connection's password prompt says the password is never saved, also for a keychain profileĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: settings bug Haiku review: no-score ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rubys/roundhouse#2473 ·
-
bug mod: quantum info
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Qiskit/qiskit#17699 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày