Atomic Read/Clear CSR Immediate: read from the CSR into t0 and clear bits of the CSR according to a constant
csrrci
Operands
reg, csr, immVariants
- Atomic Read/Clear CSR Immediate: read from the CSR into t0 and clear bits of the CSR according to a constant csrrci t0, fcsr, 10
# Initialize fcsr=1; csrrci returns old fcsr in t0 and leaves fcsr=0.
.text
li t3, 1
csrw t3, fcsr
csrrci t0, fcsr, 1