From 6ceeed2506a745584c8b78f20667a2afecefb6cb Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 5 Jul 2022 08:40:09 +0200 Subject: [PATCH] x86: macro-ize cpu_arch[] entries Putting individual elements behind macros, besides (imo) improving readability, will make subsequent (and likely also future) changes less intrusive. Utilize this right away to pack the table a little more tightly, by converting "skip" to bool and putting it earlier in a group of bitfields together with "len". --- gas/config/tc-i386.c | 472 +++++++++++++++---------------------------- 1 file changed, 164 insertions(+), 308 deletions(-) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e3501b2728a..0a471d19e30 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -126,10 +126,10 @@ sib_byte; typedef struct { const char *name; /* arch name */ - unsigned int len; /* arch string length */ + unsigned int len:8; /* arch string length */ + bool skip:1; /* show_arch should skip this. */ enum processor_type type; /* arch type */ i386_cpu_flags flags; /* cpu feature flags */ - unsigned int skip; /* show_arch should skip this. */ } arch_entry; @@ -931,318 +931,174 @@ const relax_typeS md_relax_table[] = {0, 0, 4, 0} }; +#define ARCH(n, t, f, s) \ + { STRING_COMMA_LEN (#n), s, PROCESSOR_ ## t, CPU_ ## f ## _FLAGS } +#define SUBARCH(n, e, s) \ + { STRING_COMMA_LEN ("." #n), s, PROCESSOR_UNKNOWN, CPU_ ## e ## _FLAGS } + static const arch_entry cpu_arch[] = { /* Do not replace the first two entries - i386_target_format() relies on them being there in this order. */ - { STRING_COMMA_LEN ("generic32"), PROCESSOR_GENERIC32, - CPU_GENERIC32_FLAGS, 0 }, - { STRING_COMMA_LEN ("generic64"), PROCESSOR_GENERIC64, - CPU_GENERIC64_FLAGS, 0 }, - { STRING_COMMA_LEN ("i8086"), PROCESSOR_UNKNOWN, - CPU_NONE_FLAGS, 0 }, - { STRING_COMMA_LEN ("i186"), PROCESSOR_UNKNOWN, - CPU_I186_FLAGS, 0 }, - { STRING_COMMA_LEN ("i286"), PROCESSOR_UNKNOWN, - CPU_I286_FLAGS, 0 }, - { STRING_COMMA_LEN ("i386"), PROCESSOR_I386, - CPU_I386_FLAGS, 0 }, - { STRING_COMMA_LEN ("i486"), PROCESSOR_I486, - CPU_I486_FLAGS, 0 }, - { STRING_COMMA_LEN ("i586"), PROCESSOR_PENTIUM, - CPU_I586_FLAGS, 0 }, - { STRING_COMMA_LEN ("i686"), PROCESSOR_PENTIUMPRO, - CPU_I686_FLAGS, 0 }, - { STRING_COMMA_LEN ("pentium"), PROCESSOR_PENTIUM, - CPU_I586_FLAGS, 0 }, - { STRING_COMMA_LEN ("pentiumpro"), PROCESSOR_PENTIUMPRO, - CPU_PENTIUMPRO_FLAGS, 0 }, - { STRING_COMMA_LEN ("pentiumii"), PROCESSOR_PENTIUMPRO, - CPU_P2_FLAGS, 0 }, - { STRING_COMMA_LEN ("pentiumiii"),PROCESSOR_PENTIUMPRO, - CPU_P3_FLAGS, 0 }, - { STRING_COMMA_LEN ("pentium4"), PROCESSOR_PENTIUM4, - CPU_P4_FLAGS, 0 }, - { STRING_COMMA_LEN ("prescott"), PROCESSOR_NOCONA, - CPU_CORE_FLAGS, 0 }, - { STRING_COMMA_LEN ("nocona"), PROCESSOR_NOCONA, - CPU_NOCONA_FLAGS, 0 }, - { STRING_COMMA_LEN ("yonah"), PROCESSOR_CORE, - CPU_CORE_FLAGS, 1 }, - { STRING_COMMA_LEN ("core"), PROCESSOR_CORE, - CPU_CORE_FLAGS, 0 }, - { STRING_COMMA_LEN ("merom"), PROCESSOR_CORE2, - CPU_CORE2_FLAGS, 1 }, - { STRING_COMMA_LEN ("core2"), PROCESSOR_CORE2, - CPU_CORE2_FLAGS, 0 }, - { STRING_COMMA_LEN ("corei7"), PROCESSOR_COREI7, - CPU_COREI7_FLAGS, 0 }, - { STRING_COMMA_LEN ("iamcu"), PROCESSOR_IAMCU, - CPU_IAMCU_FLAGS, 0 }, - { STRING_COMMA_LEN ("k6"), PROCESSOR_K6, - CPU_K6_FLAGS, 0 }, - { STRING_COMMA_LEN ("k6_2"), PROCESSOR_K6, - CPU_K6_2_FLAGS, 0 }, - { STRING_COMMA_LEN ("athlon"), PROCESSOR_ATHLON, - CPU_ATHLON_FLAGS, 0 }, - { STRING_COMMA_LEN ("sledgehammer"), PROCESSOR_K8, - CPU_K8_FLAGS, 1 }, - { STRING_COMMA_LEN ("opteron"), PROCESSOR_K8, - CPU_K8_FLAGS, 0 }, - { STRING_COMMA_LEN ("k8"), PROCESSOR_K8, - CPU_K8_FLAGS, 0 }, - { STRING_COMMA_LEN ("amdfam10"), PROCESSOR_AMDFAM10, - CPU_AMDFAM10_FLAGS, 0 }, - { STRING_COMMA_LEN ("bdver1"), PROCESSOR_BD, - CPU_BDVER1_FLAGS, 0 }, - { STRING_COMMA_LEN ("bdver2"), PROCESSOR_BD, - CPU_BDVER2_FLAGS, 0 }, - { STRING_COMMA_LEN ("bdver3"), PROCESSOR_BD, - CPU_BDVER3_FLAGS, 0 }, - { STRING_COMMA_LEN ("bdver4"), PROCESSOR_BD, - CPU_BDVER4_FLAGS, 0 }, - { STRING_COMMA_LEN ("znver1"), PROCESSOR_ZNVER, - CPU_ZNVER1_FLAGS, 0 }, - { STRING_COMMA_LEN ("znver2"), PROCESSOR_ZNVER, - CPU_ZNVER2_FLAGS, 0 }, - { STRING_COMMA_LEN ("znver3"), PROCESSOR_ZNVER, - CPU_ZNVER3_FLAGS, 0 }, - { STRING_COMMA_LEN ("btver1"), PROCESSOR_BT, - CPU_BTVER1_FLAGS, 0 }, - { STRING_COMMA_LEN ("btver2"), PROCESSOR_BT, - CPU_BTVER2_FLAGS, 0 }, - { STRING_COMMA_LEN (".8087"), PROCESSOR_UNKNOWN, - CPU_8087_FLAGS, 0 }, - { STRING_COMMA_LEN (".287"), PROCESSOR_UNKNOWN, - CPU_287_FLAGS, 0 }, - { STRING_COMMA_LEN (".387"), PROCESSOR_UNKNOWN, - CPU_387_FLAGS, 0 }, - { STRING_COMMA_LEN (".687"), PROCESSOR_UNKNOWN, - CPU_687_FLAGS, 0 }, - { STRING_COMMA_LEN (".cmov"), PROCESSOR_UNKNOWN, - CPU_CMOV_FLAGS, 0 }, - { STRING_COMMA_LEN (".fxsr"), PROCESSOR_UNKNOWN, - CPU_FXSR_FLAGS, 0 }, - { STRING_COMMA_LEN (".mmx"), PROCESSOR_UNKNOWN, - CPU_MMX_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse"), PROCESSOR_UNKNOWN, - CPU_SSE_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse2"), PROCESSOR_UNKNOWN, - CPU_SSE2_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse3"), PROCESSOR_UNKNOWN, - CPU_SSE3_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse4a"), PROCESSOR_UNKNOWN, - CPU_SSE4A_FLAGS, 0 }, - { STRING_COMMA_LEN (".ssse3"), PROCESSOR_UNKNOWN, - CPU_SSSE3_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse4.1"), PROCESSOR_UNKNOWN, - CPU_SSE4_1_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse4.2"), PROCESSOR_UNKNOWN, - CPU_SSE4_2_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse4"), PROCESSOR_UNKNOWN, - CPU_SSE4_2_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx"), PROCESSOR_UNKNOWN, - CPU_AVX_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx2"), PROCESSOR_UNKNOWN, - CPU_AVX2_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512f"), PROCESSOR_UNKNOWN, - CPU_AVX512F_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512cd"), PROCESSOR_UNKNOWN, - CPU_AVX512CD_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512er"), PROCESSOR_UNKNOWN, - CPU_AVX512ER_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512pf"), PROCESSOR_UNKNOWN, - CPU_AVX512PF_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512dq"), PROCESSOR_UNKNOWN, - CPU_AVX512DQ_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512bw"), PROCESSOR_UNKNOWN, - CPU_AVX512BW_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512vl"), PROCESSOR_UNKNOWN, - CPU_AVX512VL_FLAGS, 0 }, - { STRING_COMMA_LEN (".vmx"), PROCESSOR_UNKNOWN, - CPU_VMX_FLAGS, 0 }, - { STRING_COMMA_LEN (".vmfunc"), PROCESSOR_UNKNOWN, - CPU_VMFUNC_FLAGS, 0 }, - { STRING_COMMA_LEN (".smx"), PROCESSOR_UNKNOWN, - CPU_SMX_FLAGS, 0 }, - { STRING_COMMA_LEN (".xsave"), PROCESSOR_UNKNOWN, - CPU_XSAVE_FLAGS, 0 }, - { STRING_COMMA_LEN (".xsaveopt"), PROCESSOR_UNKNOWN, - CPU_XSAVEOPT_FLAGS, 0 }, - { STRING_COMMA_LEN (".xsavec"), PROCESSOR_UNKNOWN, - CPU_XSAVEC_FLAGS, 0 }, - { STRING_COMMA_LEN (".xsaves"), PROCESSOR_UNKNOWN, - CPU_XSAVES_FLAGS, 0 }, - { STRING_COMMA_LEN (".aes"), PROCESSOR_UNKNOWN, - CPU_AES_FLAGS, 0 }, - { STRING_COMMA_LEN (".pclmul"), PROCESSOR_UNKNOWN, - CPU_PCLMUL_FLAGS, 0 }, - { STRING_COMMA_LEN (".clmul"), PROCESSOR_UNKNOWN, - CPU_PCLMUL_FLAGS, 1 }, - { STRING_COMMA_LEN (".fsgsbase"), PROCESSOR_UNKNOWN, - CPU_FSGSBASE_FLAGS, 0 }, - { STRING_COMMA_LEN (".rdrnd"), PROCESSOR_UNKNOWN, - CPU_RDRND_FLAGS, 0 }, - { STRING_COMMA_LEN (".f16c"), PROCESSOR_UNKNOWN, - CPU_F16C_FLAGS, 0 }, - { STRING_COMMA_LEN (".bmi2"), PROCESSOR_UNKNOWN, - CPU_BMI2_FLAGS, 0 }, - { STRING_COMMA_LEN (".fma"), PROCESSOR_UNKNOWN, - CPU_FMA_FLAGS, 0 }, - { STRING_COMMA_LEN (".fma4"), PROCESSOR_UNKNOWN, - CPU_FMA4_FLAGS, 0 }, - { STRING_COMMA_LEN (".xop"), PROCESSOR_UNKNOWN, - CPU_XOP_FLAGS, 0 }, - { STRING_COMMA_LEN (".lwp"), PROCESSOR_UNKNOWN, - CPU_LWP_FLAGS, 0 }, - { STRING_COMMA_LEN (".movbe"), PROCESSOR_UNKNOWN, - CPU_MOVBE_FLAGS, 0 }, - { STRING_COMMA_LEN (".cx16"), PROCESSOR_UNKNOWN, - CPU_CX16_FLAGS, 0 }, - { STRING_COMMA_LEN (".ept"), PROCESSOR_UNKNOWN, - CPU_EPT_FLAGS, 0 }, - { STRING_COMMA_LEN (".lzcnt"), PROCESSOR_UNKNOWN, - CPU_LZCNT_FLAGS, 0 }, - { STRING_COMMA_LEN (".popcnt"), PROCESSOR_UNKNOWN, - CPU_POPCNT_FLAGS, 0 }, - { STRING_COMMA_LEN (".hle"), PROCESSOR_UNKNOWN, - CPU_HLE_FLAGS, 0 }, - { STRING_COMMA_LEN (".rtm"), PROCESSOR_UNKNOWN, - CPU_RTM_FLAGS, 0 }, - { STRING_COMMA_LEN (".invpcid"), PROCESSOR_UNKNOWN, - CPU_INVPCID_FLAGS, 0 }, - { STRING_COMMA_LEN (".clflush"), PROCESSOR_UNKNOWN, - CPU_CLFLUSH_FLAGS, 0 }, - { STRING_COMMA_LEN (".nop"), PROCESSOR_UNKNOWN, - CPU_NOP_FLAGS, 0 }, - { STRING_COMMA_LEN (".syscall"), PROCESSOR_UNKNOWN, - CPU_SYSCALL_FLAGS, 0 }, - { STRING_COMMA_LEN (".rdtscp"), PROCESSOR_UNKNOWN, - CPU_RDTSCP_FLAGS, 0 }, - { STRING_COMMA_LEN (".3dnow"), PROCESSOR_UNKNOWN, - CPU_3DNOW_FLAGS, 0 }, - { STRING_COMMA_LEN (".3dnowa"), PROCESSOR_UNKNOWN, - CPU_3DNOWA_FLAGS, 0 }, - { STRING_COMMA_LEN (".padlock"), PROCESSOR_UNKNOWN, - CPU_PADLOCK_FLAGS, 0 }, - { STRING_COMMA_LEN (".pacifica"), PROCESSOR_UNKNOWN, - CPU_SVME_FLAGS, 1 }, - { STRING_COMMA_LEN (".svme"), PROCESSOR_UNKNOWN, - CPU_SVME_FLAGS, 0 }, - { STRING_COMMA_LEN (".sse4a"), PROCESSOR_UNKNOWN, - CPU_SSE4A_FLAGS, 0 }, - { STRING_COMMA_LEN (".abm"), PROCESSOR_UNKNOWN, - CPU_ABM_FLAGS, 0 }, - { STRING_COMMA_LEN (".bmi"), PROCESSOR_UNKNOWN, - CPU_BMI_FLAGS, 0 }, - { STRING_COMMA_LEN (".tbm"), PROCESSOR_UNKNOWN, - CPU_TBM_FLAGS, 0 }, - { STRING_COMMA_LEN (".adx"), PROCESSOR_UNKNOWN, - CPU_ADX_FLAGS, 0 }, - { STRING_COMMA_LEN (".rdseed"), PROCESSOR_UNKNOWN, - CPU_RDSEED_FLAGS, 0 }, - { STRING_COMMA_LEN (".prfchw"), PROCESSOR_UNKNOWN, - CPU_PRFCHW_FLAGS, 0 }, - { STRING_COMMA_LEN (".smap"), PROCESSOR_UNKNOWN, - CPU_SMAP_FLAGS, 0 }, - { STRING_COMMA_LEN (".mpx"), PROCESSOR_UNKNOWN, - CPU_MPX_FLAGS, 0 }, - { STRING_COMMA_LEN (".sha"), PROCESSOR_UNKNOWN, - CPU_SHA_FLAGS, 0 }, - { STRING_COMMA_LEN (".clflushopt"), PROCESSOR_UNKNOWN, - CPU_CLFLUSHOPT_FLAGS, 0 }, - { STRING_COMMA_LEN (".prefetchwt1"), PROCESSOR_UNKNOWN, - CPU_PREFETCHWT1_FLAGS, 0 }, - { STRING_COMMA_LEN (".se1"), PROCESSOR_UNKNOWN, - CPU_SE1_FLAGS, 0 }, - { STRING_COMMA_LEN (".clwb"), PROCESSOR_UNKNOWN, - CPU_CLWB_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512ifma"), PROCESSOR_UNKNOWN, - CPU_AVX512IFMA_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512vbmi"), PROCESSOR_UNKNOWN, - CPU_AVX512VBMI_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_4fmaps"), PROCESSOR_UNKNOWN, - CPU_AVX512_4FMAPS_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_4vnniw"), PROCESSOR_UNKNOWN, - CPU_AVX512_4VNNIW_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_vpopcntdq"), PROCESSOR_UNKNOWN, - CPU_AVX512_VPOPCNTDQ_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_vbmi2"), PROCESSOR_UNKNOWN, - CPU_AVX512_VBMI2_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_vnni"), PROCESSOR_UNKNOWN, - CPU_AVX512_VNNI_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_bitalg"), PROCESSOR_UNKNOWN, - CPU_AVX512_BITALG_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx_vnni"), PROCESSOR_UNKNOWN, - CPU_AVX_VNNI_FLAGS, 0 }, - { STRING_COMMA_LEN (".clzero"), PROCESSOR_UNKNOWN, - CPU_CLZERO_FLAGS, 0 }, - { STRING_COMMA_LEN (".mwaitx"), PROCESSOR_UNKNOWN, - CPU_MWAITX_FLAGS, 0 }, - { STRING_COMMA_LEN (".ospke"), PROCESSOR_UNKNOWN, - CPU_OSPKE_FLAGS, 0 }, - { STRING_COMMA_LEN (".rdpid"), PROCESSOR_UNKNOWN, - CPU_RDPID_FLAGS, 0 }, - { STRING_COMMA_LEN (".ptwrite"), PROCESSOR_UNKNOWN, - CPU_PTWRITE_FLAGS, 0 }, - { STRING_COMMA_LEN (".ibt"), PROCESSOR_UNKNOWN, - CPU_IBT_FLAGS, 0 }, - { STRING_COMMA_LEN (".shstk"), PROCESSOR_UNKNOWN, - CPU_SHSTK_FLAGS, 0 }, - { STRING_COMMA_LEN (".gfni"), PROCESSOR_UNKNOWN, - CPU_GFNI_FLAGS, 0 }, - { STRING_COMMA_LEN (".vaes"), PROCESSOR_UNKNOWN, - CPU_VAES_FLAGS, 0 }, - { STRING_COMMA_LEN (".vpclmulqdq"), PROCESSOR_UNKNOWN, - CPU_VPCLMULQDQ_FLAGS, 0 }, - { STRING_COMMA_LEN (".wbnoinvd"), PROCESSOR_UNKNOWN, - CPU_WBNOINVD_FLAGS, 0 }, - { STRING_COMMA_LEN (".pconfig"), PROCESSOR_UNKNOWN, - CPU_PCONFIG_FLAGS, 0 }, - { STRING_COMMA_LEN (".waitpkg"), PROCESSOR_UNKNOWN, - CPU_WAITPKG_FLAGS, 0 }, - { STRING_COMMA_LEN (".cldemote"), PROCESSOR_UNKNOWN, - CPU_CLDEMOTE_FLAGS, 0 }, - { STRING_COMMA_LEN (".amx_int8"), PROCESSOR_UNKNOWN, - CPU_AMX_INT8_FLAGS, 0 }, - { STRING_COMMA_LEN (".amx_bf16"), PROCESSOR_UNKNOWN, - CPU_AMX_BF16_FLAGS, 0 }, - { STRING_COMMA_LEN (".amx_tile"), PROCESSOR_UNKNOWN, - CPU_AMX_TILE_FLAGS, 0 }, - { STRING_COMMA_LEN (".movdiri"), PROCESSOR_UNKNOWN, - CPU_MOVDIRI_FLAGS, 0 }, - { STRING_COMMA_LEN (".movdir64b"), PROCESSOR_UNKNOWN, - CPU_MOVDIR64B_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_bf16"), PROCESSOR_UNKNOWN, - CPU_AVX512_BF16_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_vp2intersect"), PROCESSOR_UNKNOWN, - CPU_AVX512_VP2INTERSECT_FLAGS, 0 }, - { STRING_COMMA_LEN (".tdx"), PROCESSOR_UNKNOWN, - CPU_TDX_FLAGS, 0 }, - { STRING_COMMA_LEN (".enqcmd"), PROCESSOR_UNKNOWN, - CPU_ENQCMD_FLAGS, 0 }, - { STRING_COMMA_LEN (".serialize"), PROCESSOR_UNKNOWN, - CPU_SERIALIZE_FLAGS, 0 }, - { STRING_COMMA_LEN (".rdpru"), PROCESSOR_UNKNOWN, - CPU_RDPRU_FLAGS, 0 }, - { STRING_COMMA_LEN (".mcommit"), PROCESSOR_UNKNOWN, - CPU_MCOMMIT_FLAGS, 0 }, - { STRING_COMMA_LEN (".sev_es"), PROCESSOR_UNKNOWN, - CPU_SEV_ES_FLAGS, 0 }, - { STRING_COMMA_LEN (".tsxldtrk"), PROCESSOR_UNKNOWN, - CPU_TSXLDTRK_FLAGS, 0 }, - { STRING_COMMA_LEN (".kl"), PROCESSOR_UNKNOWN, - CPU_KL_FLAGS, 0 }, - { STRING_COMMA_LEN (".widekl"), PROCESSOR_UNKNOWN, - CPU_WIDEKL_FLAGS, 0 }, - { STRING_COMMA_LEN (".uintr"), PROCESSOR_UNKNOWN, - CPU_UINTR_FLAGS, 0 }, - { STRING_COMMA_LEN (".hreset"), PROCESSOR_UNKNOWN, - CPU_HRESET_FLAGS, 0 }, - { STRING_COMMA_LEN (".avx512_fp16"), PROCESSOR_UNKNOWN, - CPU_AVX512_FP16_FLAGS, 0 }, + ARCH (generic32, GENERIC32, GENERIC32, false), + ARCH (generic64, GENERIC64, GENERIC64, false), + ARCH (i8086, UNKNOWN, NONE, false), + ARCH (i186, UNKNOWN, I186, false), + ARCH (i286, UNKNOWN, I286, false), + ARCH (i386, I386, I386, false), + ARCH (i486, I486, I486, false), + ARCH (i586, PENTIUM, I586, false), + ARCH (i686, PENTIUMPRO, I686, false), + ARCH (pentium, PENTIUM, I586, false), + ARCH (pentiumpro, PENTIUMPRO, PENTIUMPRO, false), + ARCH (pentiumii, PENTIUMPRO, P2, false), + ARCH (pentiumiii, PENTIUMPRO, P3, false), + ARCH (pentium4, PENTIUM4, P4, false), + ARCH (prescott, NOCONA, CORE, false), + ARCH (nocona, NOCONA, NOCONA, false), + ARCH (yonah, CORE, CORE, true), + ARCH (core, CORE, CORE, false), + ARCH (merom, CORE2, CORE2, true), + ARCH (core2, CORE2, CORE2, false), + ARCH (corei7, COREI7, COREI7, false), + ARCH (iamcu, IAMCU, IAMCU, false), + ARCH (k6, K6, K6, false), + ARCH (k6_2, K6, K6_2, false), + ARCH (athlon, ATHLON, ATHLON, false), + ARCH (sledgehammer, K8, K8, true), + ARCH (opteron, K8, K8, false), + ARCH (k8, K8, K8, false), + ARCH (amdfam10, AMDFAM10, AMDFAM10, false), + ARCH (bdver1, BD, BDVER1, false), + ARCH (bdver2, BD, BDVER2, false), + ARCH (bdver3, BD, BDVER3, false), + ARCH (bdver4, BD, BDVER4, false), + ARCH (znver1, ZNVER, ZNVER1, false), + ARCH (znver2, ZNVER, ZNVER2, false), + ARCH (znver3, ZNVER, ZNVER3, false), + ARCH (btver1, BT, BTVER1, false), + ARCH (btver2, BT, BTVER2, false), + + SUBARCH (8087, 8087, false), + SUBARCH (287, 287, false), + SUBARCH (387, 387, false), + SUBARCH (687, 687, false), + SUBARCH (cmov, CMOV, false), + SUBARCH (fxsr, FXSR, false), + SUBARCH (mmx, MMX, false), + SUBARCH (sse, SSE, false), + SUBARCH (sse2, SSE2, false), + SUBARCH (sse3, SSE3, false), + SUBARCH (sse4a, SSE4A, false), + SUBARCH (ssse3, SSSE3, false), + SUBARCH (sse4.1, SSE4_1, false), + SUBARCH (sse4.2, SSE4_2, false), + SUBARCH (sse4, SSE4_2, false), + SUBARCH (avx, AVX, false), + SUBARCH (avx2, AVX2, false), + SUBARCH (avx512f, AVX512F, false), + SUBARCH (avx512cd, AVX512CD, false), + SUBARCH (avx512er, AVX512ER, false), + SUBARCH (avx512pf, AVX512PF, false), + SUBARCH (avx512dq, AVX512DQ, false), + SUBARCH (avx512bw, AVX512BW, false), + SUBARCH (avx512vl, AVX512VL, false), + SUBARCH (vmx, VMX, false), + SUBARCH (vmfunc, VMFUNC, false), + SUBARCH (smx, SMX, false), + SUBARCH (xsave, XSAVE, false), + SUBARCH (xsaveopt, XSAVEOPT, false), + SUBARCH (xsavec, XSAVEC, false), + SUBARCH (xsaves, XSAVES, false), + SUBARCH (aes, AES, false), + SUBARCH (pclmul, PCLMUL, false), + SUBARCH (clmul, PCLMUL, true), + SUBARCH (fsgsbase, FSGSBASE, false), + SUBARCH (rdrnd, RDRND, false), + SUBARCH (f16c, F16C, false), + SUBARCH (bmi2, BMI2, false), + SUBARCH (fma, FMA, false), + SUBARCH (fma4, FMA4, false), + SUBARCH (xop, XOP, false), + SUBARCH (lwp, LWP, false), + SUBARCH (movbe, MOVBE, false), + SUBARCH (cx16, CX16, false), + SUBARCH (ept, EPT, false), + SUBARCH (lzcnt, LZCNT, false), + SUBARCH (popcnt, POPCNT, false), + SUBARCH (hle, HLE, false), + SUBARCH (rtm, RTM, false), + SUBARCH (invpcid, INVPCID, false), + SUBARCH (clflush, CLFLUSH, false), + SUBARCH (nop, NOP, false), + SUBARCH (syscall, SYSCALL, false), + SUBARCH (rdtscp, RDTSCP, false), + SUBARCH (3dnow, 3DNOW, false), + SUBARCH (3dnowa, 3DNOWA, false), + SUBARCH (padlock, PADLOCK, false), + SUBARCH (pacifica, SVME, true), + SUBARCH (svme, SVME, false), + SUBARCH (sse4a, SSE4A, false), + SUBARCH (abm, ABM, false), + SUBARCH (bmi, BMI, false), + SUBARCH (tbm, TBM, false), + SUBARCH (adx, ADX, false), + SUBARCH (rdseed, RDSEED, false), + SUBARCH (prfchw, PRFCHW, false), + SUBARCH (smap, SMAP, false), + SUBARCH (mpx, MPX, false), + SUBARCH (sha, SHA, false), + SUBARCH (clflushopt, CLFLUSHOPT, false), + SUBARCH (prefetchwt1, PREFETCHWT1, false), + SUBARCH (se1, SE1, false), + SUBARCH (clwb, CLWB, false), + SUBARCH (avx512ifma, AVX512IFMA, false), + SUBARCH (avx512vbmi, AVX512VBMI, false), + SUBARCH (avx512_4fmaps, AVX512_4FMAPS, false), + SUBARCH (avx512_4vnniw, AVX512_4VNNIW, false), + SUBARCH (avx512_vpopcntdq, AVX512_VPOPCNTDQ, false), + SUBARCH (avx512_vbmi2, AVX512_VBMI2, false), + SUBARCH (avx512_vnni, AVX512_VNNI, false), + SUBARCH (avx512_bitalg, AVX512_BITALG, false), + SUBARCH (avx_vnni, AVX_VNNI, false), + SUBARCH (clzero, CLZERO, false), + SUBARCH (mwaitx, MWAITX, false), + SUBARCH (ospke, OSPKE, false), + SUBARCH (rdpid, RDPID, false), + SUBARCH (ptwrite, PTWRITE, false), + SUBARCH (ibt, IBT, false), + SUBARCH (shstk, SHSTK, false), + SUBARCH (gfni, GFNI, false), + SUBARCH (vaes, VAES, false), + SUBARCH (vpclmulqdq, VPCLMULQDQ, false), + SUBARCH (wbnoinvd, WBNOINVD, false), + SUBARCH (pconfig, PCONFIG, false), + SUBARCH (waitpkg, WAITPKG, false), + SUBARCH (cldemote, CLDEMOTE, false), + SUBARCH (amx_int8, AMX_INT8, false), + SUBARCH (amx_bf16, AMX_BF16, false), + SUBARCH (amx_tile, AMX_TILE, false), + SUBARCH (movdiri, MOVDIRI, false), + SUBARCH (movdir64b, MOVDIR64B, false), + SUBARCH (avx512_bf16, AVX512_BF16, false), + SUBARCH (avx512_vp2intersect, AVX512_VP2INTERSECT, false), + SUBARCH (tdx, TDX, false), + SUBARCH (enqcmd, ENQCMD, false), + SUBARCH (serialize, SERIALIZE, false), + SUBARCH (rdpru, RDPRU, false), + SUBARCH (mcommit, MCOMMIT, false), + SUBARCH (sev_es, SEV_ES, false), + SUBARCH (tsxldtrk, TSXLDTRK, false), + SUBARCH (kl, KL, false), + SUBARCH (widekl, WIDEKL, false), + SUBARCH (uintr, UINTR, false), + SUBARCH (hreset, HRESET, false), + SUBARCH (avx512_fp16, AVX512_FP16, false), }; +#undef SUBARCH +#undef ARCH + static const noarch_entry cpu_noarch[] = { { STRING_COMMA_LEN ("no87"), CPU_ANY_X87_FLAGS }, -- 2.30.2