Enum o1vm::interpreters::riscv32im::interpreter::SBInstruction
source · pub enum SBInstruction {
BranchEq,
BranchNeq,
BranchLessThan,
BranchGreaterThanEqual,
BranchLessThanUnsigned,
BranchGreaterThanEqualUnsigned,
}
Variants§
BranchEq
Format: beq rs1, rs2, offset
Description: Take the branch if registers rs1 and rs2 are equal.
BranchNeq
Format: bne rs1, rs2, offset
Description: Take the branch if registers rs1 and rs2 are not equal.
BranchLessThan
Format: blt rs1, rs2, offset
Description: Take the branch if registers rs1 is less than rs2, using signed comparison.
BranchGreaterThanEqual
Format: bge rs1, rs2, offset
Description: Take the branch if registers rs1 is greater than or equal to rs2, using signed comparison.
BranchLessThanUnsigned
Format: bltu rs1, rs2, offset
Description: Take the branch if registers rs1 is less than rs2, using unsigned comparison.
BranchGreaterThanEqualUnsigned
Format: bgeu rs1, rs2, offset
Description: Take the branch if registers rs1 is greater than or equal to rs2, using unsigned comparison.
Trait Implementations§
source§impl Clone for SBInstruction
impl Clone for SBInstruction
source§fn clone(&self) -> SBInstruction
fn clone(&self) -> SBInstruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SBInstruction
impl Debug for SBInstruction
source§impl Default for SBInstruction
impl Default for SBInstruction
source§fn default() -> SBInstruction
fn default() -> SBInstruction
Returns the “default value” for a type. Read more
source§impl Display for SBInstruction
impl Display for SBInstruction
source§impl Hash for SBInstruction
impl Hash for SBInstruction
source§impl IntoEnumIterator for SBInstruction
impl IntoEnumIterator for SBInstruction
type Iterator = SBInstructionIter
fn iter() -> SBInstructionIter ⓘ
source§impl Ord for SBInstruction
impl Ord for SBInstruction
source§fn cmp(&self, other: &SBInstruction) -> Ordering
fn cmp(&self, other: &SBInstruction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SBInstruction> for SBInstruction
impl PartialEq<SBInstruction> for SBInstruction
source§fn eq(&self, other: &SBInstruction) -> bool
fn eq(&self, other: &SBInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SBInstruction> for SBInstruction
impl PartialOrd<SBInstruction> for SBInstruction
source§fn partial_cmp(&self, other: &SBInstruction) -> Option<Ordering>
fn partial_cmp(&self, other: &SBInstruction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SBInstruction
impl Eq for SBInstruction
impl StructuralEq for SBInstruction
impl StructuralPartialEq for SBInstruction
Auto Trait Implementations§
impl RefUnwindSafe for SBInstruction
impl Send for SBInstruction
impl Sync for SBInstruction
impl Unpin for SBInstruction
impl UnwindSafe for SBInstruction
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more