fabs.d

FP absolute value (double) Pseudo-instruction

Sets the first register to the absolute value of the double-precision value in the second.

RISC-V manual: fsgnjx.d

Forms

Operands

f1
Any floating-point register, f0 to f31, or its named alias, such as ft0, fa0 or ft11.
f2
A floating-point register. It may be the same register as f1.
.data
a: .double 6.0
.text
la t0, a
fld f1, 0(t0)
# f1 (ft1)=6; result in f3 (ft3) is 6.
fabs.d f3, f1