fsw

Operands

freg, [imm(reg) / (reg) / imm / id / %lo(id)], [reg / (reg)]

Store a float to memory

Variants

  • Store a float to memory fsw f1, -100(t1)
  • Store Word Coprocessor 1 : Store 32-bit value from f1 to effective memory word address fsw f1,(t2)
  • Store Word Coprocessor 1 : Store 32-bit value from f1 to effective memory word address fsw f1,-100
  • Store Word Coprocessor 1 : Store 32-bit value from f1 to effective memory word address using t3 as a temporary fsw f1,10000000,t3
  • Store Word Coprocessor 1 : Store 32-bit value from f1 to effective memory word address using t3 as a temporary fsw f1,label, t3
  • Store to Address fsw f1,%lo(label)(t2)
# value is initialized and naturally aligned for this operation.
.data
value: .word 0
.text
la t0, value
li t1, 42
fcvt.s.w f1, t1
# Store 42.0 (bytes 00 00 28 42) at value; inspect Memory.
fsw f1, 0(t0)