Lines Matching defs:dst

118 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx);
149 static inline void emit_addu(unsigned int dst, unsigned int src1,
152 emit_instr(ctx, addu, dst, src1, src2);
161 static inline void emit_load_imm(unsigned int dst, u32 imm, struct jit_ctx *ctx)
169 uasm_i_ori(&p, dst, r_tmp_imm, imm & 0xffff);
172 uasm_i_addiu(&p, dst, r_zero, imm);
181 static inline void emit_or(unsigned int dst, unsigned int src1,
184 emit_instr(ctx, or, dst, src1, src2);
187 static inline void emit_ori(unsigned int dst, unsigned src, u32 imm,
192 emit_or(dst, src, r_tmp, ctx);
194 emit_instr(ctx, ori, dst, src, imm);
198 static inline void emit_daddiu(unsigned int dst, unsigned int src,
205 emit_instr(ctx, daddiu, dst, src, imm);
208 static inline void emit_addiu(unsigned int dst, unsigned int src,
213 emit_addu(dst, r_tmp, src, ctx);
215 emit_instr(ctx, addiu, dst, src, imm);
219 static inline void emit_and(unsigned int dst, unsigned int src1,
222 emit_instr(ctx, and, dst, src1, src2);
225 static inline void emit_andi(unsigned int dst, unsigned int src,
231 emit_and(dst, src, r_tmp, ctx);
233 emit_instr(ctx, andi, dst, src, imm);
237 static inline void emit_xor(unsigned int dst, unsigned int src1,
240 emit_instr(ctx, xor, dst, src1, src2);
243 static inline void emit_xori(ptr dst, ptr src, u32 imm, struct jit_ctx *ctx)
248 emit_xor(dst, src, r_tmp, ctx);
250 emit_instr(ctx, xori, dst, src, imm);
259 static inline void emit_subu(unsigned int dst, unsigned int src1,
262 emit_instr(ctx, subu, dst, src1, src2);
270 static inline void emit_sllv(unsigned int dst, unsigned int src,
273 emit_instr(ctx, sllv, dst, src, sa);
276 static inline void emit_sll(unsigned int dst, unsigned int src,
282 emit_jit_reg_move(dst, r_zero, ctx);
284 emit_instr(ctx, sll, dst, src, sa);
287 static inline void emit_srlv(unsigned int dst, unsigned int src,
290 emit_instr(ctx, srlv, dst, src, sa);
293 static inline void emit_srl(unsigned int dst, unsigned int src,
299 emit_jit_reg_move(dst, r_zero, ctx);
301 emit_instr(ctx, srl, dst, src, sa);
304 static inline void emit_slt(unsigned int dst, unsigned int src1,
307 emit_instr(ctx, slt, dst, src1, src2);
310 static inline void emit_sltu(unsigned int dst, unsigned int src1,
313 emit_instr(ctx, sltu, dst, src1, src2);
316 static inline void emit_sltiu(unsigned dst, unsigned int src,
322 emit_sltu(dst, src, r_tmp, ctx);
324 emit_instr(ctx, sltiu, dst, src, imm);
374 static inline void emit_mul(unsigned int dst, unsigned int src1,
377 emit_instr(ctx, mul, dst, src1, src2);
380 static inline void emit_div(unsigned int dst, unsigned int src,
385 uasm_i_divu(&p, dst, src);
387 uasm_i_mflo(&p, dst);
392 static inline void emit_mod(unsigned int dst, unsigned int src,
397 uasm_i_divu(&p, dst, src);
399 uasm_i_mfhi(&p, dst);
404 static inline void emit_dsll(unsigned int dst, unsigned int src,
407 emit_instr(ctx, dsll, dst, src, sa);
410 static inline void emit_dsrl32(unsigned int dst, unsigned int src,
413 emit_instr(ctx, dsrl32, dst, src, sa);
416 static inline void emit_wsbh(unsigned int dst, unsigned int src,
419 emit_instr(ctx, wsbh, dst, src);
423 static inline void emit_load_ptr(unsigned int dst, unsigned int src,
427 emit_long_instr(ctx, LW, dst, imm, src);
447 static inline void emit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx)
449 emit_long_instr(ctx, ADDU, dst, src, r_zero);
453 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx)
455 emit_addu(dst, src, r_zero, ctx);