Extensions
Forms
6 (6 EVEX)
Data
Intel XED v2026.08.23

VCVTHF82PH widens E4M3 values to half precision. Every E4M3 number, denormals included, is a normal half or a zero, since FP16’s exponents reach down to 2^-14 and its 10 fraction bits hold E4M3’s 3, so the result is exact: no rounding, no flag, no exception, MXCSR unused. The bytes come from the low half of the source: 32 bytes from a ymm register or memory give 32 halves in a zmm register, and the 128-bit form reads 8 bytes, an m64. There is no broadcast form. It belongs to AVX10.2, opcode 1Eh with the F2 prefix in EVEX map 5, with a write mask of one bit per half. VCVTPH2HF8 converts the other way, rounding.

Some values

E4M3’s largest number, 448 (7Eh), becomes 5F00h, and its smallest denormal, 2^-9 (01h), becomes 1800h, a normal half. The NaN, 7Fh, becomes 7F80h, a quiet half NaN, and FFh becomes FF80h. A conversion to E4M3 and back with this instruction therefore rounds a half to E4M3’s precision, except that values too large, and infinities, come back as NaN.

No E5M2 counterpart

There is no instruction for E5M2, since an E5M2 byte is the upper byte of the half it stands for: Clang 23 compiles _mm512_cvtbf8_ph to VPMOVZXBW and vpsllw zmm0, zmm0, 8, while _mm512_cvthf8_ph gives vcvthf82ph zmm0, ymm0. GCC 14 rejects -mavx10.2. ACE adds conversions of both 8-bit formats to singles, VCVTHF82PS and VCVTBF82PS.

Its exception class

Revision 7.0 of the AVX10.2 specification moved the instruction from exception class E2 to E4, because it raises no SIMD floating-point exception and leaves MXCSR alone. The two classes differ in E2’s #XM, which this exact conversion never raises, and in E4’s #UD for an EVEX.b that the instruction gives no meaning, which matters here, as there is no broadcast. The ACE specification, version 1.16.2, still lists the instruction under E2 in its table of classes, and its revision 1.14 calls that a correction. No AVX10.2 processor appears in this site’s recorded cases.

Forms

Every encoding of VCVTHF82PH that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VCVTHF82PH xmm {k}{z}, xmm VCVTHF82PH_XMMf16_MASKmskw_XMMhf8_AVX512EVEX.128.F2.MAP5.W0 1E /rAVX10.2 or AVX10_V1_AUX
VCVTHF82PH xmm {k}{z}, m64 VCVTHF82PH_XMMf16_MASKmskw_MEMhf8_AVX512EVEX.128.F2.MAP5.W0 1E /rAVX10.2 or AVX10_V1_AUX
VCVTHF82PH ymm {k}{z}, xmm VCVTHF82PH_YMMf16_MASKmskw_XMMhf8_AVX512EVEX.256.F2.MAP5.W0 1E /rAVX10.2 or AVX10_V1_AUX
VCVTHF82PH ymm {k}{z}, m128 VCVTHF82PH_YMMf16_MASKmskw_MEMhf8_AVX512EVEX.256.F2.MAP5.W0 1E /rAVX10.2 or AVX10_V1_AUX
VCVTHF82PH zmm {k}{z}, ymm VCVTHF82PH_ZMMf16_MASKmskw_YMMhf8_AVX512EVEX.512.F2.MAP5.W0 1E /rAVX10.2 or AVX10_V1_AUX
VCVTHF82PH zmm {k}{z}, m256 VCVTHF82PH_ZMMf16_MASKmskw_MEMhf8_AVX512EVEX.512.F2.MAP5.W0 1E /rAVX10.2 or AVX10_V1_AUX

Data flow

Where the elements of the sources go, element 0 on the right; results that depend on a control value are drawn for an example. How to read.

Widen: each byte becomes a half, converted, in the same order.
VCVTHF82PH: each element widenedResult halves 15 to 0: a15, unchanged (bit 14 of k1 is 0), a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3, a2, a1, a0.0123456789101112131415xmm2or m128a1111111111111110k1a0a1a2a3a4a5a6a7a8a9a10a11a12a13a15ymm1

Shown for the ymm form; the xmm and zmm forms work the same on 8 and 32 bytes. The forms write under a mask: where its bit is 0, the element keeps its old value, or zeroes it with {z}.

Result halves 15 to 0: a15, unchanged (bit 14 of k1 is 0), a13, a12, a11, a10, a9, a8, a7, a6, a5, a4, a3, a2, a1, a0.

Operation

What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.

for i in range(VL // 16):
    if k1[i]:
        zmm1.f16[i] = to_f16(src2.hf8[i])
    elif zeroing:
        zmm1.f16[i] = 0
    # else: zmm1.f16[i] keeps its value
# HF8: exact, no flags; MXCSR unused
# zmm1 is zeroed from bit VL up

Not run on a processor: none of these processors has AVX10.2. The tests check its arithmetic against MPFR.

Operands

What each form reads and writes, as Intel XED records it: the operands of its syntax, in order, and the implicit ones that the syntax does not name. How to read.
OperandKindAction
VCVTHF82PH xmm {k}{z}, xmm/m64 VCVTHF82PH ymm {k}{z}, xmm/m128 VCVTHF82PH zmm {k}{z}, ymm/m256
xmm, ymm, zmmexplicitwrite (masked)
{k}explicitread (write mask)
xmm/m64, xmm/m128, ymm/m256explicitread

Flags

None: XED records no flag that the forms test or change.

Exceptions

The exception class is XED's name for the set of exception conditions that a form follows. How to read.

All forms
AVX512-E4

Attributes

What else XED records about the forms. How to read.

All forms
write masking; always rounds to nearest even
Memory forms
memory fault suppression

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to VCVTHF82PH, each with the form it compiles to and the Clang options it needs. The forms come from compiling every intrinsic and decoding the result with Intel XED; all intrinsics A–Z explains the method.

IntrinsicCompiles to
_mm_cvthf8_ph __m128h _mm_cvthf8_ph(__m128i __A)

VCVTHF82PH xmm, xmm EVEX.128 -mavx10.2

_mm_mask_cvthf8_ph __m128h _mm_mask_cvthf8_ph(__m128h __W, __mmask8 __U, __m128i __A)

VCVTHF82PH xmm {k}, xmm EVEX.128 -mavx10.2

_mm_maskz_cvthf8_ph __m128h _mm_maskz_cvthf8_ph(__mmask8 __U, __m128i __A)

VCVTHF82PH xmm {k}{z}, xmm EVEX.128 -mavx10.2

_mm256_cvthf8_ph __m256h _mm256_cvthf8_ph(__m128i __A)

VCVTHF82PH ymm, xmm EVEX.256 -mavx10.2

_mm256_mask_cvthf8_ph __m256h _mm256_mask_cvthf8_ph(__m256h __W, __mmask16 __U, __m128i __A)

VCVTHF82PH ymm {k}, xmm EVEX.256 -mavx10.2

_mm256_maskz_cvthf8_ph __m256h _mm256_maskz_cvthf8_ph(__mmask16 __U, __m128i __A)

VCVTHF82PH ymm {k}{z}, xmm EVEX.256 -mavx10.2

_mm512_cvthf8_ph __m512h _mm512_cvthf8_ph(__m256i __A)

VCVTHF82PH zmm, ymm EVEX.512 -mavx10.2

_mm512_mask_cvthf8_ph __m512h _mm512_mask_cvthf8_ph(__m512h __W, __mmask32 __U, __m256i __A)

VCVTHF82PH zmm {k}, ymm EVEX.512 -mavx10.2

_mm512_maskz_cvthf8_ph __m512h _mm512_maskz_cvthf8_ph(__mmask32 __U, __m256i __A)

VCVTHF82PH zmm {k}{z}, ymm EVEX.512 -mavx10.2

CPUID and processors

Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.
ISA setCPUIDProcessors
AVX512_FP8_CONVERT_128

AVX10.2
CPUID.(EAX=07H,ECX=1):EDX[19] AVX10
CPUID.(EAX=24H,ECX=0):EBX[7:0] ≥ 2 AVX10 version

or

AVX10_V1_AUX
CPUID.(EAX=24H,ECX=1):ECX[2] AVX10_V1_AUX

Nova Lake, Diamond Rapids
AVX512_FP8_CONVERT_256
Same as AVX512_FP8_CONVERT_128Same as AVX512_FP8_CONVERT_128
AVX512_FP8_CONVERT_512
Same as AVX512_FP8_CONVERT_128Same as AVX512_FP8_CONVERT_128

More AVX10.2 instructions

All 96 AVX10.2 instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. Clang's x86 intrinsic headers, LLVM 23.1.2 (commit 85ac56026243): the intrinsics, their signatures and doc comments, and the Clang of that release, which compiled each of them.
  3. Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
  4. x86 Ecosystem Advisory Group: AI Compute Extensions (ACE) Specification, version 1.16.2 (July 2026)

The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The intrinsics and their signatures come from Clang, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.