Skip to main content

CFswEmitter

Trait CFswEmitter 

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

Store single-precision

Stores a single precision floating-point value in register rs2 to memory. It computes an effective address by adding the zero-extended offset, scaled by 4, to the base address in register rs1. It expands to fsw rs2, offset(rs1).

§Forms

Assembly: c.fsw xs2, imm(xs1) Rust: c_fsw(rs1, rs2, imm)

§Arguments

  • rs1 — Memory base register.
  • rs2 — Source register.
  • imm — Immediate encoding value.

Required Methods§

Source

fn c_fsw(&mut self, rs1: T0, rs2: 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>> CFswEmitter<Gp, Fp, U2> for Assembler<'_>