Skip to content

Commit 96946ee

Browse files
committed
Add doc for sha512, sm3 and sm4 target features
1 parent c703c8d commit 96946ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/attributes/codegen.md

+6
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ Feature | Implicitly Enables | Description
204204
`rdrand` | | [`rdrand`] --- Read random number
205205
`rdseed` | | [`rdseed`] --- Read random seed
206206
`sha` | `sse2` | [SHA] --- Secure Hash Algorithm
207+
`sha512` | `avx2` | [SHA512] --- Secure Hash Algorithm with 512-bit digest
208+
`sm3` | `avx` | [SM3] --- ShangMi 3 Hash Algorithm
209+
`sm4` | `avx2` | [SM4] --- ShangMi 4 Cipher Algorithm
207210
`sse` | | [SSE] --- Streaming <abbr title="Single Instruction Multiple Data">SIMD</abbr> Extensions
208211
`sse2` | `sse` | [SSE2] --- Streaming SIMD Extensions 2
209212
`sse3` | `sse2` | [SSE3] --- Streaming SIMD Extensions 3
@@ -235,6 +238,9 @@ Feature | Implicitly Enables | Description
235238
[`rdrand`]: https://en.wikipedia.org/wiki/RdRand
236239
[`rdseed`]: https://en.wikipedia.org/wiki/RdRand
237240
[SHA]: https://en.wikipedia.org/wiki/Intel_SHA_extensions
241+
[SHA512]: https://en.wikipedia.org/wiki/Intel_SHA_extensions
242+
[SM3]: https://en.wikipedia.org/wiki/List_of_x86_cryptographic_instructions#Intel_SHA_and_SM3_instructions
243+
[SM4]: https://en.wikipedia.org/wiki/List_of_x86_cryptographic_instructions#Intel_SHA_and_SM3_instructions
238244
[SSE]: https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions
239245
[SSE2]: https://en.wikipedia.org/wiki/SSE2
240246
[SSE3]: https://en.wikipedia.org/wiki/SSE3

0 commit comments

Comments
 (0)