Lines Matching refs:flags

129 	if ((flags & (ALT_SIGN_EXT | REG2_SOURCE)) == (ALT_SIGN_EXT | REG2_SOURCE)) { \
135 if (flags & ALT_SIGN_EXT) { \
136 if (flags & REG1_SOURCE) { \
140 if (flags & REG2_SOURCE) { \
147 if ((flags & (ALT_SIGN_EXT | REG1_SOURCE)) == (ALT_SIGN_EXT | REG1_SOURCE)) { \
152 …JIT_INLINE sljit_s32 emit_single_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 flags, in emit_single_op() argument
168 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
181 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
186 else if ((flags & REG_DEST) && op == SLJIT_MOV_S8) in emit_single_op()
196 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { 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 if (flags & ALT_FORM4) { 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()
411 if (flags & ALT_FORM1) { in emit_single_op()
415 if (flags & ALT_FORM2) { 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()
425 FAIL_IF(push_inst(compiler, ANDI | S(src2) | A(TMP_REG2) | ((flags & ALT_FORM2) ? 0x1f : 0x3f))); 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()
433 if (flags & ALT_FORM1) { in emit_single_op()
437 if (flags & ALT_FORM2) { 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()
449 FAIL_IF(push_inst(compiler, ANDI | S(src2) | A(TMP_REG2) | ((flags & ALT_FORM2) ? 0x1f : 0x3f))); 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()
457 if (flags & ALT_FORM1) { in emit_single_op()
461 if (flags & ALT_FORM2) { 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()
471 FAIL_IF(push_inst(compiler, ANDI | S(src2) | A(TMP_REG2) | ((flags & ALT_FORM2) ? 0x1f : 0x3f))); 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()
479 if (flags & ALT_FORM1) { in emit_single_op()
486 if (flags & ALT_FORM2) { in emit_single_op()
500 …return push_inst(compiler, ((flags & ALT_FORM2) ? (RLWNM | RLWI_MBE(0, 31)) : (RLDCL | RLDI_MB(0))… in emit_single_op()