Home
last modified time | relevance | path

Searched refs:sext_xlen (Results 1 – 25 of 127) sorted by relevance

123456

/dports/emulators/riscv-isa-sim/riscv-isa-sim-4f12984/riscv/insns/
H A Dsra_u.h2 sreg_t rs1 = sext_xlen(RS1);
6 WRITE_RD(sext_xlen(((rs1 >> (sa - 1)) + 1) >> 1));
8 WRITE_RD(sext_xlen(rs1));
H A Drem.h2 sreg_t lhs = sext_xlen(RS1);
3 sreg_t rhs = sext_xlen(RS2);
9 WRITE_RD(sext_xlen(lhs % rhs));
H A Ddiv.h2 sreg_t lhs = sext_xlen(RS1);
3 sreg_t rhs = sext_xlen(RS2);
9 WRITE_RD(sext_xlen(lhs / rhs));
H A Dsrai_u.h2 sreg_t rs1 = sext_xlen(RS1);
7 WRITE_RD(sext_xlen(((rs1 >> (sa - 1)) + 1) >> 1));
9 WRITE_RD(sext_xlen(rs1));
H A Dsmal.h5 res += sext_xlen(P_SH(RS2, 0) * P_SH(RS2, 1));
8 res = sext_xlen(P_SH(RS2, 0) * P_SH(RS2, 1)) +
9 sext_xlen(P_SH(RS2, 2) * P_SH(RS2, 3)) + RS1;
H A Dsra.h1 WRITE_RD(sext_xlen(sext_xlen(RS1) >> (RS2 & (xlen-1))));
H A Dsrai.h2 WRITE_RD(sext_xlen(sext_xlen(RS1) >> SHAMT));
H A Dc_srai.h3 WRITE_RVC_RS1S(sext_xlen(sext_xlen(RVC_RS1S) >> insn.rvc_zimm()));
H A Dremu.h5 WRITE_RD(sext_xlen(RS1));
7 WRITE_RD(sext_xlen(lhs % rhs));
H A Dadd.h1 WRITE_RD(sext_xlen(RS1 + RS2));
H A Dsub.h1 WRITE_RD(sext_xlen(RS1 - RS2));
H A Dsll.h1 WRITE_RD(sext_xlen(RS1 << (RS2 & (xlen-1))));
H A Daddi.h1 WRITE_RD(sext_xlen(RS1 + insn.i_imm()));
H A Dauipc.h1 WRITE_RD(sext_xlen(insn.u_imm() + pc));
H A Dc_sub.h2 WRITE_RVC_RS1S(sext_xlen(RVC_RS1S - RVC_RS2S));
H A Dsh3add.h2 WRITE_RD(sext_xlen((RS1 << 3) + RS2));
H A Dsrl.h1 WRITE_RD(sext_xlen(zext_xlen(RS1) >> (RS2 & (xlen-1))));
H A Dc_addi.h2 WRITE_RD(sext_xlen(RVC_RS1 + insn.rvc_imm()));
H A Dmul.h2 WRITE_RD(sext_xlen(RS1 * RS2));
H A Dsh1add.h2 WRITE_RD(sext_xlen((RS1 << 1) + RS2));
H A Dsh2add.h2 WRITE_RD(sext_xlen((RS1 << 2) + RS2));
H A Dslli.h2 WRITE_RD(sext_xlen(RS1 << SHAMT));
H A Dslo.h2 WRITE_RD(sext_xlen(~((~RS1) << (RS2 & (xlen-1)))));
H A Dmaxu.h2 WRITE_RD(sext_xlen(RS1 > RS2 ? RS1 : RS2));
/dports/emulators/riscv-isa-sim/riscv-isa-sim-4f12984/riscv/
H A Dinsn_template.cc8 reg_t npc = sext_xlen(pc + insn_length(OPCODE)); in rv32_NAME()
18 reg_t npc = sext_xlen(pc + insn_length(OPCODE)); in rv64_NAME()

123456