csrc

Clear bits in control and status register Pseudo-instruction

Clears the CSR bits that are set in t1, leaving the other bits unchanged.

RISC-V manual: csrrc

Forms

Operands

t1
Any integer register, x0 to x31, or its named alias, such as zero, t0 or t6.
csr
A control and status register, written by name or number, such as fcsr, fflags, frm, cycle, time, instret, ustatus, uepc, ucause or utval. See the supported registers.
# Initialize fcsr to 1, apply csrc with mask 1, then read fcsr into t2 (0).
.text
li t3, 1
csrw t3, fcsr
li t1, 1
csrc t1, fcsr
csrr t2, fcsr