Lines Matching refs:rj
170 enum loongarch_gpr rj)
172 emit_insn(ctx, or, rd, rj, LOONGARCH_GPR_ZERO);
203 static inline void cond_jmp_offset(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
208 /* PC += jmp_offset if rj == rd */
209 emit_insn(ctx, beq, rj, rd, jmp_offset);
213 /* PC += jmp_offset if rj != rd */
214 emit_insn(ctx, bne, rj, rd, jmp_offset);
217 /* PC += jmp_offset if rj > rd (unsigned) */
218 emit_insn(ctx, bltu, rd, rj, jmp_offset);
221 /* PC += jmp_offset if rj < rd (unsigned) */
222 emit_insn(ctx, bltu, rj, rd, jmp_offset);
225 /* PC += jmp_offset if rj >= rd (unsigned) */
226 emit_insn(ctx, bgeu, rj, rd, jmp_offset);
229 /* PC += jmp_offset if rj <= rd (unsigned) */
230 emit_insn(ctx, bgeu, rd, rj, jmp_offset);
233 /* PC += jmp_offset if rj > rd (signed) */
234 emit_insn(ctx, blt, rd, rj, jmp_offset);
237 /* PC += jmp_offset if rj < rd (signed) */
238 emit_insn(ctx, blt, rj, rd, jmp_offset);
241 /* PC += jmp_offset if rj >= rd (signed) */
242 emit_insn(ctx, bge, rj, rd, jmp_offset);
245 /* PC += jmp_offset if rj <= rd (signed) */
246 emit_insn(ctx, bge, rd, rj, jmp_offset);
251 static inline void cond_jmp_offs26(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
255 cond_jmp_offset(ctx, cond, rj, rd, 2);
264 static inline int emit_cond_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
279 cond_jmp_offs26(ctx, cond, rj, rd, jmp_offset);
296 static inline int emit_tailcall_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
300 cond_jmp_offset(ctx, cond, rj, rd, jmp_offset);