aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@ubuntu.(none)>2010-08-22 22:13:51 -0700
committerAndrew Waterman <waterman@ubuntu.(none)>2010-08-22 22:13:51 -0700
commit3a0ead41a8ef5083b763112d548061ffea3932f3 (patch)
tree67f2419decfdff0c6dda896148b593ba3deba885
parentccacad57da4895aa931c50a24eb7b9a45a8426dd (diff)
downloadriscv-opcodes-3a0ead41a8ef5083b763112d548061ffea3932f3.zip
riscv-opcodes-3a0ead41a8ef5083b763112d548061ffea3932f3.tar.gz
riscv-opcodes-3a0ead41a8ef5083b763112d548061ffea3932f3.tar.bz2
[xcc,sim] added fused multiply-add and its cousins
-rw-r--r--opcodes10
-rwxr-xr-xparse-opcodes1
2 files changed, 11 insertions, 0 deletions
diff --git a/opcodes b/opcodes
index a63c164..e7524bb 100644
--- a/opcodes
+++ b/opcodes
@@ -157,6 +157,16 @@ c.eq.d 31..25=0x68 14..12=2 11..10=3 9..5=1 rc ra rb
c.lt.d 31..25=0x68 14..12=2 11..10=3 9..5=2 rc ra rb
c.le.d 31..25=0x68 14..12=2 11..10=3 9..5=3 rc ra rb
+madd.s 31..25=0x68 14..12=4 11..10=0 rc rb ra rd
+msub.s 31..25=0x68 14..12=5 11..10=0 rc rb ra rd
+nmadd.s 31..25=0x68 14..12=6 11..10=0 rc rb ra rd
+nmsub.s 31..25=0x68 14..12=7 11..10=0 rc rb ra rd
+
+madd.d 31..25=0x68 14..12=4 11..10=3 rc rb ra rd
+msub.d 31..25=0x68 14..12=5 11..10=3 rc rb ra rd
+nmadd.d 31..25=0x68 14..12=6 11..10=3 rc rb ra rd
+nmsub.d 31..25=0x68 14..12=7 11..10=3 rc rb ra rd
+
mff.s 31..25=0x6A 14..12=0 11..0=0 ra rb
mff.d 31..25=0x6A 14..12=1 11..0=0 ra rb
mtf.s 31..25=0x6A 14..12=4 11..0=0 ra rb
diff --git a/parse-opcodes b/parse-opcodes
index 9d5d539..85a504c 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -11,6 +11,7 @@ args = {}
args['ra'] = (24,20)
args['rb'] = (19,15)
args['rc'] = (4,0)
+args['rd'] = (9,5)
args['imm27'] = (26,0)
args['imm20'] = (19,0)
args['imm'] = (11,0)