v_frexp_mant_f16 GPU Native ISA AMD Vector
V FREXP MANT F16 Vector Arithmetic
Extract the binary significand, or mantissa, of a half-precision float input and store the result as a half- precision float into a vector register.
Encoding
Operands
Operand details have not yet been curated for this instruction.
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx1100 | ✅ Supported |
This operation satisfies the invariant S0.f16 = significand * (2 ** exponent). Result range is in (-1.0,-0.5][0.5,1.0) in normal cases. See also V_FREXP_EXP_I16_F16, which returns integer exponent. See the C library function frexp() for more information.
Related
More in Vector Arithmetic
Reference
Semantics
Example
v_frexp_mant_f16 v5.l, s1A real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx11). Not from an AMD document, and not authored here.
Sources
- User Guide for AMDGPU Backend ↗ - LLVM Project
-
"AMD Instinct MI300" Instruction Set Architecture: Reference Guide ↗
- Advanced Micro Devices, Inc.
Reference Guide, page 207. - LLVM MC assembler tests for AMDGPU (gfx11) ↗ - LLVM Project