aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2023-11-01 16:31:20 -0700
committerGitHub <noreply@github.com>2023-11-01 16:31:20 -0700
commitd5755c9d380f8ab75a98ee9901019ab3f52259dc (patch)
tree2d6947a87afa8737839331ac2a07ff9aa2e2f6e8
parent9a6c8eaca7ce91c8cec6907b90546a4ed5f8d07d (diff)
parent37413c886516eb8044588e91ecc29345e288990c (diff)
downloadriscv-opcodes-d5755c9d380f8ab75a98ee9901019ab3f52259dc.zip
riscv-opcodes-d5755c9d380f8ab75a98ee9901019ab3f52259dc.tar.gz
riscv-opcodes-d5755c9d380f8ab75a98ee9901019ab3f52259dc.tar.bz2
Merge pull request #206 from ved-rivos/zabha
Add unratified Zabha extension
-rw-r--r--unratified/rv_zabha23
1 files changed, 23 insertions, 0 deletions
diff --git a/unratified/rv_zabha b/unratified/rv_zabha
new file mode 100644
index 0000000..b3a6f79
--- /dev/null
+++ b/unratified/rv_zabha
@@ -0,0 +1,23 @@
+# byte width AMO
+amoswap.b rd rs1 rs2 aq rl 31..29=0 28..27=1 14..12=0 6..2=0x0B 1..0=3
+amoadd.b rd rs1 rs2 aq rl 31..29=0 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amoxor.b rd rs1 rs2 aq rl 31..29=1 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amoand.b rd rs1 rs2 aq rl 31..29=3 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amoor.b rd rs1 rs2 aq rl 31..29=2 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amomin.b rd rs1 rs2 aq rl 31..29=4 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amomax.b rd rs1 rs2 aq rl 31..29=5 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amominu.b rd rs1 rs2 aq rl 31..29=6 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amomaxu.b rd rs1 rs2 aq rl 31..29=7 28..27=0 14..12=0 6..2=0x0B 1..0=3
+amocas.b rd rs1 rs2 aq rl 31..29=1 28..27=1 14..12=0 6..2=0x0B 1..0=3
+
+# halfword width AMO
+amoswap.h rd rs1 rs2 aq rl 31..29=0 28..27=1 14..12=1 6..2=0x0B 1..0=3
+amoadd.h rd rs1 rs2 aq rl 31..29=0 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amoxor.h rd rs1 rs2 aq rl 31..29=1 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amoand.h rd rs1 rs2 aq rl 31..29=3 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amoor.h rd rs1 rs2 aq rl 31..29=2 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amomin.h rd rs1 rs2 aq rl 31..29=4 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amomax.h rd rs1 rs2 aq rl 31..29=5 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amominu.h rd rs1 rs2 aq rl 31..29=6 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amomaxu.h rd rs1 rs2 aq rl 31..29=7 28..27=0 14..12=1 6..2=0x0B 1..0=3
+amocas.h rd rs1 rs2 aq rl 31..29=1 28..27=1 14..12=1 6..2=0x0B 1..0=3