pub trait SextBEmitter<T0, T1> {
// Required method
fn sext_b(&mut self, rd: T0, rs1: T1);
}Expand description
Sign-extend byte
This instruction sign-extends the least-significant byte in the source to XLEN by copying the most-significant bit in the byte (i.e., bit 7) to all of the more-significant bits.
§Forms
Assembly: sext.b xd, xs1
Rust: sext_b(rd, rs1)
§Arguments
rd— Destination register.rs1— Source register.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".