Lines Matching refs:dst
30 #define ASM_SLJIT_CLZ(src, dst) \ argument
31 __asm__ volatile ( "cntlzd %0, %1" : "=r"(dst) : "r"(src) )
38 #define RLDI(dst, src, sh, mb, type) \ argument
39 …(HI(30) | S(src) | A(dst) | ((type) << 2) | (((sh) & 0x1f) << 11) | (((sh) & 0x20) >> 4) | (((mb) …
120 #define INS_CLEAR_LEFT(dst, src, from) \ argument
121 (RLDICL | S(src) | A(dst) | ((from) << 6) | (1 << 5))
149 sljit_si dst, sljit_si src1, sljit_si src2) in emit_single_op() argument
155 if (dst != src2) in emit_single_op()
156 return push_inst(compiler, OR | S(src2) | A(dst) | B(src2)); in emit_single_op()
164 return push_inst(compiler, EXTSW | S(src2) | A(dst)); in emit_single_op()
165 return push_inst(compiler, INS_CLEAR_LEFT(dst, src2, 0)); in emit_single_op()
168 SLJIT_ASSERT(dst == src2); in emit_single_op()
177 return push_inst(compiler, EXTSB | S(src2) | A(dst)); in emit_single_op()
178 return push_inst(compiler, INS_CLEAR_LEFT(dst, src2, 24)); in emit_single_op()
181 return push_inst(compiler, EXTSB | S(src2) | A(dst)); in emit_single_op()
183 SLJIT_ASSERT(dst == src2); in emit_single_op()
192 return push_inst(compiler, EXTSH | S(src2) | A(dst)); in emit_single_op()
193 return push_inst(compiler, INS_CLEAR_LEFT(dst, src2, 16)); in emit_single_op()
196 SLJIT_ASSERT(dst == src2); in emit_single_op()
203 return push_inst(compiler, NOR | RC(flags) | S(src2) | A(dst) | B(src2)); in emit_single_op()
208 return push_inst(compiler, NEG | OERC(flags) | D(dst) | A(src2)); in emit_single_op()
213 return push_inst(compiler, CNTLZW | RC(flags) | S(src2) | A(dst)); in emit_single_op()
214 return push_inst(compiler, CNTLZD | RC(flags) | S(src2) | A(dst)); in emit_single_op()
220 return push_inst(compiler, ADDI | D(dst) | A(src1) | compiler->imm); in emit_single_op()
225 return push_inst(compiler, ADDIS | D(dst) | A(src1) | compiler->imm); in emit_single_op()
230 return push_inst(compiler, ADDIC | D(dst) | A(src1) | compiler->imm); in emit_single_op()
234 FAIL_IF(push_inst(compiler, ADDI | D(dst) | A(src1) | (compiler->imm & 0xffff))); in emit_single_op()
235 …return push_inst(compiler, ADDIS | D(dst) | A(dst) | (((compiler->imm >> 16) & 0xffff) + ((compile… in emit_single_op()
238 return push_inst(compiler, ADD | D(dst) | A(src1) | B(src2)); in emit_single_op()
240 return push_inst(compiler, ADDC | OERC(ALT_SET_FLAGS) | D(dst) | A(src1) | B(src2)); in emit_single_op()
245 FAIL_IF(push_inst(compiler, ADDE | D(dst) | A(src1) | B(src2))); in emit_single_op()
249 return push_inst(compiler, ADDE | D(dst) | A(src1) | B(src2)); in emit_single_op()
255 return push_inst(compiler, SUBFIC | D(dst) | A(src1) | compiler->imm); in emit_single_op()
273 return push_inst(compiler, SUBF | D(dst) | A(src2) | B(src1)); in emit_single_op()
277 return push_inst(compiler, SUBFC | OERC(ALT_SET_FLAGS) | D(dst) | A(src2) | B(src1)); in emit_single_op()
282 FAIL_IF(push_inst(compiler, SUBFE | D(dst) | A(src2) | B(src1))); in emit_single_op()
286 return push_inst(compiler, SUBFE | D(dst) | A(src2) | B(src1)); in emit_single_op()
291 return push_inst(compiler, MULLI | D(dst) | A(src1) | compiler->imm); in emit_single_op()
295 return push_inst(compiler, MULLW | OERC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
296 return push_inst(compiler, MULLD | OERC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
301 return push_inst(compiler, ANDI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
305 return push_inst(compiler, ANDIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
307 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
312 return push_inst(compiler, ORI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
316 return push_inst(compiler, ORIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
320 FAIL_IF(push_inst(compiler, ORI | S(src1) | A(dst) | IMM(compiler->imm))); in emit_single_op()
321 return push_inst(compiler, ORIS | S(dst) | A(dst) | IMM(compiler->imm >> 16)); in emit_single_op()
323 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
328 return push_inst(compiler, XORI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
332 return push_inst(compiler, XORIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
336 FAIL_IF(push_inst(compiler, XORI | S(src1) | A(dst) | IMM(compiler->imm))); in emit_single_op()
337 return push_inst(compiler, XORIS | S(dst) | A(dst) | IMM(compiler->imm >> 16)); in emit_single_op()
339 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
346 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11) | ((31 - … in emit_single_op()
350 return push_inst(compiler, RLDI(dst, src1, compiler->imm, 63 - compiler->imm, 1) | RC(flags)); in emit_single_op()
353 …return push_inst(compiler, ((flags & ALT_FORM2) ? SLW : SLD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
360 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (((32 - compiler->imm) & 0x1f) … in emit_single_op()
364 return push_inst(compiler, RLDI(dst, src1, 64 - compiler->imm, compiler->imm, 0) | RC(flags)); in emit_single_op()
367 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRW : SRD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
376 FAIL_IF(push_inst(compiler, SRAWI | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11))); in emit_single_op()
380 …FAIL_IF(push_inst(compiler, SRADI | RC(flags) | S(src1) | A(dst) | ((compiler->imm & 0x1f) << 11) … in emit_single_op()
384 …FAIL_IF(push_inst(compiler, ((flags & ALT_FORM2) ? SRAW : SRAD) | RC(flags) | S(src1) | A(dst) | B… in emit_single_op()