Skip to main content

broadcast_ps

Function broadcast_ps 

Source
pub unsafe fn broadcast_ps(scalar: f32, dest: u8)
Expand description

Broadcast scalar to all eight lanes of PS register dest (0..=31).

Issues fmv.x.w to move the scalar’s IEEE-754 bit pattern into a temporary integer register, then FBCX.PS f{dest}, tmp (MATCH_FBCX_PS = 0x0000_300b; I-type, opcode=0x0b, funct3=3, imm=0).

After this call, f{dest} holds [scalar; 8] in PS interpretation, ready to be used as the scratch argument of fmul_ps_row or scale_c_row.

§Safety

Requires the f target feature (guaranteed by the module gate). dest must not hold live C-tile data that must be preserved; if it does, spill and restore it around this call (see module doc).