Does FCLASS.Q set NV?
No. The official FCLASS semantics state that it does not set floating-point exception flags, even when the source is NaN.
quad-precision floating-point classify; writes a 10-bit one-hot class mask to integer rd.
FCLASS.Q classifies the quad-precision floating-point value in f[rs1] and writes a 10-bit one-hot mask to integer register rd. The encoding uses the OP-FP opcode, funct5=11100, fmt=Q(11), rs2=00000, and funct3=001; it does not round, compare magnitudes, or set fflags.
Shows the Q-extension quad-precision OP-FP flow: decode fields, read FP operands, perform FCLASS semantics, then write rd.
The word is split as an R-type OP-FP instruction; quad-precision OP-FP instructions use opcode 1010011.
FCLASS writes a 10-bit one-hot class mask and clears the other rd bits; classifying NaNs does not set FP exception flags. The text NaN example is shown as quiet NaN; the official signaling-NaN bit is bit 8.
FCLASS writes a 10-bit one-hot class mask and clears the other rd bits; classifying NaNs does not set FP exception flags. The text NaN example is shown as quiet NaN; the official signaling-NaN bit is bit 8.
This animation shows only Q-extension ISA-visible OP-FP encoding, example numeric results, and fflags relationship; it does not model FPU pipelines, latency, every IEEE 754 corner case, or microarchitecture.
FCLASS.Q does not produce an FP result; it reads one quad-precision FP source and writes the official 10-class one-hot mask to integer rd.
Understand this scenario with real code like «fclass.q x10, f0 # x10 = class of f0».
Understand this scenario with real code like «fclass.q x10, f0 # x10 = class of f0».
No. The official FCLASS semantics state that it does not set floating-point exception flags, even when the source is NaN.
No. The result is a 10-bit one-hot class mask representing the specific FP class.
The assembly syntax has only rd and rs1; the encoded rs2 field is fixed to 00000.