Skip to main content

RV64I

Constant RV64I 

Source
pub const RV64I: &str = "set = \"RV64I\" # auto-generated, based on riscv-opcodes 5181d13bef845edfb511e3132a7e661090e3204b\nwidth = 32\n\n[formats]\nnames = [\n    \"format-1-0\",\n    \"format-2-0\",\n    \"format-3-0\",\n    \"format-4-0\",\n    \"format-5-0\",\n    \"format-6-0\",\n    \"format-7-0\",\n    \"format-8-0\",\n    \"format-9-0\",\n    \"format-10-0\",\n]\nparts = [\n    [\n        \"rd_Register_int\",\n        5,\n        \"Register_int\",\n    ],\n    [\n        \"rd_Register_float\",\n        5,\n        \"Register_float\",\n    ],\n    [\n        \"rs1_Register_int\",\n        5,\n        \"Register_int\",\n    ],\n    [\n        \"rs1_Register_float\",\n        5,\n        \"Register_float\",\n    ],\n    [\n        \"rs2_Register_int\",\n        5,\n        \"Register_int\",\n    ],\n    [\n        \"rs2_Register_float\",\n        5,\n        \"Register_float\",\n    ],\n    [\n        \"fm\",\n        4,\n        \"u8\",\n    ],\n    [\n        \"pred\",\n        4,\n        \"Mapping_fence\",\n    ],\n    [\n        \"succ\",\n        4,\n        \"Mapping_fence\",\n    ],\n    [\n        \"shamtd\",\n        6,\n        \"u8\",\n    ],\n    [\n        \"shamtw\",\n        5,\n        \"u8\",\n    ],\n    [\n        \"none\",\n        32,\n        \"u32\",\n    ],\n    [\n        \"imm\",\n        32,\n        \"VInt\",\n    ],\n    [\n        \"himm\",\n        32,\n        \"VInt\",\n        \"hex\",\n    ],\n]\n\n[types]\nnames = [\n    \"type-1-0\",\n    \"type-2-0\",\n    \"type-3-0\",\n    \"type-4-0\",\n    \"type-5-0\",\n    \"type-6-0\",\n    \"type-7-0\",\n    \"type-8-0\",\n    \"type-9-0\",\n    \"type-10-0\",\n]\n[[types.type-1-0]]\nname = \"none\"\ntop = 31\nbot = 25\n\n[[types.type-1-0]]\nname = \"rs2_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-1-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-1-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-1-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-1-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-2-0]]\nname = \"imm\"\ntop = 11\nbot = 0\n\n[[types.type-2-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-2-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-2-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-2-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-3-0]]\nname = \"himm\"\ntop = 19\nbot = 0\n\n[[types.type-3-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-3-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-4-0]]\nname = \"imm\"\ntop = 12\nbot = 12\n\n[[types.type-4-0]]\nname = \"imm\"\ntop = 10\nbot = 5\n\n[[types.type-4-0]]\nname = \"rs2_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-4-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-4-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-4-0]]\nname = \"imm\"\ntop = 4\nbot = 1\n\n[[types.type-4-0]]\nname = \"imm\"\ntop = 11\nbot = 11\n\n[[types.type-4-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-5-0]]\nname = \"none\"\ntop = 31\nbot = 0\n\n[[types.type-6-0]]\nname = \"fm\"\ntop = 3\nbot = 0\n\n[[types.type-6-0]]\nname = \"pred\"\ntop = 3\nbot = 0\n\n[[types.type-6-0]]\nname = \"succ\"\ntop = 3\nbot = 0\n\n[[types.type-6-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-6-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-6-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-6-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-7-0]]\nname = \"imm\"\ntop = 20\nbot = 20\n\n[[types.type-7-0]]\nname = \"imm\"\ntop = 10\nbot = 1\n\n[[types.type-7-0]]\nname = \"imm\"\ntop = 11\nbot = 11\n\n[[types.type-7-0]]\nname = \"imm\"\ntop = 19\nbot = 12\n\n[[types.type-7-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-7-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-8-0]]\nname = \"imm\"\ntop = 11\nbot = 5\n\n[[types.type-8-0]]\nname = \"rs2_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-8-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-8-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-8-0]]\nname = \"imm\"\ntop = 4\nbot = 0\n\n[[types.type-8-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-9-0]]\nname = \"none\"\ntop = 31\nbot = 26\n\n[[types.type-9-0]]\nname = \"shamtd\"\ntop = 5\nbot = 0\n\n[[types.type-9-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-9-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-9-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-9-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[[types.type-10-0]]\nname = \"none\"\ntop = 31\nbot = 25\n\n[[types.type-10-0]]\nname = \"shamtw\"\ntop = 4\nbot = 0\n\n[[types.type-10-0]]\nname = \"rs1_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-10-0]]\nname = \"none\"\ntop = 14\nbot = 12\n\n[[types.type-10-0]]\nname = \"rd_Register_int\"\ntop = 4\nbot = 0\n\n[[types.type-10-0]]\nname = \"none\"\ntop = 6\nbot = 0\n\n[format-1-0]\ntype = \"type-1-0\"\n\n[format-2-0]\ntype = \"type-2-0\"\n\n[format-3-0]\ntype = \"type-3-0\"\n\n[format-4-0]\ntype = \"type-4-0\"\n\n[format-5-0]\ntype = \"type-5-0\"\n\n[format-6-0]\ntype = \"type-6-0\"\n\n[format-7-0]\ntype = \"type-7-0\"\n\n[format-8-0]\ntype = \"type-8-0\"\n\n[format-9-0]\ntype = \"type-9-0\"\n\n[format-10-0]\ntype = \"type-10-0\"\n\n[mappings]\nnames = [\"Register_int\", \"Register_float\", \"Mapping_fence\"]\nnumber = 32\nRegister_int = [\n    \"zero\",\n    \"ra\",\n    \"sp\",\n    \"gp\",\n    \"tp\",\n    \"t0\",\n    \"t1\",\n    \"t2\",\n    \"s0\",\n    \"s1\",\n    \"a0\",\n    \"a1\",\n    \"a2\",\n    \"a3\",\n    \"a4\",\n    \"a5\",\n    \"a6\",\n    \"a7\",\n    \"s2\",\n    \"s3\",\n    \"s4\",\n    \"s5\",\n    \"s6\",\n    \"s7\",\n    \"s8\",\n    \"s9\",\n    \"s10\",\n    \"s11\",\n    \"t3\",\n    \"t4\",\n    \"t5\",\n    \"t6\",\n]\nRegister_float = [\n    \"ft0\",\n    \"ft1\",\n    \"ft2\",\n    \"ft3\",\n    \"ft4\",\n    \"ft5\",\n    \"ft6\",\n    \"ft7\",\n    \"fs0\",\n    \"fs1\",\n    \"fa0\",\n    \"fa1\",\n    \"fa2\",\n    \"fa3\",\n    \"fa4\",\n    \"fa5\",\n    \"fa6\",\n    \"fa7\",\n    \"fs2\",\n    \"fs3\",\n    \"fs4\",\n    \"fs5\",\n    \"fs6\",\n    \"fs7\",\n    \"fs8\",\n    \"fs9\",\n    \"fs10\",\n    \"fs11\",\n    \"ft8\",\n    \"ft9\",\n    \"ft10\",\n    \"ft11\",\n]\nMapping_fence = [\n    \"unknown\",\n    \"w\",\n    \"r\",\n    \"rw\",\n    \"o\",\n    \"ow\",\n    \"or\",\n    \"orw\",\n    \"i\",\n    \"iw\",\n    \"ir\",\n    \"irw\",\n    \"io\",\n    \"iow\",\n    \"ior\",\n    \"iorw\",\n]\n\n[format-1-0.repr]\ndefault = \"$name$ %rd_Register_int%, %rs1_Register_int%, %rs2_Register_int%\"\n\n[format-2-0.repr]\ndefault = \"$name$ %rd_Register_int%, %imm%(%rs1_Register_int%)\"\naddi = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\naddiw = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\nandi = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\nori = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\nslti = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\nsltiu = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\nxori = \"$name$ %rd_Register_int%, %rs1_Register_int%, %imm%\"\n\n[format-3-0.repr]\ndefault = \"$name$ %rd_Register_int%, %himm%\"\n\n[format-4-0.repr]\ndefault = \"$name$ %rs1_Register_int%, %rs2_Register_int%, %imm%\"\n\n[format-5-0.repr]\ndefault = \"$name$\"\n\n[format-6-0.repr]\ndefault = \"$name$ %pred%, %succ%\"\n\n[format-7-0.repr]\ndefault = \"$name$ %rd_Register_int%, %imm%\"\n\n[format-8-0.repr]\ndefault = \"$name$ %rs2_Register_int%, %imm%(%rs1_Register_int%)\"\n\n[format-9-0.repr]\ndefault = \"$name$ %rd_Register_int%, %rs1_Register_int%, %shamtd%\"\n\n[format-10-0.repr]\ndefault = \"$name$ %rd_Register_int%, %rs1_Register_int%, %shamtw%\"\n\n[format-1-0.instructions.add]\nmask = 0xfe00707f\nmatch = 0x33\n\n[format-1-0.instructions.addw]\nmask = 0xfe00707f\nmatch = 0x3b\n\n[format-1-0.instructions.and]\nmask = 0xfe00707f\nmatch = 0x7033\n\n[format-1-0.instructions.or]\nmask = 0xfe00707f\nmatch = 0x6033\n\n[format-1-0.instructions.sll]\nmask = 0xfe00707f\nmatch = 0x1033\n\n[format-1-0.instructions.sllw]\nmask = 0xfe00707f\nmatch = 0x103b\n\n[format-1-0.instructions.slt]\nmask = 0xfe00707f\nmatch = 0x2033\n\n[format-1-0.instructions.sltu]\nmask = 0xfe00707f\nmatch = 0x3033\n\n[format-1-0.instructions.sra]\nmask = 0xfe00707f\nmatch = 0x40005033\n\n[format-1-0.instructions.sraw]\nmask = 0xfe00707f\nmatch = 0x4000503b\n\n[format-1-0.instructions.srl]\nmask = 0xfe00707f\nmatch = 0x5033\n\n[format-1-0.instructions.srlw]\nmask = 0xfe00707f\nmatch = 0x503b\n\n[format-1-0.instructions.sub]\nmask = 0xfe00707f\nmatch = 0x40000033\n\n[format-1-0.instructions.subw]\nmask = 0xfe00707f\nmatch = 0x4000003b\n\n[format-1-0.instructions.xor]\nmask = 0xfe00707f\nmatch = 0x4033\n\n[format-2-0.instructions.addi]\nmask = 0x707f\nmatch = 0x13\n\n[format-2-0.instructions.addiw]\nmask = 0x707f\nmatch = 0x1b\n\n[format-2-0.instructions.andi]\nmask = 0x707f\nmatch = 0x7013\n\n[format-2-0.instructions.jalr]\nmask = 0x707f\nmatch = 0x67\n\n[format-2-0.instructions.lb]\nmask = 0x707f\nmatch = 0x3\n\n[format-2-0.instructions.lbu]\nmask = 0x707f\nmatch = 0x4003\n\n[format-2-0.instructions.ld]\nmask = 0x707f\nmatch = 0x3003\n\n[format-2-0.instructions.lh]\nmask = 0x707f\nmatch = 0x1003\n\n[format-2-0.instructions.lhu]\nmask = 0x707f\nmatch = 0x5003\n\n[format-2-0.instructions.lw]\nmask = 0x707f\nmatch = 0x2003\n\n[format-2-0.instructions.lwu]\nmask = 0x707f\nmatch = 0x6003\n\n[format-2-0.instructions.ori]\nmask = 0x707f\nmatch = 0x6013\n\n[format-2-0.instructions.slti]\nmask = 0x707f\nmatch = 0x2013\n\n[format-2-0.instructions.sltiu]\nmask = 0x707f\nmatch = 0x3013\n\n[format-2-0.instructions.xori]\nmask = 0x707f\nmatch = 0x4013\n\n[format-3-0.instructions.auipc]\nmask = 0x7f\nmatch = 0x17\nunsigned = true\n\n[format-3-0.instructions.lui]\nmask = 0x7f\nmatch = 0x37\nunsigned = true\n\n[format-4-0.instructions.beq]\nmask = 0x707f\nmatch = 0x63\n\n[format-4-0.instructions.bge]\nmask = 0x707f\nmatch = 0x5063\n\n[format-4-0.instructions.bgeu]\nmask = 0x707f\nmatch = 0x7063\n\n[format-4-0.instructions.blt]\nmask = 0x707f\nmatch = 0x4063\n\n[format-4-0.instructions.bltu]\nmask = 0x707f\nmatch = 0x6063\n\n[format-4-0.instructions.bne]\nmask = 0x707f\nmatch = 0x1063\n\n[format-5-0.instructions.ebreak]\nmask = 0xffffffff\nmatch = 0x100073\n\n[format-5-0.instructions.ecall]\nmask = 0xffffffff\nmatch = 0x73\n\n[format-6-0.instructions.fence]\nmask = 0x707f\nmatch = 0xf\n\n[format-7-0.instructions.jal]\nmask = 0x7f\nmatch = 0x6f\n\n[format-8-0.instructions.sb]\nmask = 0x707f\nmatch = 0x23\n\n[format-8-0.instructions.sd]\nmask = 0x707f\nmatch = 0x3023\n\n[format-8-0.instructions.sh]\nmask = 0x707f\nmatch = 0x1023\n\n[format-8-0.instructions.sw]\nmask = 0x707f\nmatch = 0x2023\n\n[format-9-0.instructions.slli]\nmask = 0xfc00707f\nmatch = 0x1013\n\n[format-9-0.instructions.srai]\nmask = 0xfc00707f\nmatch = 0x40005013\n\n[format-9-0.instructions.srli]\nmask = 0xfc00707f\nmatch = 0x5013\n\n[format-10-0.instructions.slliw]\nmask = 0xfe00707f\nmatch = 0x101b\n\n[format-10-0.instructions.sraiw]\nmask = 0xfe00707f\nmatch = 0x4000501b\n\n[format-10-0.instructions.srliw]\nmask = 0xfe00707f\nmatch = 0x501b\n";