Instruction
CRC32
Accumulates a CRC-32C checksum (Castagnoli polynomial) over a 1-, 2-, 4- or 8-byte operand.
- Extensions
- Forms
- 8 (4 Legacy, 4 EVEX)
- Data
- Intel XED v2026.08.23
Forms
| Instruction | Encoding | Requires |
|---|---|---|
CRC32 r32/64, m8
CRC32_GPRyy_MEMb | F2 0F 38 F0 /r | SSE4.2 |
CRC32 r32/64, r8
CRC32_GPRyy_GPR8b | F2 0F 38 F0 /r | SSE4.2 |
CRC32 r32/64, m16/32/64
CRC32_GPRyy_MEMv | F2 0F 38 F1 /r | SSE4.2 |
CRC32 r32/64, r16/32/64
CRC32_GPRyy_GPRv | F2 0F 38 F1 /r | SSE4.2 |
CRC32 r32/64, r8
CRC32_GPRy_GPR8i8_APX | EVEX.LLZ.NP.MAP4.SCALABLE F0 /r | APX_F |
CRC32 r32/64, m8
CRC32_GPRy_MEMi8_APX | EVEX.LLZ.NP.MAP4.SCALABLE F0 /r | APX_F |
CRC32 r32/64, r16/32/64
CRC32_GPRy_GPRv_APX | EVEX.LLZ.NP.MAP4.SCALABLE F1 /r | APX_F |
CRC32 r32/64, m16/32/64
CRC32_GPRy_MEMv_APX | EVEX.LLZ.NP.MAP4.SCALABLE F1 /r | APX_F |
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to CRC32, 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.
| Intrinsic | Compiles to |
|---|---|
__crc32b
unsigned int __crc32b(unsigned int __C, unsigned char __D) |
|
__crc32d
unsigned int __crc32d(unsigned int __C, unsigned int __D) |
|
__crc32q
unsigned long long __crc32q(unsigned long long __C, unsigned long long __D) |
|
__crc32w
unsigned int __crc32w(unsigned int __C, unsigned short __D) |
|
_mm_crc32_u16
unsigned int _mm_crc32_u16(unsigned int __C, unsigned short __D) |
|
_mm_crc32_u32
unsigned int _mm_crc32_u32(unsigned int __C, unsigned int __D) |
|
_mm_crc32_u64
unsigned long long _mm_crc32_u64(unsigned long long __C, unsigned long long __D) |
|
_mm_crc32_u8
unsigned int _mm_crc32_u8(unsigned int __C, unsigned char __D) |
|
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.
| ISA set | CPUID | Processors in XED |
|---|---|---|
SSE42 | SSE4.2 | Nehalem, Westmere, Sandy Bridge, Ivy Bridge, Haswell, Broadwell, Skylake, Comet Lake, Cannon Lake, Ice Lake (client), Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Silvermont, Goldmont, Goldmont Plus, Tremont, Snow Ridge, Lakefield, Sierra Forest, Clearwater Forest, Knights Landing, Knights Mill, K10 (Family 10h), Bulldozer, Piledriver, Zen, Zen+, Zen 2 Note: XED's AMD_K10 inherits everything from its Westmere chip, including SSSE3, SSE4.1, SSE4.2, AES-NI and PCLMULQDQ; GCC's -march=amdfam10 has none of them. |
APX_F | APX_F | Nova Lake, Diamond Rapids |
More APX instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, ISA sets, CPUID bits and chip model. - 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. - Intel Advanced Performance Extensions (Intel APX) Architecture Specification, revision 7.0 (July 2025)
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.