x64: port atomic_cas to ISLE (#4223)

This commit is contained in:
Andrew Brown
2022-06-06 13:20:33 -07:00
committed by GitHub
parent d8ba1ddc86
commit 6df56e6aa6
4 changed files with 23 additions and 26 deletions

View File

@@ -547,6 +547,12 @@ where
fn zero_offset(&mut self) -> Offset32 {
Offset32::new(0)
}
#[inline]
fn rax(&mut self) -> WritableGpr {
let gpr = Gpr::new(regs::rax()).unwrap();
WritableGpr::from_reg(gpr)
}
}
// Since x64 doesn't have 8x16 shifts and we must use a 16x8 shift instead, we