diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-11-05 14:06:12 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-11-21 16:54:33 -0800 |
commit | 54aec7dfe21f3ef0684a27f4545d668a20bce1f8 (patch) | |
tree | f13ee25eca6666bfd342ad64aa8f83564f467c7b /inst.v | |
parent | 65721333eb55a580b86c0837ced29ebde36f1b3b (diff) | |
download | riscv-opcodes-54aec7dfe21f3ef0684a27f4545d668a20bce1f8.zip riscv-opcodes-54aec7dfe21f3ef0684a27f4545d668a20bce1f8.tar.gz riscv-opcodes-54aec7dfe21f3ef0684a27f4545d668a20bce1f8.tar.bz2 |
[xcc, sim, pk, opcodes] new instruction encoding!
Diffstat (limited to 'inst.v')
-rw-r--r-- | inst.v | 329 |
1 files changed, 164 insertions, 165 deletions
@@ -2,178 +2,177 @@ `define J 32'b1100000_????????????????????????? `define JAL 32'b1100001_????????????????????????? `define LUI 32'b1110001_?????_???????????????????? -`define BEQ 32'b1110011_?????_?????_000_???????????? -`define BNE 32'b1110011_?????_?????_001_???????????? -`define BLT 32'b1110011_?????_?????_100_???????????? -`define BGE 32'b1110011_?????_?????_101_???????????? -`define BLTU 32'b1110011_?????_?????_110_???????????? -`define BGEU 32'b1110011_?????_?????_111_???????????? +`define JALR_C 32'b1110010_?????_?????_000_???????????? +`define JALR_R 32'b1110010_?????_?????_000_???????????? +`define JALR_J 32'b1110010_?????_?????_000_???????????? +`define BEQ 32'b1110011_?????_?????_000_000000000000 +`define BNE 32'b1110011_?????_?????_000_000000000000 +`define BLT 32'b1110011_?????_?????_000_000000000000 +`define BGE 32'b1110011_?????_?????_000_000000000000 +`define BLTU 32'b1110011_?????_?????_000_000000000000 +`define BGEU 32'b1110011_?????_?????_000_000000000000 `define ADDI 32'b1110100_?????_?????_000_???????????? -`define SLTI 32'b1110100_?????_?????_010_???????????? -`define SLTIU 32'b1110100_?????_?????_011_???????????? -`define ANDI 32'b1110100_?????_?????_100_???????????? -`define ORI 32'b1110100_?????_?????_101_???????????? -`define XORI 32'b1110100_?????_?????_110_???????????? -`define SLLI 32'b1110100_?????_?????_111000001_?????? -`define SRLI 32'b1110100_?????_?????_111000010_?????? -`define SRAI 32'b1110100_?????_?????_111000011_?????? +`define SLTI 32'b1110100_?????_?????_000_???????????? +`define SLTIU 32'b1110100_?????_?????_000_???????????? +`define ANDI 32'b1110100_?????_?????_000_???????????? +`define ORI 32'b1110100_?????_?????_000_???????????? +`define XORI 32'b1110100_?????_?????_000_???????????? +`define SLLI 32'b1110100_?????_?????_000000000_?????? +`define SRLI 32'b1110100_?????_?????_000000000_?????? +`define SRAI 32'b1110100_?????_?????_000000000_?????? `define ADD 32'b1110101_?????_?????_0000000000_????? -`define SUB 32'b1110101_?????_?????_0000000001_????? -`define SLT 32'b1110101_?????_?????_0000000010_????? -`define SLTU 32'b1110101_?????_?????_0000000011_????? -`define AND 32'b1110101_?????_?????_0000000100_????? -`define OR 32'b1110101_?????_?????_0000000101_????? -`define XOR 32'b1110101_?????_?????_0000000110_????? -`define NOR 32'b1110101_?????_?????_0000000111_????? -`define SLL 32'b1110101_?????_?????_1110000010_????? -`define SRL 32'b1110101_?????_?????_1110000100_????? -`define SRA 32'b1110101_?????_?????_1110000110_????? -`define MUL 32'b1110101_?????_?????_0010000000_????? -`define MULH 32'b1110101_?????_?????_0010000010_????? -`define MULHU 32'b1110101_?????_?????_0010000011_????? -`define DIV 32'b1110101_?????_?????_0010000100_????? -`define DIVU 32'b1110101_?????_?????_0010000101_????? -`define REM 32'b1110101_?????_?????_0010000110_????? -`define REMU 32'b1110101_?????_?????_0010000111_????? +`define SUB 32'b1110101_?????_?????_0000000000_????? +`define SLT 32'b1110101_?????_?????_0000000000_????? +`define SLTU 32'b1110101_?????_?????_0000000000_????? +`define AND 32'b1110101_?????_?????_0000000000_????? +`define OR 32'b1110101_?????_?????_0000000000_????? +`define XOR 32'b1110101_?????_?????_0000000000_????? +`define NOR 32'b1110101_?????_?????_0000000000_????? +`define SLL 32'b1110101_?????_?????_0000000000_????? +`define SRL 32'b1110101_?????_?????_0000000000_????? +`define SRA 32'b1110101_?????_?????_0000000000_????? +`define MUL 32'b1110101_?????_?????_0000000000_????? +`define MULH 32'b1110101_?????_?????_0000000000_????? +`define MULHU 32'b1110101_?????_?????_0000000000_????? +`define DIV 32'b1110101_?????_?????_0000000000_????? +`define DIVU 32'b1110101_?????_?????_0000000000_????? +`define REM 32'b1110101_?????_?????_0000000000_????? +`define REMU 32'b1110101_?????_?????_0000000000_????? `define ADDIW 32'b1110110_?????_?????_000_???????????? -`define SLLIW 32'b1110110_?????_?????_111000001_0_????? -`define SRLIW 32'b1110110_?????_?????_111000010_0_????? -`define SRAIW 32'b1110110_?????_?????_111000011_0_????? +`define SLLIW 32'b1110110_?????_?????_000000000_0_????? +`define SRLIW 32'b1110110_?????_?????_000000000_0_????? +`define SRAIW 32'b1110110_?????_?????_000000000_0_????? `define ADDW 32'b1110111_?????_?????_0000000000_????? -`define SUBW 32'b1110111_?????_?????_0000000001_????? -`define SLLW 32'b1110111_?????_?????_1110000010_????? -`define SRLW 32'b1110111_?????_?????_1110000100_????? -`define SRAW 32'b1110111_?????_?????_1110000110_????? -`define MULW 32'b1110111_?????_?????_0010000000_????? -`define MULHW 32'b1110111_?????_?????_0010000010_????? -`define MULHUW 32'b1110111_?????_?????_0010000011_????? -`define DIVW 32'b1110111_?????_?????_0010000100_????? -`define DIVUW 32'b1110111_?????_?????_0010000101_????? -`define REMW 32'b1110111_?????_?????_0010000110_????? -`define REMUW 32'b1110111_?????_?????_0010000111_????? +`define SUBW 32'b1110111_?????_?????_0000000000_????? +`define SLLW 32'b1110111_?????_?????_0000000000_????? +`define SRLW 32'b1110111_?????_?????_0000000000_????? +`define SRAW 32'b1110111_?????_?????_0000000000_????? +`define MULW 32'b1110111_?????_?????_0000000000_????? +`define MULHW 32'b1110111_?????_?????_0000000000_????? +`define MULHUW 32'b1110111_?????_?????_0000000000_????? +`define DIVW 32'b1110111_?????_?????_0000000000_????? +`define DIVUW 32'b1110111_?????_?????_0000000000_????? +`define REMW 32'b1110111_?????_?????_0000000000_????? +`define REMUW 32'b1110111_?????_?????_0000000000_????? `define LB 32'b1111000_?????_?????_000_???????????? -`define LH 32'b1111000_?????_?????_001_???????????? -`define LW 32'b1111000_?????_?????_010_???????????? -`define LD 32'b1111000_?????_?????_011_???????????? -`define LBU 32'b1111000_?????_?????_100_???????????? -`define LHU 32'b1111000_?????_?????_101_???????????? -`define LWU 32'b1111000_?????_?????_110_???????????? -`define SYNCI 32'b1111000_00000_?????_111_???????????? -`define SB 32'b1111001_?????_?????_000_???????????? -`define SH 32'b1111001_?????_?????_001_???????????? -`define SW 32'b1111001_?????_?????_010_???????????? -`define SD 32'b1111001_?????_?????_011_???????????? -`define AMOW_ADD 32'b1111010_?????_?????_0100000000_????? -`define AMOW_SWAP 32'b1111010_?????_?????_0100000001_????? -`define AMOW_AND 32'b1111010_?????_?????_0100000010_????? -`define AMOW_OR 32'b1111010_?????_?????_0100000011_????? -`define AMOW_MIN 32'b1111010_?????_?????_0100000100_????? -`define AMOW_MAX 32'b1111010_?????_?????_0100000101_????? -`define AMOW_MINU 32'b1111010_?????_?????_0100000110_????? -`define AMOW_MAXU 32'b1111010_?????_?????_0100000111_????? -`define AMO_ADD 32'b1111010_?????_?????_0110000000_????? -`define AMO_SWAP 32'b1111010_?????_?????_0110000001_????? -`define AMO_AND 32'b1111010_?????_?????_0110000010_????? -`define AMO_OR 32'b1111010_?????_?????_0110000011_????? -`define AMO_MIN 32'b1111010_?????_?????_0110000100_????? -`define AMO_MAX 32'b1111010_?????_?????_0110000101_????? -`define AMO_MINU 32'b1111010_?????_?????_0110000110_????? -`define AMO_MAXU 32'b1111010_?????_?????_0110000111_????? -`define JALR_C 32'b1111011_00000_?????_0000000000_????? -`define JALR_R 32'b1111011_00000_?????_0000000001_????? -`define JALR_J 32'b1111011_00000_?????_0000000010_????? -`define RDNPC 32'b1111011_00000_00000_0010000000_????? -`define MFCR 32'b1111011_?????_00000_0100000000_????? -`define MTCR 32'b1111011_?????_?????_0110000000_00000 -`define SYNC 32'b1111011_00000_00000_1000000000_00000 -`define SYSCALL 32'b1111011_00000_00000_1010000000_00000 -`define BREAK 32'b1111011_00000_00000_1100000000_00000 -`define EI 32'b1111110_00000_00000_0000000000_????? -`define DI 32'b1111110_00000_00000_0010000000_????? -`define ERET 32'b1111110_00000_00000_0100000000_00000 -`define MFPCR 32'b1111110_?????_00000_1000000000_????? -`define MTPCR 32'b1111110_?????_?????_1010000000_00000 +`define LH 32'b1111000_?????_?????_000_???????????? +`define LW 32'b1111000_?????_?????_000_???????????? +`define LD 32'b1111000_?????_?????_000_???????????? +`define LBU 32'b1111000_?????_?????_000_???????????? +`define LHU 32'b1111000_?????_?????_000_???????????? +`define LWU 32'b1111000_?????_?????_000_???????????? +`define SYNCI 32'b1111000_00000_?????_000_???????????? +`define SB 32'b1111001_?????_?????_000_000000000000 +`define SH 32'b1111001_?????_?????_000_000000000000 +`define SW 32'b1111001_?????_?????_000_000000000000 +`define SD 32'b1111001_?????_?????_000_000000000000 +`define AMOW_ADD 32'b1111010_?????_?????_0000000000_????? +`define AMOW_SWAP 32'b1111010_?????_?????_0000000000_????? +`define AMOW_AND 32'b1111010_?????_?????_0000000000_????? +`define AMOW_OR 32'b1111010_?????_?????_0000000000_????? +`define AMOW_MIN 32'b1111010_?????_?????_0000000000_????? +`define AMOW_MAX 32'b1111010_?????_?????_0000000000_????? +`define AMOW_MINU 32'b1111010_?????_?????_0000000000_????? +`define AMOW_MAXU 32'b1111010_?????_?????_0000000000_????? +`define AMO_ADD 32'b1111010_?????_?????_0000000000_????? +`define AMO_SWAP 32'b1111010_?????_?????_0000000000_????? +`define AMO_AND 32'b1111010_?????_?????_0000000000_????? +`define AMO_OR 32'b1111010_?????_?????_0000000000_????? +`define AMO_MIN 32'b1111010_?????_?????_0000000000_????? +`define AMO_MAX 32'b1111010_?????_?????_0000000000_????? +`define AMO_MINU 32'b1111010_?????_?????_0000000000_????? +`define AMO_MAXU 32'b1111010_?????_?????_0000000000_????? +`define RDNPC 32'b1111011_00000_00000_0000000000_????? +`define MFCR 32'b1111011_?????_00000_0000000000_????? +`define MTCR 32'b1111011_?????_?????_0000000000_00000 +`define SYNC 32'b1111011_00000_00000_0000000000_00000 +`define SYSCALL 32'b1111011_00000_00000_0000000000_00000 +`define EI 32'b1101011_00000_00000_0000000000_????? +`define DI 32'b1101011_00000_00000_0000000000_????? +`define MFPCR 32'b1101011_?????_00000_0000000000_????? +`define MTPCR 32'b1101011_?????_?????_0000000000_00000 +`define ERET 32'b1101011_00000_00000_0000000000_00000 `define ADD_S 32'b1101010_?????_?????_0000000000_????? -`define SUB_S 32'b1101010_?????_?????_0000000001_????? -`define MUL_S 32'b1101010_?????_?????_0000000010_????? -`define DIV_S 32'b1101010_?????_?????_0000000011_????? -`define SQRT_S 32'b1101010_00000_?????_0000000100_????? -`define SGNINJ_S 32'b1101010_?????_?????_0000000101_????? -`define SGNINJN_S 32'b1101010_?????_?????_0000000110_????? -`define SGNMUL_S 32'b1101010_?????_?????_0000000111_????? -`define ADD_D 32'b1101010_?????_?????_1100000000_????? -`define SUB_D 32'b1101010_?????_?????_1100000001_????? -`define MUL_D 32'b1101010_?????_?????_1100000010_????? -`define DIV_D 32'b1101010_?????_?????_1100000011_????? -`define SQRT_D 32'b1101010_00000_?????_1100000100_????? -`define SGNINJ_D 32'b1101010_?????_?????_1100000101_????? -`define SGNINJN_D 32'b1101010_?????_?????_1100000110_????? -`define SGNMUL_D 32'b1101010_?????_?????_1100000111_????? -`define ADD_S_RM 32'b1101010_?????_?????_00_??_100000_????? -`define SUB_S_RM 32'b1101010_?????_?????_00_??_100001_????? -`define MUL_S_RM 32'b1101010_?????_?????_00_??_100010_????? -`define DIV_S_RM 32'b1101010_?????_?????_00_??_100011_????? -`define SQRT_S_RM 32'b1101010_00000_?????_00_??_100100_????? -`define ADD_D_RM 32'b1101010_?????_?????_11_??_100000_????? -`define SUB_D_RM 32'b1101010_?????_?????_11_??_100001_????? -`define MUL_D_RM 32'b1101010_?????_?????_11_??_100010_????? -`define DIV_D_RM 32'b1101010_?????_?????_11_??_100011_????? -`define SQRT_D_RM 32'b1101010_00000_?????_11_??_100100_????? -`define CVT_L_S_RM 32'b1101010_00000_?????_00_??_101000_????? -`define CVTU_L_S_RM 32'b1101010_00000_?????_00_??_101001_????? -`define CVT_W_S_RM 32'b1101010_00000_?????_00_??_101010_????? -`define CVTU_W_S_RM 32'b1101010_00000_?????_00_??_101011_????? -`define CVT_L_D_RM 32'b1101010_00000_?????_11_??_101000_????? -`define CVTU_L_D_RM 32'b1101010_00000_?????_11_??_101001_????? -`define CVT_W_D_RM 32'b1101010_00000_?????_11_??_101010_????? -`define CVTU_W_D_RM 32'b1101010_00000_?????_11_??_101011_????? -`define CVT_S_L 32'b1101010_00000_?????_0000001100_????? -`define CVTU_S_L 32'b1101010_00000_?????_0000001101_????? -`define CVT_S_W 32'b1101010_00000_?????_0000001110_????? -`define CVTU_S_W 32'b1101010_00000_?????_0000001111_????? -`define CVT_D_L 32'b1101010_00000_?????_1100001100_????? -`define CVTU_D_L 32'b1101010_00000_?????_1100001101_????? -`define CVT_D_W 32'b1101010_00000_?????_1100001110_????? -`define CVTU_D_W 32'b1101010_00000_?????_1100001111_????? -`define CVT_S_L_RM 32'b1101010_00000_?????_00_??_101100_????? -`define CVTU_S_L_RM 32'b1101010_00000_?????_00_??_101101_????? -`define CVT_S_W_RM 32'b1101010_00000_?????_00_??_101110_????? -`define CVTU_S_W_RM 32'b1101010_00000_?????_00_??_101111_????? -`define CVT_D_L_RM 32'b1101010_00000_?????_11_??_101100_????? -`define CVTU_D_L_RM 32'b1101010_00000_?????_11_??_101101_????? -`define CVT_S_D 32'b1101010_00000_?????_0000010011_????? -`define CVT_D_S 32'b1101010_00000_?????_1100010000_????? -`define CVT_S_D_RM 32'b1101010_00000_?????_00_??_110011_????? -`define C_EQ_S 32'b1101010_?????_?????_0000010101_????? -`define C_LT_S 32'b1101010_?????_?????_0000010110_????? -`define C_LE_S 32'b1101010_?????_?????_0000010111_????? -`define C_EQ_D 32'b1101010_?????_?????_1100010101_????? -`define C_LT_D 32'b1101010_?????_?????_1100010110_????? -`define C_LE_D 32'b1101010_?????_?????_1100010111_????? -`define MFF_S 32'b1101010_?????_00000_0001011000_????? -`define MFF_D 32'b1101010_?????_00000_1101011000_????? -`define MFFL_D 32'b1101010_?????_00000_1101011001_????? -`define MFFH_D 32'b1101010_?????_00000_1101011010_????? -`define MTF_S 32'b1101010_00000_?????_0001011100_????? -`define MTF_D 32'b1101010_00000_?????_1101011100_????? -`define MTFLH_D 32'b1101010_?????_?????_1101111100_????? -`define L_S 32'b1101000_?????_?????_010_???????????? -`define L_D 32'b1101000_?????_?????_011_???????????? -`define S_S 32'b1101001_?????_?????_010_???????????? -`define S_D 32'b1101001_?????_?????_011_???????????? +`define SUB_S 32'b1101010_?????_?????_0000000000_????? +`define MUL_S 32'b1101010_?????_?????_0000000000_????? +`define DIV_S 32'b1101010_?????_?????_0000000000_????? +`define SQRT_S 32'b1101010_00000_?????_0000000000_????? +`define SGNINJ_S 32'b1101010_?????_?????_0000000000_????? +`define SGNINJN_S 32'b1101010_?????_?????_0000000000_????? +`define SGNMUL_S 32'b1101010_?????_?????_0000000000_????? +`define ADD_D 32'b1101010_?????_?????_0000000000_????? +`define SUB_D 32'b1101010_?????_?????_0000000000_????? +`define MUL_D 32'b1101010_?????_?????_0000000000_????? +`define DIV_D 32'b1101010_?????_?????_0000000000_????? +`define SQRT_D 32'b1101010_00000_?????_0000000000_????? +`define SGNINJ_D 32'b1101010_?????_?????_0000000000_????? +`define SGNINJN_D 32'b1101010_?????_?????_0000000000_????? +`define SGNMUL_D 32'b1101010_?????_?????_0000000000_????? +`define ADD_S_RM 32'b1101010_?????_?????_00_??_000000_????? +`define SUB_S_RM 32'b1101010_?????_?????_00_??_000000_????? +`define MUL_S_RM 32'b1101010_?????_?????_00_??_000000_????? +`define DIV_S_RM 32'b1101010_?????_?????_00_??_000000_????? +`define SQRT_S_RM 32'b1101010_00000_?????_00_??_000000_????? +`define ADD_D_RM 32'b1101010_?????_?????_00_??_000000_????? +`define SUB_D_RM 32'b1101010_?????_?????_00_??_000000_????? +`define MUL_D_RM 32'b1101010_?????_?????_00_??_000000_????? +`define DIV_D_RM 32'b1101010_?????_?????_00_??_000000_????? +`define SQRT_D_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_L_S_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_L_S_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_W_S_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_W_S_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_L_D_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_L_D_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_W_D_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_W_D_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_S_L 32'b1101010_00000_?????_0000000000_????? +`define CVTU_S_L 32'b1101010_00000_?????_0000000000_????? +`define CVT_S_W 32'b1101010_00000_?????_0000000000_????? +`define CVTU_S_W 32'b1101010_00000_?????_0000000000_????? +`define CVT_D_L 32'b1101010_00000_?????_0000000000_????? +`define CVTU_D_L 32'b1101010_00000_?????_0000000000_????? +`define CVT_D_W 32'b1101010_00000_?????_0000000000_????? +`define CVTU_D_W 32'b1101010_00000_?????_0000000000_????? +`define CVT_S_L_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_S_L_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_S_W_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_S_W_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_D_L_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVTU_D_L_RM 32'b1101010_00000_?????_00_??_000000_????? +`define CVT_S_D 32'b1101010_00000_?????_0000000000_????? +`define CVT_D_S 32'b1101010_00000_?????_0000000000_????? +`define CVT_S_D_RM 32'b1101010_00000_?????_00_??_000000_????? +`define C_EQ_S 32'b1101010_?????_?????_0000000000_????? +`define C_LT_S 32'b1101010_?????_?????_0000000000_????? +`define C_LE_S 32'b1101010_?????_?????_0000000000_????? +`define C_EQ_D 32'b1101010_?????_?????_0000000000_????? +`define C_LT_D 32'b1101010_?????_?????_0000000000_????? +`define C_LE_D 32'b1101010_?????_?????_0000000000_????? +`define MFF_S 32'b1101010_?????_00000_0000000000_????? +`define MFF_D 32'b1101010_?????_00000_0000000000_????? +`define MFFL_D 32'b1101010_?????_00000_0000000000_????? +`define MFFH_D 32'b1101010_?????_00000_0000000000_????? +`define MTF_S 32'b1101010_00000_?????_0000000000_????? +`define MTF_D 32'b1101010_00000_?????_0000000000_????? +`define MTFLH_D 32'b1101010_?????_?????_0000000000_????? +`define L_S 32'b1101000_?????_?????_000_???????????? +`define L_D 32'b1101000_?????_?????_000_???????????? +`define S_S 32'b1101001_?????_?????_000_000000000000 +`define S_D 32'b1101001_?????_?????_000_000000000000 `define MADD_S 32'b1101100_?????_?????_00000_?????_????? `define MSUB_S 32'b1101101_?????_?????_00000_?????_????? `define NMSUB_S 32'b1101110_?????_?????_00000_?????_????? `define NMADD_S 32'b1101111_?????_?????_00000_?????_????? -`define MADD_D 32'b1101100_?????_?????_11000_?????_????? -`define MSUB_D 32'b1101101_?????_?????_11000_?????_????? -`define NMSUB_D 32'b1101110_?????_?????_11000_?????_????? -`define NMADD_D 32'b1101111_?????_?????_11000_?????_????? -`define MADD_S_RM 32'b1101100_?????_?????_00_??_1_?????_????? -`define MSUB_S_RM 32'b1101101_?????_?????_00_??_1_?????_????? -`define NMSUB_S_RM 32'b1101110_?????_?????_00_??_1_?????_????? -`define NMADD_S_RM 32'b1101111_?????_?????_00_??_1_?????_????? -`define MADD_D_RM 32'b1101100_?????_?????_11_??_1_?????_????? -`define MSUB_D_RM 32'b1101101_?????_?????_11_??_1_?????_????? -`define NMSUB_D_RM 32'b1101110_?????_?????_11_??_1_?????_????? -`define NMADD_D_RM 32'b1101111_?????_?????_11_??_1_?????_????? +`define MADD_D 32'b1101100_?????_?????_00000_?????_????? +`define MSUB_D 32'b1101101_?????_?????_00000_?????_????? +`define NMSUB_D 32'b1101110_?????_?????_00000_?????_????? +`define NMADD_D 32'b1101111_?????_?????_00000_?????_????? +`define MADD_S_RM 32'b1101100_?????_?????_00_??_0_?????_????? +`define MSUB_S_RM 32'b1101101_?????_?????_00_??_0_?????_????? +`define NMSUB_S_RM 32'b1101110_?????_?????_00_??_0_?????_????? +`define NMADD_S_RM 32'b1101111_?????_?????_00_??_0_?????_????? +`define MADD_D_RM 32'b1101100_?????_?????_00_??_0_?????_????? +`define MSUB_D_RM 32'b1101101_?????_?????_00_??_0_?????_????? +`define NMSUB_D_RM 32'b1101110_?????_?????_00_??_0_?????_????? +`define NMADD_D_RM 32'b1101111_?????_?????_00_??_0_?????_????? |