ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 903 microarchs · 15,772 chips · 105 sources
Arch:
Tier:

feq.q

T1 riscv fp insn
Floating-Point Equal Quad-Precision
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Q
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsQ

Summary

The feq.q performs the specified comparison between floating-point registers fs1 and fs2, and writes 1 to integer register xd if the conditon hold, and 0 otherwise.

Syntax / Encoding

feq.q xd, fs1, fs2 | 1010011xxxxxxxxxx010xxxxx1010011 (mask=0xfe00707f match=0xa6002053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV1010011xxxxxxxxxx010xxxxx10100110xfe00707f / 0xa6002053

Operands

NameDescription
fs2bits [24:20]
fs1bits [19:15]
xdbits [11:7]

Reference Notes

The `feq.q` performs the specified comparison between floating-point registers `fs1` and `fs2`,
and writes 1 to integer register `xd` if the conditon hold, and 0 otherwise.

`feq.q` performs a quiet comparison:
it only sets the invalid operation exception flag if either input is a signaling _NaN_.
The result is 0 if either operand is _NaN_.