frcsr

Read FP CSR Pseudo-instruction

Reads the FP control and status register (fcsr) into t1.

Also written as: frsr

Forms

Operands

t1
Any integer register, x0 to x31, or its named alias, such as zero, t0 or t6.
# Initialize fcsr, then use frcsr to read its old value or update it.
.text
li t3, 0
csrw t3, fcsr
frcsr t1
# t1=0 because fcsr was cleared immediately above.