Lines Matching defs:rs1
225 static inline u32 rv_r_insn(u8 funct7, u8 rs2, u8 rs1, u8 funct3, u8 rd, in rv_r_insn()
232 static inline u32 rv_i_insn(u16 imm11_0, u8 rs1, u8 funct3, u8 rd, u8 opcode) in rv_i_insn()
238 static inline u32 rv_s_insn(u16 imm11_0, u8 rs2, u8 rs1, u8 funct3, u8 opcode) in rv_s_insn()
246 static inline u32 rv_b_insn(u16 imm12_1, u8 rs2, u8 rs1, u8 funct3, u8 opcode) in rv_b_insn()
270 static inline u32 rv_amo_insn(u8 funct5, u8 aq, u8 rl, u8 rs2, u8 rs1, in rv_amo_insn()
303 static inline u16 rv_cl_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rd, in rv_cl_insn()
310 static inline u16 rv_cs_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rs2, in rv_cs_insn()
333 static inline u32 rv_addi(u8 rd, u8 rs1, u16 imm11_0) in rv_addi()
338 static inline u32 rv_andi(u8 rd, u8 rs1, u16 imm11_0) in rv_andi()
343 static inline u32 rv_ori(u8 rd, u8 rs1, u16 imm11_0) in rv_ori()
348 static inline u32 rv_xori(u8 rd, u8 rs1, u16 imm11_0) in rv_xori()
353 static inline u32 rv_slli(u8 rd, u8 rs1, u16 imm11_0) in rv_slli()
358 static inline u32 rv_srli(u8 rd, u8 rs1, u16 imm11_0) in rv_srli()
363 static inline u32 rv_srai(u8 rd, u8 rs1, u16 imm11_0) in rv_srai()
378 static inline u32 rv_add(u8 rd, u8 rs1, u8 rs2) in rv_add()
383 static inline u32 rv_sub(u8 rd, u8 rs1, u8 rs2) in rv_sub()
388 static inline u32 rv_sltu(u8 rd, u8 rs1, u8 rs2) in rv_sltu()
393 static inline u32 rv_and(u8 rd, u8 rs1, u8 rs2) in rv_and()
398 static inline u32 rv_or(u8 rd, u8 rs1, u8 rs2) in rv_or()
403 static inline u32 rv_xor(u8 rd, u8 rs1, u8 rs2) in rv_xor()
408 static inline u32 rv_sll(u8 rd, u8 rs1, u8 rs2) in rv_sll()
413 static inline u32 rv_srl(u8 rd, u8 rs1, u8 rs2) in rv_srl()
418 static inline u32 rv_sra(u8 rd, u8 rs1, u8 rs2) in rv_sra()
423 static inline u32 rv_mul(u8 rd, u8 rs1, u8 rs2) in rv_mul()
428 static inline u32 rv_mulhu(u8 rd, u8 rs1, u8 rs2) in rv_mulhu()
433 static inline u32 rv_divu(u8 rd, u8 rs1, u8 rs2) in rv_divu()
438 static inline u32 rv_remu(u8 rd, u8 rs1, u8 rs2) in rv_remu()
448 static inline u32 rv_jalr(u8 rd, u8 rs1, u16 imm11_0) in rv_jalr()
453 static inline u32 rv_beq(u8 rs1, u8 rs2, u16 imm12_1) in rv_beq()
458 static inline u32 rv_bne(u8 rs1, u8 rs2, u16 imm12_1) in rv_bne()
463 static inline u32 rv_bltu(u8 rs1, u8 rs2, u16 imm12_1) in rv_bltu()
468 static inline u32 rv_bgtu(u8 rs1, u8 rs2, u16 imm12_1) in rv_bgtu()
473 static inline u32 rv_bgeu(u8 rs1, u8 rs2, u16 imm12_1) in rv_bgeu()
478 static inline u32 rv_bleu(u8 rs1, u8 rs2, u16 imm12_1) in rv_bleu()
483 static inline u32 rv_blt(u8 rs1, u8 rs2, u16 imm12_1) in rv_blt()
488 static inline u32 rv_bgt(u8 rs1, u8 rs2, u16 imm12_1) in rv_bgt()
493 static inline u32 rv_bge(u8 rs1, u8 rs2, u16 imm12_1) in rv_bge()
498 static inline u32 rv_ble(u8 rs1, u8 rs2, u16 imm12_1) in rv_ble()
503 static inline u32 rv_lw(u8 rd, u16 imm11_0, u8 rs1) in rv_lw()
508 static inline u32 rv_lbu(u8 rd, u16 imm11_0, u8 rs1) in rv_lbu()
513 static inline u32 rv_lhu(u8 rd, u16 imm11_0, u8 rs1) in rv_lhu()
518 static inline u32 rv_sb(u8 rs1, u16 imm11_0, u8 rs2) in rv_sb()
523 static inline u32 rv_sh(u8 rs1, u16 imm11_0, u8 rs2) in rv_sh()
528 static inline u32 rv_sw(u8 rs1, u16 imm11_0, u8 rs2) in rv_sw()
533 static inline u32 rv_amoadd_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoadd_w()
549 static inline u16 rvc_lw(u8 rd, u32 imm7, u8 rs1) in rvc_lw()
558 static inline u16 rvc_sw(u8 rs1, u32 imm7, u8 rs2) in rvc_sw()
639 static inline u16 rvc_jr(u8 rs1) in rvc_jr()
649 static inline u16 rvc_jalr(u8 rs1) in rvc_jalr()
676 static inline u32 rv_addiw(u8 rd, u8 rs1, u16 imm11_0) in rv_addiw()
681 static inline u32 rv_slliw(u8 rd, u8 rs1, u16 imm11_0) in rv_slliw()
686 static inline u32 rv_srliw(u8 rd, u8 rs1, u16 imm11_0) in rv_srliw()
691 static inline u32 rv_sraiw(u8 rd, u8 rs1, u16 imm11_0) in rv_sraiw()
696 static inline u32 rv_addw(u8 rd, u8 rs1, u8 rs2) in rv_addw()
701 static inline u32 rv_subw(u8 rd, u8 rs1, u8 rs2) in rv_subw()
706 static inline u32 rv_sllw(u8 rd, u8 rs1, u8 rs2) in rv_sllw()
711 static inline u32 rv_srlw(u8 rd, u8 rs1, u8 rs2) in rv_srlw()
716 static inline u32 rv_sraw(u8 rd, u8 rs1, u8 rs2) in rv_sraw()
721 static inline u32 rv_mulw(u8 rd, u8 rs1, u8 rs2) in rv_mulw()
726 static inline u32 rv_divuw(u8 rd, u8 rs1, u8 rs2) in rv_divuw()
731 static inline u32 rv_remuw(u8 rd, u8 rs1, u8 rs2) in rv_remuw()
736 static inline u32 rv_ld(u8 rd, u16 imm11_0, u8 rs1) in rv_ld()
741 static inline u32 rv_lwu(u8 rd, u16 imm11_0, u8 rs1) in rv_lwu()
746 static inline u32 rv_sd(u8 rs1, u16 imm11_0, u8 rs2) in rv_sd()
751 static inline u32 rv_amoadd_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoadd_d()
758 static inline u16 rvc_ld(u8 rd, u32 imm8, u8 rs1) in rvc_ld()
767 static inline u16 rvc_sd(u8 rs1, u32 imm8, u8 rs2) in rvc_sd()
824 static inline void emit_add(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_add()
893 static inline void emit_sub(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_sub()
901 static inline void emit_or(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_or()
909 static inline void emit_and(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_and()
917 static inline void emit_xor(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_xor()
925 static inline void emit_lw(u8 rd, s32 off, u8 rs1, struct rv_jit_context *ctx) in emit_lw()
935 static inline void emit_sw(u8 rs1, s32 off, u8 rs2, struct rv_jit_context *ctx) in emit_sw()
956 static inline void emit_ld(u8 rd, s32 off, u8 rs1, struct rv_jit_context *ctx) in emit_ld()
966 static inline void emit_sd(u8 rs1, s32 off, u8 rs2, struct rv_jit_context *ctx) in emit_sd()
976 static inline void emit_subw(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_subw()