aboutsummaryrefslogtreecommitdiff
path: root/rv_zvknha
diff options
context:
space:
mode:
Diffstat (limited to 'rv_zvknha')
-rw-r--r--rv_zvknha9
1 files changed, 9 insertions, 0 deletions
diff --git a/rv_zvknha b/rv_zvknha
new file mode 100644
index 0000000..a09a36c
--- /dev/null
+++ b/rv_zvknha
@@ -0,0 +1,9 @@
+# Zvknha - Vector Crypto SHA-256 Secure Hash
+#
+# The following 3 instructions are defined in both Zvknha and Zvknhb:
+# - in Zvknha, they support SHA-256 (SEW=32) only,
+# - in Zvknhb, they support both SHA-256 (SEW=32) and SHA-512 (SEW=64).
+
+vsha2ms.vv 31..26=0x2D 25=1 vs2 vs1 14..12=0x2 vd 6..0=0x77
+vsha2ch.vv 31..26=0x2E 25=1 vs2 vs1 14..12=0x2 vd 6..0=0x77
+vsha2cl.vv 31..26=0x2F 25=1 vs2 vs1 14..12=0x2 vd 6..0=0x77