Skip to main content

CLiEmitter

Trait CLiEmitter 

Source
pub trait CLiEmitter<T0, T1> {
    // Required method
    fn c_li(&mut self, rd: T0, imm: T1);
}
Expand description

Load the sign-extended 6-bit immediate

C.LI loads the sign-extended 6-bit immediate, imm, into register rd. C.LI expands into addi rd, x0, imm. C.LI is only valid when rd ≠ x0; the code points with rd=x0 encode HINTs.

§Forms

Assembly: c.li xd, imm Rust: c_li(rd, imm)

§Arguments

  • rd — Destination register.
  • imm — Immediate encoding value.

Required Methods§

Source

fn c_li(&mut self, rd: T0, imm: T1)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<U1: Into<Imm>> CLiEmitter<Gp, U1> for Assembler<'_>