Originally copied from https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests/2/diffs
With glibc 2.33 or later (Arch Linux, Debian 12, Ubuntu 21.04, Fedora 34, etc.), or patched glibc (RHEL 8), you can see what architecture is supported by your CPU by running:
$ /lib/ld-linux-x86-64.so.2 --help Subdirectories of glibc-hwcaps directories, in priority order: x86-64-v4 x86-64-v3 (supported, searched) x86-64-v2 (supported, searched) On Debian derivatives the path is different, you need to run /lib64/ld-linux-x86-64.so.2 --help.