Lines Matching refs:dst
30 #define ASM_SLJIT_CLZ(src, dst) \ argument
31 __asm__ volatile ( "cntlzd %0, %1" : "=r"(dst) : "r"(src) )
124 #define CLRLDI(dst, src, n) \ argument
125 (RLDICL | S(src) | A(dst) | RLDI_SH(0) | RLDI_MB(n))
153 sljit_s32 dst, sljit_s32 src1, sljit_s32 src2) in emit_single_op() argument
161 if (dst != src2) in emit_single_op()
162 return push_inst(compiler, OR | S(src2) | A(dst) | B(src2)); in emit_single_op()
170 return push_inst(compiler, EXTSW | S(src2) | A(dst)); in emit_single_op()
171 return push_inst(compiler, CLRLDI(dst, src2, 32)); in emit_single_op()
174 SLJIT_ASSERT(dst == src2); in emit_single_op()
183 return push_inst(compiler, EXTSB | S(src2) | A(dst)); in emit_single_op()
184 return push_inst(compiler, CLRLDI(dst, src2, 56)); in emit_single_op()
187 return push_inst(compiler, EXTSB | S(src2) | A(dst)); in emit_single_op()
189 SLJIT_ASSERT(dst == src2); in emit_single_op()
198 return push_inst(compiler, EXTSH | S(src2) | A(dst)); in emit_single_op()
199 return push_inst(compiler, CLRLDI(dst, src2, 48)); in emit_single_op()
202 SLJIT_ASSERT(dst == src2); in emit_single_op()
208 return push_inst(compiler, ((flags & ALT_FORM1) ? CNTLZW : CNTLZD) | S(src2) | A(dst)); in emit_single_op()
213 FAIL_IF(push_inst(compiler, AND | S(src2) | A(dst) | B(TMP_REG1))); in emit_single_op()
214 FAIL_IF(push_inst(compiler, ((flags & ALT_FORM1) ? CNTLZW : CNTLZD) | S(dst) | A(dst))); in emit_single_op()
215 FAIL_IF(push_inst(compiler, ADDI | D(TMP_REG1) | A(dst) | IMM((flags & ALT_FORM1) ? -32 : -64))); in emit_single_op()
218 return push_inst(compiler, XOR | S(dst) | A(dst) | B(TMP_REG1)); in emit_single_op()
229 …FAIL_IF(push_inst(compiler, ADD | OE(ALT_SET_FLAGS) | RC(ALT_SET_FLAGS) | D(dst) | A(src1) | B(src… in emit_single_op()
231 return push_inst(compiler, SRDI(32) | S(dst) | A(dst)); in emit_single_op()
240 return push_inst(compiler, ADDIS | D(dst) | A(src1) | compiler->imm); in emit_single_op()
245 …FAIL_IF(push_inst(compiler, ADDIS | D(dst) | A(src1) | (((imm >> 16) & 0xffff) + ((imm >> 15) & 0x… in emit_single_op()
246 src1 = dst; in emit_single_op()
249 return push_inst(compiler, ADDI | D(dst) | A(src1) | (imm & 0xffff)); in emit_single_op()
254 return push_inst(compiler, ADDIC | D(dst) | A(src1) | compiler->imm); in emit_single_op()
258 FAIL_IF(push_inst(compiler, ADDI | D(dst) | A(src1) | compiler->imm)); in emit_single_op()
260 FAIL_IF(push_inst(compiler, ADD | D(dst) | A(src1) | B(src2))); in emit_single_op()
261 return push_inst(compiler, CMPI | A(dst) | 0); in emit_single_op()
264 return push_inst(compiler, ADD | D(dst) | A(src1) | B(src2)); in emit_single_op()
267 return push_inst(compiler, ADDC | RC(ALT_SET_FLAGS) | D(dst) | A(src1) | B(src2)); in emit_single_op()
268 return push_inst(compiler, ADD | RC(flags) | D(dst) | A(src1) | B(src2)); in emit_single_op()
272 return push_inst(compiler, ADDE | D(dst) | A(src1) | B(src2)); in emit_single_op()
280 return push_inst(compiler, ADDI | D(dst) | A(src1) | (-compiler->imm & 0xffff)); in emit_single_op()
285 return push_inst(compiler, SUBF | D(dst) | A(src2) | B(src1)); in emit_single_op()
293 return push_inst(compiler, ADDI | D(dst) | A(src1) | (-compiler->imm & 0xffff)); in emit_single_op()
298 return push_inst(compiler, SUBF | D(dst) | A(src2) | B(src1)); in emit_single_op()
315 …FAIL_IF(push_inst(compiler, SUBF | OE(ALT_SET_FLAGS) | RC(ALT_SET_FLAGS) | D(dst) | A(src2) | B(sr… in emit_single_op()
317 FAIL_IF(push_inst(compiler, NEG | OE(ALT_SET_FLAGS) | RC(ALT_SET_FLAGS) | D(dst) | A(src2))); in emit_single_op()
320 return push_inst(compiler, SRDI(32) | S(dst) | A(dst)); in emit_single_op()
327 return push_inst(compiler, SUBFIC | D(dst) | A(src1) | compiler->imm); in emit_single_op()
332 return push_inst(compiler, SUBF | D(dst) | A(src2) | B(src1)); in emit_single_op()
337 return push_inst(compiler, SUBFC | RC(ALT_SET_FLAGS) | D(dst) | A(src2) | B(src1)); in emit_single_op()
340 return push_inst(compiler, SUBF | RC(ALT_SET_FLAGS) | D(dst) | A(src2) | B(src1)); in emit_single_op()
341 return push_inst(compiler, NEG | RC(ALT_SET_FLAGS) | D(dst) | A(src2)); in emit_single_op()
345 return push_inst(compiler, SUBFE | D(dst) | A(src2) | B(src1)); in emit_single_op()
350 return push_inst(compiler, MULLI | D(dst) | A(src1) | compiler->imm); in emit_single_op()
354 return push_inst(compiler, MULLW | OE(flags) | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
355 return push_inst(compiler, MULLD | OE(flags) | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
360 return push_inst(compiler, ANDI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
364 return push_inst(compiler, ANDIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
366 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
371 return push_inst(compiler, ORI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
375 return push_inst(compiler, ORIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
381 FAIL_IF(push_inst(compiler, ORI | S(src1) | A(dst) | IMM(imm))); in emit_single_op()
382 return push_inst(compiler, ORIS | S(dst) | A(dst) | IMM(imm >> 16)); in emit_single_op()
384 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
389 return push_inst(compiler, XORI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
393 return push_inst(compiler, XORIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
399 FAIL_IF(push_inst(compiler, XORI | S(src1) | A(dst) | IMM(imm))); in emit_single_op()
400 return push_inst(compiler, XORIS | S(dst) | A(dst) | IMM(imm >> 16)); in emit_single_op()
405 return push_inst(compiler, NOR | RC(flags) | S(src2) | A(dst) | B(src2)); in emit_single_op()
407 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
417 return push_inst(compiler, SLWI(imm) | RC(flags) | S(src1) | A(dst)); in emit_single_op()
421 return push_inst(compiler, SLDI(imm) | RC(flags) | S(src1) | A(dst)); in emit_single_op()
429 …return push_inst(compiler, ((flags & ALT_FORM2) ? SLW : SLD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
440 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | RLWI_SH((32 - imm) & 0x1f) | RL… in emit_single_op()
445 …return push_inst(compiler, RLDICL | RC(flags) | S(src1) | A(dst) | RLDI_SH((64 - imm) & 0x3f) | RL… in emit_single_op()
453 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRW : SRD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
463 return push_inst(compiler, SRAWI | RC(flags) | S(src1) | A(dst) | (imm << 11)); in emit_single_op()
467 return push_inst(compiler, SRADI | RC(flags) | S(src1) | A(dst) | RLDI_SH(imm)); in emit_single_op()
475 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRAW : SRAD) | RC(flags) | S(src1) | A(dst) | B(… in emit_single_op()
488 return push_inst(compiler, RLWINM | S(src1) | A(dst) | RLWI_SH(imm) | RLWI_MBE(0, 31)); in emit_single_op()
492 return push_inst(compiler, RLDICL | S(src1) | A(dst) | RLDI_SH(imm)); in emit_single_op()
500 …ags & ALT_FORM2) ? (RLWNM | RLWI_MBE(0, 31)) : (RLDCL | RLDI_MB(0))) | S(src1) | A(dst) | B(src2)); in emit_single_op()
572 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_sw() argument
575 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_sw()
602 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_f64_from_sw()
603 return emit_op_mem(compiler, FLOAT_DATA(op), TMP_FREG1, dst, dstw, TMP_REG1); in sljit_emit_fop1_conv_f64_from_sw()
608 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_uw() argument
611 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_uw()
666 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_f64_from_uw()
667 return emit_op_mem(compiler, FLOAT_DATA(op), TMP_FREG1, dst, dstw, TMP_REG1); in sljit_emit_fop1_conv_f64_from_uw()