ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

flt.h

T1 riscv fp insn
Floating-Point Less Than 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 flt.h instruction writes 1 to _xd_ if the half-precision value in _fs1_ is less than that in _fs2_, and 0 otherwise. If either operand is NaN, the result is 0. If either operand is a NaN (signaling or quiet), the invalid flag is set.

Syntax / Encoding

flt.h xd, fs1, fs2 | 1010010xxxxxxxxxx001xxxxx1010011 (mask=0xfe00707f match=0xa4001053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV1010010xxxxxxxxxx001xxxxx10100110xfe00707f / 0xa4001053

Operands

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

Reference Notes

The `flt.h` instruction writes 1 to _xd_ if the half-precision value in _fs1_ is less than that in _fs2_, and 0 otherwise.
If either operand is NaN, the result is 0. If either operand is a NaN
(signaling or quiet), the invalid flag is set.