pub enum RegMemImm {
Reg {
reg: Reg,
},
Mem {
addr: SyntheticAmode,
},
Imm {
simm32: u32,
},
}
Expand description
An operand which is either an integer Register, a value in Memory or an Immediate. This can
denote an 8, 16, 32 or 64 bit value. For the Immediate form, in the 8- and 16-bit case, only
the lower 8 or 16 bits of simm32
is relevant. In the 64-bit case, the value denoted by
simm32
is its sign-extension out to 64 bits.
Variants§
Reg
A register operand.
Mem
A memory operand.
Fields
§
addr: SyntheticAmode
The memory address.
Imm
An immediate operand.
Implementations§
Trait Implementations§
source§impl<'a> From<&'a XmmMemAlignedImm> for &'a RegMemImm
impl<'a> From<&'a XmmMemAlignedImm> for &'a RegMemImm
source§fn from(rmi: &'a XmmMemAlignedImm) -> &'a RegMemImm
fn from(rmi: &'a XmmMemAlignedImm) -> &'a RegMemImm
Converts to this type from the input type.
source§impl From<XmmMemAlignedImm> for RegMemImm
impl From<XmmMemAlignedImm> for RegMemImm
source§fn from(rmi: XmmMemAlignedImm) -> RegMemImm
fn from(rmi: XmmMemAlignedImm) -> RegMemImm
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegMemImm
impl RefUnwindSafe for RegMemImm
impl Send for RegMemImm
impl Sync for RegMemImm
impl Unpin for RegMemImm
impl UnwindSafe for RegMemImm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)