Swap FP rounding mode
fsrm
Operands
reg, regVariants
- Swap FP rounding mode fsrm t1, t2
- Write FP rounding mode fsrm t1
# Initialize frm, then use fsrm to read its old value or update it.
.text
li t3, 0
csrw t3, frm
li t0, 1
fsrm t1, t0
# t1=0 is the old value; frm becomes 1.