From 49025021c2974b40482d026938e4f90052960876 Mon Sep 17 00:00:00 2001 From: brxken128 <77554505+brxken128@users.noreply.github.com> Date: Tue, 15 Aug 2023 06:20:43 +0100 Subject: [PATCH] use `rax` for x86_64 and 64 bit values --- cmov/src/x86.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmov/src/x86.rs b/cmov/src/x86.rs index 6655c82a..c6d9bbe7 100644 --- a/cmov/src/x86.rs +++ b/cmov/src/x86.rs @@ -158,11 +158,11 @@ impl Cmov for u64 { impl CmovEq for u64 { #[inline] fn cmoveq(&self, rhs: &Self, input: Condition, output: &mut Condition) { - cmov_eq!("cmovz {2:e}, {3:e}", self, rhs, input, output); + cmov_eq!("cmovz {2:r}, {3:r}", self, rhs, input, output); } #[inline] fn cmovne(&self, rhs: &Self, input: Condition, output: &mut Condition) { - cmov_eq!("cmovnz {2:e}, {3:e}", self, rhs, input, output); + cmov_eq!("cmovnz {2:r}, {3:r}", self, rhs, input, output); } }