aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_addiw.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-09-04 13:39:42 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-09-04 13:39:42 -0700
commit784e9891af88db221b57bdffbea74d1c6bf99971 (patch)
tree3124895bbb1ed876d9951415696c7dd1bb06b208 /riscv/insns/c_addiw.h
parent84b15dac7035f7e23fa821091ce97ae30ce2b0d8 (diff)
downloadspike-784e9891af88db221b57bdffbea74d1c6bf99971.zip
spike-784e9891af88db221b57bdffbea74d1c6bf99971.tar.gz
spike-784e9891af88db221b57bdffbea74d1c6bf99971.tar.bz2
Move towards RVC v1.8
Diffstat (limited to 'riscv/insns/c_addiw.h')
-rw-r--r--riscv/insns/c_addiw.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/riscv/insns/c_addiw.h b/riscv/insns/c_addiw.h
index ae4980e..fe87872 100644
--- a/riscv/insns/c_addiw.h
+++ b/riscv/insns/c_addiw.h
@@ -1,7 +1,2 @@
require_extension('C');
-if (xlen == 32) {
- WRITE_RD(RVC_RS1 & insn.rvc_imm()); // c.andi
-} else {
- require(insn.rvc_rd() != 0);
- WRITE_RD(sext32(RVC_RS1 + insn.rvc_imm()));
-}
+WRITE_RD(sext32(RVC_RS1 + insn.rvc_imm()));