Swap J and JALR encoding
authorAndrew Waterman <waterman@cs.berkeley.edu>
Wed, 7 Aug 2013 00:59:48 +0000 (17:59 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Thu, 8 Aug 2013 22:05:52 +0000 (15:05 -0700)
riscv/opcodes.h

index fd86d9d29a394ce873e49db0db08c7c2011d1553..90565e0c892ea1bee997c07d717d2ec044b28668 100644 (file)
@@ -32,7 +32,7 @@ DECLARE_INSN(divuw, 0x6bb, 0x1ffff)
 DECLARE_INSN(mulw, 0x43b, 0x1ffff)
 DECLARE_INSN(srlw, 0x2bb, 0x1ffff)
 DECLARE_INSN(div, 0x633, 0x1ffff)
-DECLARE_INSN(j, 0x67, 0x7f)
+DECLARE_INSN(j, 0x6b, 0x7f)
 DECLARE_INSN(fence, 0x12f, 0x3ff)
 DECLARE_INSN(fnmsub_s, 0x4b, 0x1ff)
 DECLARE_INSN(fcvt_l_s, 0x8053, 0x3ff1ff)
@@ -146,7 +146,7 @@ DECLARE_INSN(divw, 0x63b, 0x1ffff)
 DECLARE_INSN(amomin_d, 0x11ab, 0x1ffff)
 DECLARE_INSN(divu, 0x6b3, 0x1ffff)
 DECLARE_INSN(amoswap_w, 0x52b, 0x1ffff)
-DECLARE_INSN(jalr, 0x6b, 0x3ff)
+DECLARE_INSN(jalr, 0x67, 0x3ff)
 DECLARE_INSN(fadd_s, 0x53, 0x1f1ff)
 DECLARE_INSN(fcvt_l_d, 0x80d3, 0x3ff1ff)
 DECLARE_INSN(sw, 0x123, 0x3ff)