frrm

Read FP rounding mode Pseudo-instruction

Reads the FP rounding mode into t1.

RISC-V manual: csrrs

Forms

Operands

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