Lines Matching defs:rd

229 static inline u32 rv_r_insn(u8 funct7, u8 rs2, u8 rs1, u8 funct3, u8 rd,  in rv_r_insn()
236 static inline u32 rv_i_insn(u16 imm11_0, u8 rs1, u8 funct3, u8 rd, u8 opcode) in rv_i_insn()
259 static inline u32 rv_u_insn(u32 imm31_12, u8 rd, u8 opcode) in rv_u_insn()
264 static inline u32 rv_j_insn(u32 imm20_1, u8 rd, u8 opcode) in rv_j_insn()
275 u8 funct3, u8 rd, u8 opcode) in rv_amo_insn()
284 static inline u16 rv_cr_insn(u8 funct4, u8 rd, u8 rs2, u8 op) in rv_cr_insn()
289 static inline u16 rv_ci_insn(u8 funct3, u32 imm6, u8 rd, u8 op) in rv_ci_insn()
302 static inline u16 rv_ciw_insn(u8 funct3, u32 uimm, u8 rd, u8 op) in rv_ciw_insn()
307 static inline u16 rv_cl_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rd, in rv_cl_insn()
321 static inline u16 rv_ca_insn(u8 funct6, u8 rd, u8 funct2, u8 rs2, u8 op) in rv_ca_insn()
327 static inline u16 rv_cb_insn(u8 funct3, u32 imm6, u8 funct2, u8 rd, u8 op) in rv_cb_insn()
337 static inline u32 rv_addi(u8 rd, u8 rs1, u16 imm11_0) in rv_addi()
342 static inline u32 rv_andi(u8 rd, u8 rs1, u16 imm11_0) in rv_andi()
347 static inline u32 rv_ori(u8 rd, u8 rs1, u16 imm11_0) in rv_ori()
352 static inline u32 rv_xori(u8 rd, u8 rs1, u16 imm11_0) in rv_xori()
357 static inline u32 rv_slli(u8 rd, u8 rs1, u16 imm11_0) in rv_slli()
362 static inline u32 rv_srli(u8 rd, u8 rs1, u16 imm11_0) in rv_srli()
367 static inline u32 rv_srai(u8 rd, u8 rs1, u16 imm11_0) in rv_srai()
372 static inline u32 rv_lui(u8 rd, u32 imm31_12) in rv_lui()
377 static inline u32 rv_auipc(u8 rd, u32 imm31_12) in rv_auipc()
382 static inline u32 rv_add(u8 rd, u8 rs1, u8 rs2) in rv_add()
387 static inline u32 rv_sub(u8 rd, u8 rs1, u8 rs2) in rv_sub()
392 static inline u32 rv_sltu(u8 rd, u8 rs1, u8 rs2) in rv_sltu()
397 static inline u32 rv_and(u8 rd, u8 rs1, u8 rs2) in rv_and()
402 static inline u32 rv_or(u8 rd, u8 rs1, u8 rs2) in rv_or()
407 static inline u32 rv_xor(u8 rd, u8 rs1, u8 rs2) in rv_xor()
412 static inline u32 rv_sll(u8 rd, u8 rs1, u8 rs2) in rv_sll()
417 static inline u32 rv_srl(u8 rd, u8 rs1, u8 rs2) in rv_srl()
422 static inline u32 rv_sra(u8 rd, u8 rs1, u8 rs2) in rv_sra()
427 static inline u32 rv_mul(u8 rd, u8 rs1, u8 rs2) in rv_mul()
432 static inline u32 rv_mulhu(u8 rd, u8 rs1, u8 rs2) in rv_mulhu()
437 static inline u32 rv_div(u8 rd, u8 rs1, u8 rs2) in rv_div()
442 static inline u32 rv_divu(u8 rd, u8 rs1, u8 rs2) in rv_divu()
447 static inline u32 rv_rem(u8 rd, u8 rs1, u8 rs2) in rv_rem()
452 static inline u32 rv_remu(u8 rd, u8 rs1, u8 rs2) in rv_remu()
457 static inline u32 rv_jal(u8 rd, u32 imm20_1) in rv_jal()
462 static inline u32 rv_jalr(u8 rd, u8 rs1, u16 imm11_0) in rv_jalr()
517 static inline u32 rv_lb(u8 rd, u16 imm11_0, u8 rs1) in rv_lb()
522 static inline u32 rv_lh(u8 rd, u16 imm11_0, u8 rs1) in rv_lh()
527 static inline u32 rv_lw(u8 rd, u16 imm11_0, u8 rs1) in rv_lw()
532 static inline u32 rv_lbu(u8 rd, u16 imm11_0, u8 rs1) in rv_lbu()
537 static inline u32 rv_lhu(u8 rd, u16 imm11_0, u8 rs1) in rv_lhu()
557 static inline u32 rv_amoadd_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoadd_w()
562 static inline u32 rv_amoand_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoand_w()
567 static inline u32 rv_amoor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoor_w()
572 static inline u32 rv_amoxor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoxor_w()
577 static inline u32 rv_amoswap_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoswap_w()
582 static inline u32 rv_lr_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_lr_w()
587 static inline u32 rv_sc_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_sc_w()
606 static inline u16 rvc_addi4spn(u8 rd, u32 imm10) in rvc_addi4spn()
615 static inline u16 rvc_lw(u8 rd, u32 imm7, u8 rs1) in rvc_lw()
633 static inline u16 rvc_addi(u8 rd, u32 imm6) in rvc_addi()
638 static inline u16 rvc_li(u8 rd, u32 imm6) in rvc_li()
652 static inline u16 rvc_lui(u8 rd, u32 imm6) in rvc_lui()
657 static inline u16 rvc_srli(u8 rd, u32 imm6) in rvc_srli()
662 static inline u16 rvc_srai(u8 rd, u32 imm6) in rvc_srai()
667 static inline u16 rvc_andi(u8 rd, u32 imm6) in rvc_andi()
672 static inline u16 rvc_sub(u8 rd, u8 rs) in rvc_sub()
677 static inline u16 rvc_xor(u8 rd, u8 rs) in rvc_xor()
682 static inline u16 rvc_or(u8 rd, u8 rs) in rvc_or()
687 static inline u16 rvc_and(u8 rd, u8 rs) in rvc_and()
692 static inline u16 rvc_slli(u8 rd, u32 imm6) in rvc_slli()
697 static inline u16 rvc_lwsp(u8 rd, u32 imm8) in rvc_lwsp()
710 static inline u16 rvc_mv(u8 rd, u8 rs) in rvc_mv()
720 static inline u16 rvc_add(u8 rd, u8 rs) in rvc_add()
742 static inline u32 rv_addiw(u8 rd, u8 rs1, u16 imm11_0) in rv_addiw()
747 static inline u32 rv_slliw(u8 rd, u8 rs1, u16 imm11_0) in rv_slliw()
752 static inline u32 rv_srliw(u8 rd, u8 rs1, u16 imm11_0) in rv_srliw()
757 static inline u32 rv_sraiw(u8 rd, u8 rs1, u16 imm11_0) in rv_sraiw()
762 static inline u32 rv_addw(u8 rd, u8 rs1, u8 rs2) in rv_addw()
767 static inline u32 rv_subw(u8 rd, u8 rs1, u8 rs2) in rv_subw()
772 static inline u32 rv_sllw(u8 rd, u8 rs1, u8 rs2) in rv_sllw()
777 static inline u32 rv_srlw(u8 rd, u8 rs1, u8 rs2) in rv_srlw()
782 static inline u32 rv_sraw(u8 rd, u8 rs1, u8 rs2) in rv_sraw()
787 static inline u32 rv_mulw(u8 rd, u8 rs1, u8 rs2) in rv_mulw()
792 static inline u32 rv_divw(u8 rd, u8 rs1, u8 rs2) in rv_divw()
797 static inline u32 rv_divuw(u8 rd, u8 rs1, u8 rs2) in rv_divuw()
802 static inline u32 rv_remw(u8 rd, u8 rs1, u8 rs2) in rv_remw()
807 static inline u32 rv_remuw(u8 rd, u8 rs1, u8 rs2) in rv_remuw()
812 static inline u32 rv_ld(u8 rd, u16 imm11_0, u8 rs1) in rv_ld()
817 static inline u32 rv_lwu(u8 rd, u16 imm11_0, u8 rs1) in rv_lwu()
827 static inline u32 rv_amoadd_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoadd_d()
832 static inline u32 rv_amoand_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoand_d()
837 static inline u32 rv_amoor_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoor_d()
842 static inline u32 rv_amoxor_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoxor_d()
847 static inline u32 rv_amoswap_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoswap_d()
852 static inline u32 rv_lr_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_lr_d()
857 static inline u32 rv_sc_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_sc_d()
864 static inline u16 rvc_ld(u8 rd, u32 imm8, u8 rs1) in rvc_ld()
882 static inline u16 rvc_subw(u8 rd, u8 rs) in rvc_subw()
887 static inline u16 rvc_addiw(u8 rd, u32 imm6) in rvc_addiw()
892 static inline u16 rvc_ldsp(u8 rd, u32 imm9) in rvc_ldsp()
912 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_jalr()
922 static inline void emit_mv(u8 rd, u8 rs, struct rv_jit_context *ctx) in emit_mv()
930 static inline void emit_add(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_add()
938 static inline void emit_addi(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_addi()
951 static inline void emit_li(u8 rd, s32 imm, struct rv_jit_context *ctx) in emit_li()
959 static inline void emit_lui(u8 rd, s32 imm, struct rv_jit_context *ctx) in emit_lui()
967 static inline void emit_slli(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_slli()
975 static inline void emit_andi(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_andi()
983 static inline void emit_srli(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_srli()
991 static inline void emit_srai(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_srai()
999 static inline void emit_sub(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_sub()
1007 static inline void emit_or(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_or()
1015 static inline void emit_and(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_and()
1023 static inline void emit_xor(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_xor()
1031 static inline void emit_lw(u8 rd, s32 off, u8 rs1, struct rv_jit_context *ctx) in emit_lw()
1054 static inline void emit_addiw(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_addiw()
1062 static inline void emit_ld(u8 rd, s32 off, u8 rs1, struct rv_jit_context *ctx) in emit_ld()
1082 static inline void emit_subw(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_subw()