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
Fields
§
addr: SyntheticAmode
The memory address.
A memory operand.
Imm
An immediate operand.
Implementations§
Trait Implementations§
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 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