Skip to main content

BsetiEmitter

Trait BsetiEmitter 

Source
pub trait BsetiEmitter<T0, T1, T2> {
    // Required method
    fn bseti(&mut self, rd: T0, rs1: T1, shamtd: T2);
}
Expand description

Single-Bit set (Immediate)

This instruction returns rs1 with a single bit set at the index specified in shamt. The index is read from the lower log2(XLEN) bits of shamt. For RV32, the encodings corresponding to shamt[5]=1 are reserved.

§Forms

Assembly: bseti xd, xs1, shamt Rust: bseti(rd, rs1, shamtd)

§Arguments

  • rd — Destination register.
  • rs1 — Source register.
  • shamtd — Immediate encoding value.

Required Methods§

Source

fn bseti(&mut self, rd: T0, rs1: T1, shamtd: T2)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<U2: Into<Imm>> BsetiEmitter<Gp, Gp, U2> for Assembler<'_>