Cranelift aarch64: `enable_compact_unwind_abi` + `enable_pinned_reg` clobbers the pinned register in epilogues
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 18.9k
- フォーク
- 2k
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 238
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bytecodealliance/wasmtime のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bytecodealliance/wasmtime#15536 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bytecodealliance/wasmtime#15455 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
wasi-preview1-component-adapter: fd_write does not invalidate cached InputStream, causing stale reads対応中かも @dpfens が 13 日前に担当しました。 オープンwasi
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bytecodealliance/wasmtime#15296 ·
メンテナーはふだん 1 日以内に返信
-
bug wasm-proposal:exceptions wasmtime:debugging
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bytecodealliance/wasmtime#14102 ·
メンテナーはふだん 1 日以内に返信
-
wasm-proposal:gc
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bytecodealliance/wasmtime#13808 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
bytecodealliance/wasmtime の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Test connection's password prompt says the password is never saved, also for a keychain profileオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area: settings bug Haiku review: no-score ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MMFoundation/WallpaperMachine#346 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rubys/roundhouse#2473 ·
-
bug mod: quantum info
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Qiskit/qiskit#17699 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信