alexcrichton opened issue #15378:
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 retThe
add_macho_compact_unwind_paired_regsends up addingx21to the clobber set which causes this which isn't correct when the pinned register is enabled.
alexcrichton added the bug label to Issue #15378.
alexcrichton added the cranelift:area:aarch64 label to Issue #15378.
alexcrichton added the cranelift label to Issue #15378.
Last updated: Nov 19 2026 at 20:05 UTC