Does it raise integer exceptions?
No. Floating-point exceptions are recorded in fflags and results follow the floating-point rules.
Computes single-precision FP square root: rd = sqrt(rs1).
FSQRT.S computes sqrt of single-precision value in rs1; result to rd. R-type. Negative input produces canonical NaN and sets NV flag.
FSQRT.S is a floating-point arithmetic instruction. It uses the rm field for rounding mode and sets fflags exception flags according to IEEE 754/RISC-V floating-point rules.
Understand this scenario with real code like «fsqrt.s f0, f1 # f0 = sqrt(f1) (RNE)».
Understand this scenario with real code like «fsqrt.s f0, f1 # f0 = sqrt(f1) (RNE)».
No. Floating-point exceptions are recorded in fflags and results follow the floating-point rules.
Assemblers may provide a dynamic/default spelling, but the machine instruction contains a rounding-mode field.