[AArch64] Fix incorrect regalloc constraints for atomic_cas (#4959)
* [AArch64] Fix incorrect regalloc constraints for atomic_cas * Update test for latest Cranelift changes
This commit is contained in:
@@ -726,8 +726,8 @@ fn aarch64_get_operands<F: Fn(VReg) -> VReg>(inst: &Inst, collector: &mut Operan
|
||||
collector.reg_fixed_use(addr, xreg(25));
|
||||
collector.reg_fixed_use(expected, xreg(26));
|
||||
collector.reg_fixed_use(replacement, xreg(28));
|
||||
collector.reg_fixed_def(oldval, xreg(24));
|
||||
collector.reg_fixed_def(scratch, xreg(27));
|
||||
collector.reg_fixed_def(oldval, xreg(27));
|
||||
collector.reg_fixed_def(scratch, xreg(24));
|
||||
}
|
||||
&Inst::LoadAcquire { rt, rn, .. } => {
|
||||
collector.reg_use(rn);
|
||||
|
||||
Reference in New Issue
Block a user