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

feq.h

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

Summary

The feq.h instruction writes 1 to _xd_ if the half-precision values in _fs1_ and _fs2_ are equal, and 0 otherwise. If either operand is NaN, the result is 0 (not equal). If either operand is a signaling NaN, the invalid flag is set. Positive zero is considered equal to negative zero.

Syntax / Encoding

feq.h xd, fs1, fs2 | 1010010xxxxxxxxxx010xxxxx1010011 (mask=0xfe00707f match=0xa4002053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV1010010xxxxxxxxxx010xxxxx10100110xfe00707f / 0xa4002053

Operands

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

Reference Notes

The `feq.h` instruction writes 1 to _xd_ if the half-precision values in _fs1_ and _fs2_ are equal, and 0 otherwise.
If either operand is NaN, the result is 0 (not equal). If either operand is a signaling NaN,
the invalid flag is set. Positive zero is considered equal to negative zero.