aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-18 19:28:51 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-18 19:28:51 -0700
commit28844c886763798903483ef7cac441d6d69d220f (patch)
treebacee2b4f14047cde54cb56ee78ee82886590559
parent47942892002313b2f8d308f048dce4704d2f860e (diff)
downloadriscv-opcodes-28844c886763798903483ef7cac441d6d69d220f.zip
riscv-opcodes-28844c886763798903483ef7cac441d6d69d220f.tar.gz
riscv-opcodes-28844c886763798903483ef7cac441d6d69d220f.tar.bz2
[xcc,sim,opcodes] added rvc conditional branches
-rw-r--r--inst.v2
-rw-r--r--opcodes26
2 files changed, 16 insertions, 12 deletions
diff --git a/inst.v b/inst.v
index 9d38f82..8dd27ee 100644
--- a/inst.v
+++ b/inst.v
@@ -240,3 +240,5 @@
`define C_LW 32'b00000000000000000000000000000000
`define C_SD 32'b00000000000000000000000000000000
`define C_SW 32'b00000000000000000000000000000000
+`define C_BEQ 32'b00000000000000000000000000000000
+`define C_BNE 32'b00000000000000000000000000000000
diff --git a/opcodes b/opcodes
index 4a17e76..45e6483 100644
--- a/opcodes
+++ b/opcodes
@@ -318,15 +318,17 @@ setvl rd rs1 21..10=0 9..7=1 6..2=0x1C 1..0=3
vf 31..27=0 rs1 imm12 9..7=2 6..2=0x1C 1..0=3
# compressed instructions
-c.addi cimm6 crd 4..0=0
-c.li cimm6 crd 4..0=1
-c.move 15=0 crs1 crd 4..0=2
-c.j 15=1 cimm10 4..0=2
-c.ldsp cimm6 crd 4..0=4
-c.lwsp cimm6 crd 4..0=5
-c.sdsp cimm6 crd 4..0=6
-c.swsp cimm6 crd 4..0=8
-c.ld crds crs1s cimm5 4..0=9
-c.lw crds crs1s cimm5 4..0=10
-c.sd crds crs1s cimm5 4..0=12
-c.sw crds crs1s cimm5 4..0=13
+c.addi cimm6 crd 4..0=0
+c.li cimm6 crd 4..0=1
+c.move 15=0 crs1 crd 4..0=2
+c.j 15=1 cimm10 4..0=2
+c.ldsp cimm6 crd 4..0=4
+c.lwsp cimm6 crd 4..0=5
+c.sdsp cimm6 crd 4..0=6
+c.swsp cimm6 crd 4..0=8
+c.ld crds crs1s cimm5 4..0=9
+c.lw crds crs1s cimm5 4..0=10
+c.sd crds crs1s cimm5 4..0=12
+c.sw crds crs1s cimm5 4..0=13
+c.beq crs2s crs1s cimm5 4..0=16
+c.bne crs2s crs1s cimm5 4..0=17