Skip to content

Commit

Permalink
arm: Add i8mm
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/917278
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 29, 2023
1 parent 32324da commit 8f0f44b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ struct subarch_info subarches[] = {
*
* - CHECK_HWCAP and CHECK_HWCAP2 refer to appropriate values in 32-bit
* ARM AT_HWCAP*,
* - CHECK_AARCH64_HWCAP refer to appropriate values in 64-bit AArch64
* AT_HWCAP,
* - CHECK_AARCH64_HWCAP and CHECK_HWCAP2 refer to appropriate values
* in 64-bit AArch64 AT_HWCAP,
* - CHECK_SUBARCH refers to the subarch determined via 'uname -m'.
*/
enum check_type
Expand All @@ -83,6 +83,7 @@ enum check_type
CHECK_HWCAP,
CHECK_HWCAP2,
CHECK_AARCH64_HWCAP,
CHECK_AARCH64_HWCAP2,
CHECK_SUBARCH,

CHECK_MAX
Expand All @@ -107,6 +108,7 @@ struct flag_info flags[] = {
{ "vfpv4", CHECK_HWCAP, (1 << 16) },
{ "vfp-d32", CHECK_HWCAP, (1 << 19) },
{ "asimddp", CHECK_HWCAP, (1 << 24) },
{ "i8mm", CHECK_HWCAP, (1 << 27) },
{ "aes", CHECK_HWCAP2, (1 << 0) },
{ "sha1", CHECK_HWCAP2, (1 << 2) },
{ "sha2", CHECK_HWCAP2, (1 << 3) },
Expand All @@ -128,6 +130,7 @@ struct flag_info flags[] = {
{ "crc32", CHECK_AARCH64_HWCAP, (1 << 7) },
{ "sm4", CHECK_AARCH64_HWCAP, (1 << 19) },
{ "asimddp", CHECK_AARCH64_HWCAP, (1 << 20) },
{ "i8mm", CHECK_AARCH64_HWCAP2, (1 << 13) },

/* subarches */
{ "v4", CHECK_SUBARCH, SUBARCH_V4 },
Expand Down Expand Up @@ -206,6 +209,10 @@ int print_flags()
if (subarch >= SUBARCH_AARCH64)
reg = &hwcap;
break;
case CHECK_AARCH64_HWCAP2:
if (subarch >= SUBARCH_AARCH64)
reg = &hwcap2;
break;
case CHECK_SUBARCH:
reg = &subarch;
break;
Expand Down

0 comments on commit 8f0f44b

Please sign in to comment.