archspec / archspec-json

Other
20 stars 33 forks source link

zen3: added pku feature, GCC and Clang support #29

Closed alalazo closed 3 years ago

alalazo commented 3 years ago

I just compiled the development version of GCC and:

znver3
        AMD Family 19h core based CPUs with x86-64 instruction set support. (This supersets BMI, BMI2, CLWB, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCLMUL,
        CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, RDPID, WBNOINVD, PKU, VPCLMULQDQ, VAES, and 64-bit instruction set
        extensions.)

It seems that zen3 has PKU, VPCLMULQDQ, VAES more with respect to zen2, so adding the missing one and support for GCC

alalazo commented 3 years ago

@amd-toolchain-support

alalazo commented 3 years ago

I'm also compiling the latest LLVM to check support for that compiler too.

alalazo commented 3 years ago

To report on LLVM: the option is, as usual, the same as GCC (-march=znver3). As far as I can tell it's currently only on trunk, so I can either add an entry with support starting from 12.0: or wait for support to be added to a tagged version.

alalazo commented 3 years ago

Thanks!