Skip to main content

FlhEmitter

Trait FlhEmitter 

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

Half-precision floating-point load

The flh instruction loads a single-precision floating-point value from memory at address rs1 + imm into floating-point register rd.

flh does not modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.

flh is only guaranteed to execute atomically if the effective address is naturally aligned.

§Forms

Assembly: flh fd, imm(xs1) Rust: flh(rd, rs1, imm)

§Arguments

  • rd — Destination register.
  • rs1 — Memory base register.
  • imm — Immediate encoding value.

Required Methods§

Source

fn flh(&mut self, rd: T0, rs1: T1, imm: 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>> FlhEmitter<Fp, Gp, U2> for Assembler<'_>