diff options
author | Quan Nguyen <quannguyen@berkeley.edu> | 2013-10-27 23:02:23 -0700 |
---|---|---|
committer | Quan Nguyen <quannguyen@berkeley.edu> | 2013-10-27 23:02:23 -0700 |
commit | 6ca90a89e59946efa7620cf9898fed261309a07f (patch) | |
tree | 8ce280a7585c88edabf3f577c52a0be273f1a646 | |
parent | 3676772fd0fee2eb94a55f4d42dbf5eeabd003f4 (diff) | |
download | riscv-isa-sim-6ca90a89e59946efa7620cf9898fed261309a07f.zip riscv-isa-sim-6ca90a89e59946efa7620cf9898fed261309a07f.tar.gz riscv-isa-sim-6ca90a89e59946efa7620cf9898fed261309a07f.tar.bz2 |
Add missing fcvt opcodes through riscv-opcodes
-rw-r--r-- | riscv/opcodes.h | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/riscv/opcodes.h b/riscv/opcodes.h index 0ee6776..2a42554 100644 --- a/riscv/opcodes.h +++ b/riscv/opcodes.h @@ -1,7 +1,5 @@ DECLARE_INSN(fmv_s_x, 0xf0000053, 0xfff0707f) -DECLARE_INSN(fmin_h, 0xc4000053, 0xfe00707f) DECLARE_INSN(amoxor_w, 0x2000202f, 0xf800707f) -DECLARE_INSN(fmv_d_x, 0xf2000053, 0xfff0707f) DECLARE_INSN(remuw, 0x200703b, 0xfe00707f) DECLARE_INSN(fmin_d, 0xc2000053, 0xfe00707f) DECLARE_INSN(amomax_d, 0xa000302f, 0xf800707f) @@ -12,7 +10,7 @@ DECLARE_INSN(lb, 0x3, 0x707f) DECLARE_INSN(fcvt_s_wu, 0x78000053, 0xfff0007f) DECLARE_INSN(fcvt_d_l, 0x62000053, 0xfff0007f) DECLARE_INSN(lh, 0x1003, 0x707f) -DECLARE_INSN(fcvt_d_h, 0x8c000053, 0xfff0007f) +DECLARE_INSN(frsr, 0xe8000053, 0xfffff07f) DECLARE_INSN(fcvt_d_w, 0x72000053, 0xfff0007f) DECLARE_INSN(lw, 0x2003, 0x707f) DECLARE_INSN(add, 0x33, 0xfe00707f) @@ -26,30 +24,22 @@ DECLARE_INSN(bgeu, 0x7063, 0x707f) DECLARE_INSN(fadd_d, 0x2000053, 0xfe00007f) DECLARE_INSN(sltiu, 0x3013, 0x707f) DECLARE_INSN(mtpcr, 0x73, 0xfe00707f) -DECLARE_INSN(fadd_h, 0x4000053, 0xfe00007f) -DECLARE_INSN(fcvt_s_h, 0x84000053, 0xfff0007f) DECLARE_INSN(break, 0x1077, 0xffffffff) DECLARE_INSN(fcvt_s_w, 0x70000053, 0xfff0007f) DECLARE_INSN(mul, 0x2000033, 0xfe00707f) -DECLARE_INSN(fcvt_w_h, 0x54000053, 0xfff0007f) DECLARE_INSN(amominu_d, 0xc000302f, 0xf800707f) DECLARE_INSN(srli, 0x5013, 0xfc00707f) -DECLARE_INSN(fnmadd_h, 0x400004f, 0x600007f) DECLARE_INSN(amominu_w, 0xc000202f, 0xf800707f) DECLARE_INSN(divuw, 0x200503b, 0xfe00707f) DECLARE_INSN(mulw, 0x200003b, 0xfe00707f) DECLARE_INSN(srlw, 0x503b, 0xfe00707f) DECLARE_INSN(div, 0x2004033, 0xfe00707f) -DECLARE_INSN(fmv_h_x, 0xf4000053, 0xfff0707f) DECLARE_INSN(fdiv_d, 0x1a000053, 0xfe00007f) DECLARE_INSN(fence, 0xf, 0x707f) DECLARE_INSN(fnmsub_s, 0x4b, 0x600007f) DECLARE_INSN(fcvt_l_s, 0x40000053, 0xfff0007f) -DECLARE_INSN(fdiv_h, 0x1c000053, 0xfe00007f) -DECLARE_INSN(fcvt_h_wu, 0x7c000053, 0xfff0007f) -DECLARE_INSN(fnmsub_h, 0x400004b, 0x600007f) +DECLARE_INSN(fle_s, 0xb8000053, 0xfe00707f) DECLARE_INSN(fdiv_s, 0x18000053, 0xfe00007f) -DECLARE_INSN(fcvt_l_h, 0x44000053, 0xfff0007f) DECLARE_INSN(fle_d, 0xba000053, 0xfe00707f) DECLARE_INSN(fence_i, 0x100f, 0x707f) DECLARE_INSN(fnmsub_d, 0x200004b, 0x600007f) @@ -58,17 +48,13 @@ DECLARE_INSN(sll, 0x1033, 0xfe00707f) DECLARE_INSN(xor, 0x4033, 0xfe00707f) DECLARE_INSN(sub, 0x40000033, 0xfe00707f) DECLARE_INSN(eret, 0x4073, 0xffffffff) -DECLARE_INSN(fcvt_h_s, 0x90000053, 0xfff0007f) DECLARE_INSN(blt, 0x4063, 0x707f) -DECLARE_INSN(fcvt_h_w, 0x74000053, 0xfff0007f) DECLARE_INSN(sc_w, 0x1800202f, 0xf800707f) DECLARE_INSN(rem, 0x2006033, 0xfe00707f) DECLARE_INSN(srliw, 0x501b, 0xfe00707f) DECLARE_INSN(lui, 0x37, 0x7f) DECLARE_INSN(fcvt_s_lu, 0x68000053, 0xfff0007f) DECLARE_INSN(addi, 0x13, 0x707f) -DECLARE_INSN(fcvt_h_d, 0x92000053, 0xfff0007f) -DECLARE_INSN(flt_h, 0xb4000053, 0xfe00707f) DECLARE_INSN(mulh, 0x2001033, 0xfe00707f) DECLARE_INSN(fmul_s, 0x10000053, 0xfe00007f) DECLARE_INSN(srai, 0x40005013, 0xfc00707f) @@ -78,7 +64,6 @@ DECLARE_INSN(sraw, 0x4000503b, 0xfe00707f) DECLARE_INSN(fmul_d, 0x12000053, 0xfe00007f) DECLARE_INSN(ld, 0x3003, 0x707f) DECLARE_INSN(ori, 0x6013, 0x707f) -DECLARE_INSN(fmul_h, 0x14000053, 0xfe00007f) DECLARE_INSN(flt_s, 0xb0000053, 0xfe00707f) DECLARE_INSN(addiw, 0x1b, 0x707f) DECLARE_INSN(amoand_w, 0x6000202f, 0xf800707f) @@ -92,31 +77,26 @@ DECLARE_INSN(fsub_d, 0xa000053, 0xfe00007f) DECLARE_INSN(fsgnjx_s, 0x38000053, 0xfe00707f) DECLARE_INSN(feq_d, 0xaa000053, 0xfe00707f) DECLARE_INSN(fcvt_d_wu, 0x7a000053, 0xfff0007f) -DECLARE_INSN(feq_h, 0xac000053, 0xfe00707f) DECLARE_INSN(or, 0x6033, 0xfe00707f) DECLARE_INSN(rdinstret, 0x4004077, 0xfffff07f) DECLARE_INSN(fcvt_wu_d, 0x5a000053, 0xfff0007f) DECLARE_INSN(subw, 0x4000003b, 0xfe00707f) DECLARE_INSN(fmax_s, 0xc8000053, 0xfe00707f) DECLARE_INSN(amomaxu_d, 0xe000302f, 0xf800707f) -DECLARE_INSN(fcvt_wu_h, 0x5c000053, 0xfff0007f) DECLARE_INSN(xori, 0x4013, 0x707f) DECLARE_INSN(amoxor_d, 0x2000302f, 0xf800707f) DECLARE_INSN(amomaxu_w, 0xe000202f, 0xf800707f) DECLARE_INSN(fcvt_wu_s, 0x58000053, 0xfff0007f) -DECLARE_INSN(frsr, 0xe8000053, 0xfffff07f) -DECLARE_INSN(fmax_h, 0xcc000053, 0xfe00707f) DECLARE_INSN(rdtime, 0x2004077, 0xfffff07f) DECLARE_INSN(andi, 0x7013, 0x707f) DECLARE_INSN(clearpcr, 0x3073, 0x707f) -DECLARE_INSN(fmadd_h, 0x4000043, 0x600007f) DECLARE_INSN(fmv_x_s, 0xe0000053, 0xfff0707f) DECLARE_INSN(fsgnjn_d, 0x32000053, 0xfe00707f) DECLARE_INSN(fnmadd_s, 0x4f, 0x600007f) DECLARE_INSN(jal, 0x67, 0x7f) DECLARE_INSN(lwu, 0x6003, 0x707f) DECLARE_INSN(fmv_x_d, 0xe2000053, 0xfff0707f) -DECLARE_INSN(fmv_x_h, 0xe4000053, 0xfff0707f) +DECLARE_INSN(fnmadd_d, 0x200004f, 0x600007f) DECLARE_INSN(amoadd_d, 0x302f, 0xf800707f) DECLARE_INSN(lr_d, 0x1000302f, 0xf9f0707f) DECLARE_INSN(fcvt_w_s, 0x50000053, 0xfff0007f) @@ -124,11 +104,8 @@ DECLARE_INSN(mulhsu, 0x2002033, 0xfe00707f) DECLARE_INSN(amoadd_w, 0x202f, 0xf800707f) DECLARE_INSN(fcvt_d_lu, 0x6a000053, 0xfff0007f) DECLARE_INSN(lr_w, 0x1000202f, 0xf9f0707f) -DECLARE_INSN(fcvt_h_l, 0x64000053, 0xfff0007f) DECLARE_INSN(fcvt_w_d, 0x52000053, 0xfff0007f) -DECLARE_INSN(fsub_h, 0xc000053, 0xfe00007f) DECLARE_INSN(slt, 0x2033, 0xfe00707f) -DECLARE_INSN(fnmadd_d, 0x200004f, 0x600007f) DECLARE_INSN(sllw, 0x103b, 0xfe00707f) DECLARE_INSN(amoor_d, 0x4000302f, 0xf800707f) DECLARE_INSN(slti, 0x2013, 0x707f) @@ -136,21 +113,16 @@ DECLARE_INSN(remu, 0x2007033, 0xfe00707f) DECLARE_INSN(flw, 0x2007, 0x707f) DECLARE_INSN(remw, 0x200603b, 0xfe00707f) DECLARE_INSN(sltu, 0x3033, 0xfe00707f) -DECLARE_INSN(flh, 0x1007, 0x707f) DECLARE_INSN(slli, 0x40001013, 0xfc00707f) DECLARE_INSN(amoor_w, 0x4000202f, 0xf800707f) -DECLARE_INSN(fle_h, 0xbc000053, 0xfe00707f) DECLARE_INSN(beq, 0x63, 0x707f) DECLARE_INSN(fld, 0x3007, 0x707f) DECLARE_INSN(fsub_s, 0x8000053, 0xfe00007f) DECLARE_INSN(and, 0x7033, 0xfe00707f) -DECLARE_INSN(fcvt_h_lu, 0x6c000053, 0xfff0007f) +DECLARE_INSN(fmv_d_x, 0xf2000053, 0xfff0707f) DECLARE_INSN(lbu, 0x4003, 0x707f) DECLARE_INSN(syscall, 0x77, 0xffffffff) DECLARE_INSN(fsgnj_s, 0x28000053, 0xfe00707f) -DECLARE_INSN(fle_s, 0xb8000053, 0xfe00707f) -DECLARE_INSN(fsgnj_h, 0x2c000053, 0xfe00707f) -DECLARE_INSN(fsgnjx_h, 0x3c000053, 0xfe00707f) DECLARE_INSN(amomax_w, 0xa000202f, 0xf800707f) DECLARE_INSN(fsgnj_d, 0x2a000053, 0xfe00707f) DECLARE_INSN(mulhu, 0x2003033, 0xfe00707f) @@ -167,24 +139,19 @@ DECLARE_INSN(fsqrt_s, 0x20000053, 0xfff0007f) DECLARE_INSN(amomin_w, 0x8000202f, 0xf800707f) DECLARE_INSN(fsgnjn_s, 0x30000053, 0xfe00707f) DECLARE_INSN(amoswap_d, 0x800302f, 0xf800707f) -DECLARE_INSN(fsgnjn_h, 0x34000053, 0xfe00707f) DECLARE_INSN(fsqrt_d, 0x22000053, 0xfff0007f) DECLARE_INSN(fmadd_d, 0x2000043, 0x600007f) DECLARE_INSN(divw, 0x200403b, 0xfe00707f) DECLARE_INSN(amomin_d, 0x8000302f, 0xf800707f) DECLARE_INSN(divu, 0x2005033, 0xfe00707f) DECLARE_INSN(amoswap_w, 0x800202f, 0xf800707f) -DECLARE_INSN(fsqrt_h, 0x24000053, 0xfff0007f) DECLARE_INSN(jalr, 0x6f, 0x707f) DECLARE_INSN(fadd_s, 0x53, 0xfe00007f) DECLARE_INSN(fsd, 0x3027, 0x707f) -DECLARE_INSN(fsh, 0x1027, 0x707f) DECLARE_INSN(sw, 0x2023, 0x707f) DECLARE_INSN(fmsub_s, 0x47, 0x600007f) DECLARE_INSN(lhu, 0x5003, 0x707f) DECLARE_INSN(sh, 0x1023, 0x707f) -DECLARE_INSN(fcvt_lu_h, 0x4c000053, 0xfff0007f) -DECLARE_INSN(fmsub_h, 0x4000047, 0x600007f) DECLARE_INSN(fsw, 0x2027, 0x707f) DECLARE_INSN(sb, 0x23, 0x707f) DECLARE_INSN(fmsub_d, 0x2000047, 0x600007f) |