Lines Matching refs:flags

124 	if ((flags & (ALT_SIGN_EXT | REG2_SOURCE)) == (ALT_SIGN_EXT | REG2_SOURCE)) { \
130 if (flags & ALT_SIGN_EXT) { \
131 if (flags & REG1_SOURCE) { \
135 if (flags & REG2_SOURCE) { \
142 if ((flags & (ALT_SIGN_EXT | REG1_SOURCE)) == (ALT_SIGN_EXT | REG1_SOURCE)) { \
147 …JIT_INLINE sljit_s32 emit_single_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 flags, in emit_single_op() argument
163 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
176 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
181 else if ((flags & REG_DEST) && op == SLJIT_MOV_S8) in emit_single_op()
191 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
204 return push_inst(compiler, NOR | RC(flags) | S(src2) | A(dst) | B(src2)); in emit_single_op()
208 return push_inst(compiler, ((flags & ALT_FORM1) ? CNTLZW : CNTLZD) | S(src2) | A(dst)); 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()
217 …FAIL_IF(push_inst(compiler, ((flags & ALT_FORM1) ? SRWI(27) : SRDI(58)) | S(TMP_REG1) | A(TMP_REG1… in emit_single_op()
221 if (flags & ALT_FORM1) { in emit_single_op()
222 if (flags & ALT_SIGN_EXT) { in emit_single_op()
230 if (flags & ALT_SIGN_EXT) in emit_single_op()
235 if (flags & ALT_FORM2) { in emit_single_op()
239 if (flags & ALT_FORM3) in emit_single_op()
244 if (flags & ALT_FORM4) { in emit_single_op()
251 if (flags & ALT_FORM3) { in emit_single_op()
256 if (flags & ALT_FORM4) { in emit_single_op()
257 if (flags & ALT_FORM5) in emit_single_op()
263 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
266 if (flags & ALT_FORM5) in emit_single_op()
268 return push_inst(compiler, ADD | RC(flags) | D(dst) | A(src1) | B(src2)); in emit_single_op()
275 if (flags & ALT_FORM1) { in emit_single_op()
276 if (flags & ALT_FORM2) { in emit_single_op()
277 …FAIL_IF(push_inst(compiler, CMPLI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler… in emit_single_op()
278 if (!(flags & ALT_FORM3)) in emit_single_op()
282 …FAIL_IF(push_inst(compiler, CMPL | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
283 if (!(flags & ALT_FORM3)) in emit_single_op()
288 if (flags & ALT_FORM2) { in emit_single_op()
289 if (flags & ALT_FORM3) { in emit_single_op()
290 …FAIL_IF(push_inst(compiler, CMPI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler-… in emit_single_op()
291 if (!(flags & ALT_FORM4)) in emit_single_op()
295 … FAIL_IF(push_inst(compiler, CMP | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
296 if (!(flags & ALT_FORM4)) in emit_single_op()
301 if (flags & ALT_FORM3) { in emit_single_op()
302 if (flags & ALT_SIGN_EXT) { in emit_single_op()
319 if (flags & ALT_SIGN_EXT) in emit_single_op()
324 if (flags & ALT_FORM4) { in emit_single_op()
330 if (!(flags & ALT_SET_FLAGS)) { in emit_single_op()
336 if (flags & ALT_FORM5) in emit_single_op()
348 if (flags & ALT_FORM1) { in emit_single_op()
353 if (flags & ALT_FORM2) 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()
358 if (flags & ALT_FORM1) { in emit_single_op()
362 if (flags & ALT_FORM2) { in emit_single_op()
366 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
369 if (flags & ALT_FORM1) { in emit_single_op()
373 if (flags & ALT_FORM2) { in emit_single_op()
377 if (flags & ALT_FORM3) { in emit_single_op()
384 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
387 if (flags & ALT_FORM1) { in emit_single_op()
391 if (flags & ALT_FORM2) { in emit_single_op()
395 if (flags & ALT_FORM3) { in emit_single_op()
402 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
406 if (flags & ALT_FORM1) { in emit_single_op()
410 if (flags & ALT_FORM2) { in emit_single_op()
412 return push_inst(compiler, SLWI(imm) | RC(flags) | S(src1) | A(dst)); in emit_single_op()
416 return push_inst(compiler, SLDI(imm) | RC(flags) | S(src1) | A(dst)); in emit_single_op()
420 FAIL_IF(push_inst(compiler, ANDI | S(src2) | A(TMP_REG2) | ((flags & ALT_FORM2) ? 0x1f : 0x3f))); in emit_single_op()
424 …return push_inst(compiler, ((flags & ALT_FORM2) ? SLW : SLD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
428 if (flags & ALT_FORM1) { in emit_single_op()
432 if (flags & ALT_FORM2) { in emit_single_op()
435 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | RLWI_SH((32 - imm) & 0x1f) | RL… in emit_single_op()
440 …return push_inst(compiler, RLDICL | RC(flags) | S(src1) | A(dst) | RLDI_SH((64 - imm) & 0x3f) | RL… in emit_single_op()
444 FAIL_IF(push_inst(compiler, ANDI | S(src2) | A(TMP_REG2) | ((flags & ALT_FORM2) ? 0x1f : 0x3f))); in emit_single_op()
448 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRW : SRD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
452 if (flags & ALT_FORM1) { in emit_single_op()
456 if (flags & ALT_FORM2) { in emit_single_op()
458 return push_inst(compiler, SRAWI | RC(flags) | S(src1) | A(dst) | (imm << 11)); in emit_single_op()
462 return push_inst(compiler, SRADI | RC(flags) | S(src1) | A(dst) | RLDI_SH(imm)); in emit_single_op()
466 FAIL_IF(push_inst(compiler, ANDI | S(src2) | A(TMP_REG2) | ((flags & ALT_FORM2) ? 0x1f : 0x3f))); in emit_single_op()
470 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRAW : SRAD) | RC(flags) | S(src1) | A(dst) | B(… in emit_single_op()
474 if (flags & ALT_FORM1) { in emit_single_op()
481 if (flags & ALT_FORM2) { in emit_single_op()
495 …return push_inst(compiler, ((flags & ALT_FORM2) ? (RLWNM | RLWI_MBE(0, 31)) : (RLDCL | RLDI_MB(0))… in emit_single_op()