Enum riscv_decode::Instruction
source · [−]pub enum Instruction {
Show 104 variants
Lui(UType),
Auipc(UType),
Jal(JType),
Jalr(IType),
Beq(BType),
Bne(BType),
Blt(BType),
Bge(BType),
Bltu(BType),
Bgeu(BType),
Lb(IType),
Lh(IType),
Lw(IType),
Lbu(IType),
Lhu(IType),
Lwu(IType),
Ld(IType),
Sb(SType),
Sh(SType),
Sw(SType),
Sd(SType),
Addi(IType),
Slti(IType),
Sltiu(IType),
Xori(IType),
Ori(IType),
Andi(IType),
Slli(ShiftType),
Srli(ShiftType),
Srai(ShiftType),
Add(RType),
Sub(RType),
Sll(RType),
Slt(RType),
Sltu(RType),
Xor(RType),
Srl(RType),
Sra(RType),
Or(RType),
And(RType),
Mul(RType),
Mulh(RType),
Mulhsu(RType),
Mulhu(RType),
Div(RType),
Divu(RType),
Rem(RType),
Remu(RType),
Fence(FenceType),
FenceI,
Ecall,
Ebreak,
Uret,
Sret,
Mret,
Wfi,
SfenceVma(RType),
Csrrw(CsrType),
Csrrs(CsrType),
Csrrc(CsrType),
Csrrwi(CsrIType),
Csrrsi(CsrIType),
Csrrci(CsrIType),
Addiw(IType),
Slliw(ShiftType),
Srliw(ShiftType),
Sraiw(ShiftType),
Addw(RType),
Subw(RType),
Sllw(RType),
Srlw(RType),
Sraw(RType),
Mulw(RType),
Divw(RType),
Divuw(RType),
Remw(RType),
Remuw(RType),
Flw(IType),
Fsw(SType),
Fmadds(R4Type),
Fmsubs(R4Type),
Fnmsubs(R4Type),
Fnmadds(R4Type),
Fadds(RType),
Fsubs(RType),
Fmuls(RType),
Fdivs(RType),
Fsqrts(RType),
Fsgnjs(RType),
Fsgnjns(RType),
Fsgnjxs(RType),
Fmins(RType),
Fmaxs(RType),
Fcvtws(RType),
Fcvtwus(RType),
Fmvxw(RType),
Feqs(RType),
Flts(RType),
Fles(RType),
Fclasss(RType),
Fcvtsw(RType),
Fcvtswu(RType),
Fmvwx(RType),
Illegal,
// some variants omitted
}
Variants
Lui(UType)
Auipc(UType)
Jal(JType)
Jalr(IType)
Beq(BType)
Bne(BType)
Blt(BType)
Bge(BType)
Bltu(BType)
Bgeu(BType)
Lb(IType)
Lh(IType)
Lw(IType)
Lbu(IType)
Lhu(IType)
Lwu(IType)
Ld(IType)
Sb(SType)
Sh(SType)
Sw(SType)
Sd(SType)
Addi(IType)
Slti(IType)
Sltiu(IType)
Xori(IType)
Ori(IType)
Andi(IType)
Slli(ShiftType)
Srli(ShiftType)
Srai(ShiftType)
Add(RType)
Sub(RType)
Sll(RType)
Slt(RType)
Sltu(RType)
Xor(RType)
Srl(RType)
Sra(RType)
Or(RType)
And(RType)
Mul(RType)
Mulh(RType)
Mulhsu(RType)
Mulhu(RType)
Div(RType)
Divu(RType)
Rem(RType)
Remu(RType)
Fence(FenceType)
FenceI
Ecall
Ebreak
Uret
Sret
Mret
Wfi
SfenceVma(RType)
Csrrw(CsrType)
Csrrs(CsrType)
Csrrc(CsrType)
Csrrwi(CsrIType)
Csrrsi(CsrIType)
Csrrci(CsrIType)
Addiw(IType)
Slliw(ShiftType)
Srliw(ShiftType)
Sraiw(ShiftType)
Addw(RType)
Subw(RType)
Sllw(RType)
Srlw(RType)
Sraw(RType)
Mulw(RType)
Divw(RType)
Divuw(RType)
Remw(RType)
Remuw(RType)
Flw(IType)
Fsw(SType)
Fmadds(R4Type)
Fmsubs(R4Type)
Fnmsubs(R4Type)
Fnmadds(R4Type)
Fadds(RType)
Fsubs(RType)
Fmuls(RType)
Fdivs(RType)
Fsqrts(RType)
Fsgnjs(RType)
Fsgnjns(RType)
Fsgnjxs(RType)
Fmins(RType)
Fmaxs(RType)
Fcvtws(RType)
Fcvtwus(RType)
Fmvxw(RType)
Feqs(RType)
Flts(RType)
Fles(RType)
Fclasss(RType)
Fcvtsw(RType)
Fcvtswu(RType)
Fmvwx(RType)
Illegal
Trait Implementations
sourceimpl Clone for Instruction
impl Clone for Instruction
sourcefn clone(&self) -> Instruction
fn clone(&self) -> Instruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Instruction
impl Debug for Instruction
sourceimpl Hash for Instruction
impl Hash for Instruction
sourceimpl PartialEq<Instruction> for Instruction
impl PartialEq<Instruction> for Instruction
sourcefn eq(&self, other: &Instruction) -> bool
fn eq(&self, other: &Instruction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Instruction) -> bool
fn ne(&self, other: &Instruction) -> bool
This method tests for !=
.
impl Copy for Instruction
impl Eq for Instruction
impl StructuralEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more