frsr
Read FP control and status register
Reads the FP control and status register into a register, as an alias of frcsr.
Forms
-
Same as
frcsr t1.
Operands
t1- Any integer register,
x0tox31, or its named alias, such aszero,t0ort6.
# Initialize fcsr, then use frsr to read its old value or update it.
.text
li t3, 0
csrw t3, fcsr
frsr t1
# t1=0 because fcsr was cleared immediately above.