Skip to content

Commit

Permalink
apple: 新增amx指令检测支持
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyking committed Feb 23, 2024
1 parent 4b5d00b commit d34e4a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int main()
PRINT_ISA_SUPPORT(sha512)
PRINT_ISA_SUPPORT(sm3)
PRINT_ISA_SUPPORT(sm4)
PRINT_ISA_SUPPORT(amx)

#elif __arm__ || defined(_M_ARM)
PRINT_ISA_SUPPORT(edsp)
Expand Down
2 changes: 2 additions & 0 deletions ruapu.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ RUAPU_INSTCODE(sha3, 0xce000000) // eor3 v0.16b, v0.16b, v0.16b, v0.16b
RUAPU_INSTCODE(sha512, 0xce608000) // sha512h q0, q0, v0.2d
RUAPU_INSTCODE(sm3, 0xce60c000) // sm3partw1 v0.4s, v0.4s, v0.4s
RUAPU_INSTCODE(sm4, 0xcec08400) // sm4e v0.4s, v0.4s
RUAPU_INSTCODE(amx, 0x00201220) // amx setup


#elif __arm__ || defined(_M_ARM)
Expand Down Expand Up @@ -292,6 +293,7 @@ RUAPU_ISAENTRY(sha3)
RUAPU_ISAENTRY(sha512)
RUAPU_ISAENTRY(sm3)
RUAPU_ISAENTRY(sm4)
RUAPU_ISAENTRY(amx)

#elif __arm__ || defined(_M_ARM)
RUAPU_ISAENTRY(edsp)
Expand Down

0 comments on commit d34e4a9

Please sign in to comment.