diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-01-20 20:37:22 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-01-20 20:37:22 -0800 |
commit | 478ff61a9244f13dbb4c605a32d428e46f0b4d5b (patch) | |
tree | 5c4152e015de435377b5092aa9850d56dd4583eb /inst.v | |
parent | b5770afc54cb5c445db574225d911ce330f62125 (diff) | |
download | riscv-opcodes-478ff61a9244f13dbb4c605a32d428e46f0b4d5b.zip riscv-opcodes-478ff61a9244f13dbb4c605a32d428e46f0b4d5b.tar.gz riscv-opcodes-478ff61a9244f13dbb4c605a32d428e46f0b4d5b.tar.bz2 |
[sim, pk, xcc, opcodes] great instruction renaming of 2011
Diffstat (limited to 'inst.v')
-rw-r--r-- | inst.v | 160 |
1 files changed, 81 insertions, 79 deletions
@@ -51,34 +51,34 @@ `define DIVUW 32'b?????_?????_?????_0000101001_1110111 `define REMW 32'b?????_?????_?????_0000110001_1110111 `define REMUW 32'b?????_?????_?????_0000111001_1110111 -`define LB 32'b?????_?????_????????????_000_1111000 -`define LH 32'b?????_?????_????????????_001_1111000 -`define LW 32'b?????_?????_????????????_010_1111000 -`define LD 32'b?????_?????_????????????_011_1111000 -`define LBU 32'b?????_?????_????????????_100_1111000 -`define LHU 32'b?????_?????_????????????_101_1111000 -`define LWU 32'b?????_?????_????????????_110_1111000 +`define L_B 32'b?????_?????_????????????_000_1111000 +`define L_H 32'b?????_?????_????????????_001_1111000 +`define L_W 32'b?????_?????_????????????_010_1111000 +`define L_D 32'b?????_?????_????????????_011_1111000 +`define L_BU 32'b?????_?????_????????????_100_1111000 +`define L_HU 32'b?????_?????_????????????_101_1111000 +`define L_WU 32'b?????_?????_????????????_110_1111000 `define SYNCI 32'b00000_?????_????????????_111_1111000 -`define SB 32'b?????_?????_?????_???????_000_1111001 -`define SH 32'b?????_?????_?????_???????_001_1111001 -`define SW 32'b?????_?????_?????_???????_010_1111001 -`define SD 32'b?????_?????_?????_???????_011_1111001 -`define AMOW_ADD 32'b?????_?????_?????_0000000010_1111010 -`define AMOW_SWAP 32'b?????_?????_?????_0000001010_1111010 -`define AMOW_AND 32'b?????_?????_?????_0000010010_1111010 -`define AMOW_OR 32'b?????_?????_?????_0000011010_1111010 -`define AMOW_MIN 32'b?????_?????_?????_0000100010_1111010 -`define AMOW_MAX 32'b?????_?????_?????_0000101010_1111010 -`define AMOW_MINU 32'b?????_?????_?????_0000110010_1111010 -`define AMOW_MAXU 32'b?????_?????_?????_0000111010_1111010 -`define AMO_ADD 32'b?????_?????_?????_0000000011_1111010 -`define AMO_SWAP 32'b?????_?????_?????_0000001011_1111010 -`define AMO_AND 32'b?????_?????_?????_0000010011_1111010 -`define AMO_OR 32'b?????_?????_?????_0000011011_1111010 -`define AMO_MIN 32'b?????_?????_?????_0000100011_1111010 -`define AMO_MAX 32'b?????_?????_?????_0000101011_1111010 -`define AMO_MINU 32'b?????_?????_?????_0000110011_1111010 -`define AMO_MAXU 32'b?????_?????_?????_0000111011_1111010 +`define S_B 32'b?????_?????_?????_???????_000_1111001 +`define S_H 32'b?????_?????_?????_???????_001_1111001 +`define S_W 32'b?????_?????_?????_???????_010_1111001 +`define S_D 32'b?????_?????_?????_???????_011_1111001 +`define AMOADD_W 32'b?????_?????_?????_0000000010_1111010 +`define AMOSWAP_W 32'b?????_?????_?????_0000001010_1111010 +`define AMOAND_W 32'b?????_?????_?????_0000010010_1111010 +`define AMOOR_W 32'b?????_?????_?????_0000011010_1111010 +`define AMOMIN_W 32'b?????_?????_?????_0000100010_1111010 +`define AMOMAX_W 32'b?????_?????_?????_0000101010_1111010 +`define AMOMINU_W 32'b?????_?????_?????_0000110010_1111010 +`define AMOMAXU_W 32'b?????_?????_?????_0000111010_1111010 +`define AMOADD_D 32'b?????_?????_?????_0000000011_1111010 +`define AMOSWAP_D 32'b?????_?????_?????_0000001011_1111010 +`define AMOAND_D 32'b?????_?????_?????_0000010011_1111010 +`define AMOOR_D 32'b?????_?????_?????_0000011011_1111010 +`define AMOMIN_D 32'b?????_?????_?????_0000100011_1111010 +`define AMOMAX_D 32'b?????_?????_?????_0000101011_1111010 +`define AMOMINU_D 32'b?????_?????_?????_0000110011_1111010 +`define AMOMAXU_D 32'b?????_?????_?????_0000111011_1111010 `define RDNPC 32'b?????_00000_00000_0000000000_1111011 `define MFCR 32'b?????_00000_?????_0000000001_1111011 `define MTCR 32'b00000_?????_?????_0000001001_1111011 @@ -89,46 +89,46 @@ `define MFPCR 32'b?????_00000_?????_0000000001_1101011 `define MTPCR 32'b00000_?????_?????_0000001001_1101011 `define ERET 32'b00000_00000_00000_0000000010_1101011 -`define ADD_S 32'b?????_?????_?????_00000_???_00_1101010 -`define SUB_S 32'b?????_?????_?????_00001_???_00_1101010 -`define MUL_S 32'b?????_?????_?????_00010_???_00_1101010 -`define DIV_S 32'b?????_?????_?????_00011_???_00_1101010 -`define SQRT_S 32'b?????_?????_00000_00100_???_00_1101010 -`define SGNINJ_S 32'b?????_?????_?????_0010100000_1101010 -`define SGNINJN_S 32'b?????_?????_?????_0011000000_1101010 -`define SGNMUL_S 32'b?????_?????_?????_0011100000_1101010 -`define ADD_D 32'b?????_?????_?????_00000_???_11_1101010 -`define SUB_D 32'b?????_?????_?????_00001_???_11_1101010 -`define MUL_D 32'b?????_?????_?????_00010_???_11_1101010 -`define DIV_D 32'b?????_?????_?????_00011_???_11_1101010 -`define SQRT_D 32'b?????_?????_00000_00100_???_11_1101010 -`define SGNINJ_D 32'b?????_?????_?????_0010100011_1101010 -`define SGNINJN_D 32'b?????_?????_?????_0011000011_1101010 -`define SGNMUL_D 32'b?????_?????_?????_0011100011_1101010 -`define CVT_L_S 32'b?????_?????_00000_01000_???_00_1101010 -`define CVTU_L_S 32'b?????_?????_00000_01001_???_00_1101010 -`define CVT_W_S 32'b?????_?????_00000_01010_???_00_1101010 -`define CVTU_W_S 32'b?????_?????_00000_01011_???_00_1101010 -`define CVT_L_D 32'b?????_?????_00000_01000_???_11_1101010 -`define CVTU_L_D 32'b?????_?????_00000_01001_???_11_1101010 -`define CVT_W_D 32'b?????_?????_00000_01010_???_11_1101010 -`define CVTU_W_D 32'b?????_?????_00000_01011_???_11_1101010 -`define CVT_S_L 32'b?????_?????_00000_01100_???_00_1101010 -`define CVTU_S_L 32'b?????_?????_00000_01101_???_00_1101010 -`define CVT_S_W 32'b?????_?????_00000_01110_???_00_1101010 -`define CVTU_S_W 32'b?????_?????_00000_01111_???_00_1101010 -`define CVT_D_L 32'b?????_?????_00000_01100_???_11_1101010 -`define CVTU_D_L 32'b?????_?????_00000_01101_???_11_1101010 -`define CVT_D_W 32'b?????_?????_00000_0111000011_1101010 -`define CVTU_D_W 32'b?????_?????_00000_0111100011_1101010 -`define CVT_S_D 32'b?????_?????_00000_10011_???_00_1101010 -`define CVT_D_S 32'b?????_?????_00000_1000000011_1101010 -`define C_EQ_S 32'b?????_?????_?????_1010100000_1101010 -`define C_LT_S 32'b?????_?????_?????_1011000000_1101010 -`define C_LE_S 32'b?????_?????_?????_1011100000_1101010 -`define C_EQ_D 32'b?????_?????_?????_1010100011_1101010 -`define C_LT_D 32'b?????_?????_?????_1011000011_1101010 -`define C_LE_D 32'b?????_?????_?????_1011100011_1101010 +`define FADD_S 32'b?????_?????_?????_00000_???_00_1101010 +`define FSUB_S 32'b?????_?????_?????_00001_???_00_1101010 +`define FMUL_S 32'b?????_?????_?????_00010_???_00_1101010 +`define FDIV_S 32'b?????_?????_?????_00011_???_00_1101010 +`define FSQRT_S 32'b?????_?????_00000_00100_???_00_1101010 +`define FSINJ_S 32'b?????_?????_?????_0010100000_1101010 +`define FSINJN_S 32'b?????_?????_?????_0011000000_1101010 +`define FSMUL_S 32'b?????_?????_?????_0011100000_1101010 +`define FADD_D 32'b?????_?????_?????_00000_???_11_1101010 +`define FSUB_D 32'b?????_?????_?????_00001_???_11_1101010 +`define FMUL_D 32'b?????_?????_?????_00010_???_11_1101010 +`define FDIV_D 32'b?????_?????_?????_00011_???_11_1101010 +`define FSQRT_D 32'b?????_?????_00000_00100_???_11_1101010 +`define FSINJ_D 32'b?????_?????_?????_0010100011_1101010 +`define FSINJN_D 32'b?????_?????_?????_0011000011_1101010 +`define FSMUL_D 32'b?????_?????_?????_0011100011_1101010 +`define FCVT_L_S 32'b?????_?????_00000_01000_???_00_1101010 +`define FCVTU_L_S 32'b?????_?????_00000_01001_???_00_1101010 +`define FCVT_W_S 32'b?????_?????_00000_01010_???_00_1101010 +`define FCVTU_W_S 32'b?????_?????_00000_01011_???_00_1101010 +`define FCVT_L_D 32'b?????_?????_00000_01000_???_11_1101010 +`define FCVTU_L_D 32'b?????_?????_00000_01001_???_11_1101010 +`define FCVT_W_D 32'b?????_?????_00000_01010_???_11_1101010 +`define FCVTU_W_D 32'b?????_?????_00000_01011_???_11_1101010 +`define FCVT_S_L 32'b?????_?????_00000_01100_???_00_1101010 +`define FCVTU_S_L 32'b?????_?????_00000_01101_???_00_1101010 +`define FCVT_S_W 32'b?????_?????_00000_01110_???_00_1101010 +`define FCVTU_S_W 32'b?????_?????_00000_01111_???_00_1101010 +`define FCVT_D_L 32'b?????_?????_00000_01100_???_11_1101010 +`define FCVTU_D_L 32'b?????_?????_00000_01101_???_11_1101010 +`define FCVT_D_W 32'b?????_?????_00000_0111000011_1101010 +`define FCVTU_D_W 32'b?????_?????_00000_0111100011_1101010 +`define FCVT_S_D 32'b?????_?????_00000_10011_???_00_1101010 +`define FCVT_D_S 32'b?????_?????_00000_1000000011_1101010 +`define FC_EQ_S 32'b?????_?????_?????_1010100000_1101010 +`define FC_LT_S 32'b?????_?????_?????_1011000000_1101010 +`define FC_LE_S 32'b?????_?????_?????_1011100000_1101010 +`define FC_EQ_D 32'b?????_?????_?????_1010100011_1101010 +`define FC_LT_D 32'b?????_?????_?????_1011000011_1101010 +`define FC_LE_D 32'b?????_?????_?????_1011100011_1101010 `define MFF_S 32'b?????_00000_?????_1100001000_1101010 `define MFF_D 32'b?????_00000_?????_1100001011_1101010 `define MFFL_D 32'b?????_00000_?????_1100101011_1101010 @@ -136,15 +136,17 @@ `define MTF_S 32'b?????_?????_00000_1110001000_1101010 `define MTF_D 32'b?????_?????_00000_1110001011_1101010 `define MTFLH_D 32'b?????_?????_?????_1110001111_1101010 -`define L_S 32'b?????_?????_????????????_010_1101000 -`define L_D 32'b?????_?????_????????????_011_1101000 -`define S_S 32'b?????_?????_?????_???????_010_1101001 -`define S_D 32'b?????_?????_?????_???????_011_1101001 -`define MADD_S 32'b?????_?????_?????_?????_???_00_1101100 -`define MSUB_S 32'b?????_?????_?????_?????_???_00_1101101 -`define NMSUB_S 32'b?????_?????_?????_?????_???_00_1101110 -`define NMADD_S 32'b?????_?????_?????_?????_???_00_1101111 -`define MADD_D 32'b?????_?????_?????_?????_???_11_1101100 -`define MSUB_D 32'b?????_?????_?????_?????_???_11_1101101 -`define NMSUB_D 32'b?????_?????_?????_?????_???_11_1101110 -`define NMADD_D 32'b?????_?????_?????_?????_???_11_1101111 +`define LF_W 32'b?????_?????_????????????_010_1101000 +`define LF_D 32'b?????_?????_????????????_011_1101000 +`define SF_W 32'b?????_?????_?????_???????_010_1101001 +`define SF_D 32'b?????_?????_?????_???????_011_1101001 +`define FSEL_S 32'b?????_?????_?????_0000000000_1100111 +`define FSEL_D 32'b?????_?????_?????_0000000011_1100111 +`define FMADD_S 32'b?????_?????_?????_?????_???_00_1101100 +`define FMSUB_S 32'b?????_?????_?????_?????_???_00_1101101 +`define FNMSUB_S 32'b?????_?????_?????_?????_???_00_1101110 +`define FNMADD_S 32'b?????_?????_?????_?????_???_00_1101111 +`define FMADD_D 32'b?????_?????_?????_?????_???_11_1101100 +`define FMSUB_D 32'b?????_?????_?????_?????_???_11_1101101 +`define FNMSUB_D 32'b?????_?????_?????_?????_???_11_1101110 +`define FNMADD_D 32'b?????_?????_?????_?????_???_11_1101111 |