VFCLASS.V

Vector Float Classify

VFCLASS.V vd, vs2, vm

Classifies elements of a float vector (NaN, Inf, etc.).

Details

Classifies each floating-point element (NaN, infinity, zero, normal, subnormal, negative/positive), writing a bitmask classification to vd.

Pseudocode Operation

foreach(i < vl): vd[i] = classify(vs2[i]);

Example

VFCLASS.V v1, v4, v0.t

Encoding

Binary Layout
010011
31:26
vm
25
vs2
24:20
10000
19:15
001
14:12
vd
11:7
1010111
6:0
 
Format OPFVV
Opcode 0x57
Extension V

Operands

  • vd
    Dest (Mask Bits)
  • vs2
    Src Vector