Enum RegMemImm
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.
Fields
§
reg: Reg
The underlying register.
Mem
A memory operand.
Fields
§
addr: SyntheticAmode
The memory address.
Imm
An immediate operand.
Implementations§
Trait Implementations§
§impl<'a> From<&'a XmmMemAlignedImm> for &'a RegMemImm
impl<'a> From<&'a XmmMemAlignedImm> for &'a RegMemImm
§fn from(rmi: &'a XmmMemAlignedImm) -> &'a RegMemImm
fn from(rmi: &'a XmmMemAlignedImm) -> &'a RegMemImm
Converts to this type from the input type.
§impl From<XmmMemAlignedImm> for RegMemImm
impl From<XmmMemAlignedImm> for RegMemImm
§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