AMD (high performance)
Zen 4
AMD Zen 4 (2022) supports x86-64-v4.
- x86-64 level
- x86-64-v4
- Vendor
- AMD
- First products
- 2022
- Products
- Ryzen 7000 and 8000; EPYC 9004 and 8004
- Segments
- GCC target
-march=znver4- Optimization
- Optimizing code for Zen 4
Product lines
| Product line | Segment | Socket | Source |
|---|---|---|---|
| Ryzen 7000 | desktop | AM5 | amd.com |
| Ryzen 8000G | desktop | AM5 | amd.com |
| Ryzen 7040 | mobile | FP7, FP7r2, FP8 (BGA) | amd.com |
| Ryzen 7045HX | mobile | FL1 (BGA) | amd.com |
| Ryzen 8040 | mobile | FP7, FP7r2, FP8 (BGA) | amd.com |
| Ryzen 200 | mobile | FP7, FP7r2, FP8 (BGA) | amd.com |
| Ryzen Z1 | mobile | not stated | ir.amd.com |
| Ryzen Z2 | mobile | not stated | amd.com |
| Ryzen Threadripper 7000 | workstation | sTR5 | amd.com |
| Ryzen Threadripper PRO 7000 WX | workstation | sTR5 | amd.com |
| EPYC 9004 | server | SP5 | amd.com |
| EPYC 8004 | server | SP6 | amd.com |
| EPYC 4004 | server | AM5 | amd.com |
| Ryzen Embedded 7000 | embedded | AM5 | amd.com |
| EPYC Embedded 9004 | embedded | SP5 | amd.com |
| EPYC Embedded 8004 | embedded | SP6 | amd.com |
Feature checklist
| Feature | Zen 4 | Enumerated by | Linux flag |
|---|---|---|---|
| x86-64-v1 | |||
| CMOV | Yes | CPUID.01H:EDX[15] | cmov |
| CX8 | Yes | CPUID.01H:EDX[8] | cx8 |
| FPU | Yes | CPUID.01H:EDX[0] | fpu |
| FXSR | Yes | CPUID.01H:EDX[24] | fxsr |
| MMX | Yes | CPUID.01H:EDX[23] | mmx |
| OSFXSR via FXSR | Yes | CPUID.01H:EDX[24] | fxsr |
| SCE | Yes | CPUID.80000001H:EDX[11] | syscall |
| SSE | Yes | CPUID.01H:EDX[25] | sse |
| SSE2 | Yes | CPUID.01H:EDX[26] | sse2 |
| x86-64-v2 | |||
| CMPXCHG16B | Yes | CPUID.01H:ECX[13] | cx16 |
| LAHF-SAHF | Yes | CPUID.80000001H:ECX[0] | lahf_lm |
| POPCNT | Yes | CPUID.01H:ECX[23] | popcnt |
| SSE3 | Yes | CPUID.01H:ECX[0] | pni |
| SSE4.1 | Yes | CPUID.01H:ECX[19] | sse4_1 |
| SSE4.2 | Yes | CPUID.01H:ECX[20] | sse4_2 |
| SSSE3 | Yes | CPUID.01H:ECX[9] | ssse3 |
| x86-64-v3 | |||
| AVX | Yes | CPUID.01H:ECX[28] | avx |
| AVX2 | Yes | CPUID.(EAX=07H,ECX=0):EBX[5] | avx2 |
| BMI1 | Yes | CPUID.(EAX=07H,ECX=0):EBX[3] | bmi1 |
| BMI2 | Yes | CPUID.(EAX=07H,ECX=0):EBX[8] | bmi2 |
| F16C | Yes | CPUID.01H:ECX[29] | f16c |
| FMA | Yes | CPUID.01H:ECX[12] | fma |
| LZCNT | Yes | CPUID.80000001H:ECX[5] | abm |
| MOVBE | Yes | CPUID.01H:ECX[22] | movbe |
| OSXSAVE via XSAVE | Yes | CPUID.01H:ECX[26] | xsave |
| x86-64-v4 | |||
| AVX512F | Yes | CPUID.(EAX=07H,ECX=0):EBX[16] | avx512f |
| AVX512BW | Yes | CPUID.(EAX=07H,ECX=0):EBX[30] | avx512bw |
| AVX512CD | Yes | CPUID.(EAX=07H,ECX=0):EBX[28] | avx512cd |
| AVX512DQ | Yes | CPUID.(EAX=07H,ECX=0):EBX[17] | avx512dq |
| AVX512VL | Yes | CPUID.(EAX=07H,ECX=0):EBX[31] | avx512vl |
Other extensions
Notable extensions outside the x86-64 levels. Vendors sometimes disable these on individual models. Linked names lead to the extension's instructions.
- AES-NI
- PCLMULQDQ
- SHA
- RDRAND
- RDSEED
- ADX
- CLWB
- GFNI
- VAES
- VPCLMULQDQ
- SSE4a
- MONITORX
- CLZERO
- RDPRU
- INVLPGB
- SEV-SNP
- AVX512-IFMA
- AVX512-VBMI
- AVX512-VBMI2
- AVX512-VNNI
- AVX512-BITALG
- AVX512-VPOPCNTDQ
- AVX512-BF16
Known vulnerabilities
The CVEs that the sources of the vulnerability list name as affecting Zen 4, in all of its models or in some of them.
- CVE-2025-54509 AMD Secure Processor and SMU firmware: Non-coherent Secure Processor memory access
- CVE-2025-54502 AMD AGESA, SMM and BIOS firmware: LocateProtocol in the APCB SMM driver
- CVE-2025-40300 VMSCAPE
- CVE-2025-29943 AMD SEV, SEV-ES and SEV-SNP: SEV-SNP guest stack pointer corruption Some models
- CVE-2025-29934 AMD SEV, SEV-ES and SEV-SNP: Stale TLB entries in SEV-SNP guests Some models
- CVE-2025-0033 AMD SEV, SEV-ES and SEV-SNP: RMP corruption during SNP initialization Some models
- CVE-2024-56161 Microcode Signature Verification: Microcode Signature Verification: SEV-SNP Some models
- CVE-2024-36350 Transient Scheduler Attacks: Transient Scheduler Attack on the store queue Some models
- CVE-2024-36347 Microcode Signature Verification Some models
- CVE-2024-21944 AMD SEV, SEV-ES and SEV-SNP: Memory aliasing through DIMM SPD data
- CVE-2024-21925 AMD AGESA, SMM and BIOS firmware: AmdPspP2CmboxV2 input validation
- CVE-2024-21924 AMD AGESA, SMM and BIOS firmware: SMM callout in AmdPlatformRasSspSmm
- CVE-2024-0179 AMD AGESA, SMM and BIOS firmware: SMM callout in AmdCpmDisplayFeatureSMM
- CVE-2023-31364 AMD processor errata: Guest-initiated machine check errors Some models
- CVE-2023-31315 AMD AGESA, SMM and BIOS firmware: SMM lock bypass
- CVE-2023-20596 AMD AGESA, SMM and BIOS firmware: SMM Supervisor initialization
- CVE-2023-20575 AMD SEV, SEV-ES and SEV-SNP: Power side channel on SEV guests
- CVE-2023-20569 Speculative Return Stack Overflow
- CVE-2023-20555 AMD AGESA, SMM and BIOS firmware: CpmDisplayFeatureSmm bit overwrite
- CVE-2022-23829 AMD AGESA, SMM and BIOS firmware: SPI lock bypass
- CVE-2021-46778 Execution Unit Scheduler Contention Some models
- CVE-2017-5753 Spectre variant 1: Bounds Check Bypass
- CVE-2017-5715 Spectre variant 2: Branch Target Injection
Other AMD (high performance) microarchitectures
Sources
- GCC -march=znver4 feature set (PTA_ZNVER4)
- AMD PPR for Family 19h Model 11h, Revision B1 Processors (55901, rev. 0.53, May 2023), Wayback Machine copy: INVLPGB, SEV-SNP and MCOMMIT, which GCC’s -march sets leave out: the EPYC 9004 server processors set
CPUID_Fn80000008_EBX[INVLPGB](bit 3) and RDPRU (bit 4) and defineCPUID_Fn8000001F_EAX[SNP](bit 4), whose value varies by part, but[MCOMMIT](bit 8) resets to 0, as in the references of the Ryzen 7000 and 8000 processors.