Lines Matching refs:flags

122 	if ((flags & (ALT_SIGN_EXT | REG2_SOURCE)) == (ALT_SIGN_EXT | REG2_SOURCE)) { \
128 if (flags & ALT_SIGN_EXT) { \
129 if (flags & REG1_SOURCE) { \
133 if (flags & REG2_SOURCE) { \
140 if ((flags & (ALT_SIGN_EXT | REG1_SOURCE)) == (ALT_SIGN_EXT | REG1_SOURCE)) { \
145 …JIT_INLINE sljit_s32 emit_single_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 flags, in emit_single_op() argument
159 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
172 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
177 else if ((flags & REG_DEST) && op == SLJIT_MOV_S8) in emit_single_op()
187 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
200 return push_inst(compiler, NOR | RC(flags) | S(src2) | A(dst) | B(src2)); in emit_single_op()
205 if ((flags & (ALT_FORM1 | ALT_SIGN_EXT)) == (ALT_FORM1 | ALT_SIGN_EXT)) { in emit_single_op()
213 …return push_inst(compiler, NEG | OE((flags & ALT_FORM1) ? ALT_SET_FLAGS : 0) | RC(flags) | D(dst) … in emit_single_op()
217 if (flags & ALT_FORM1) in emit_single_op()
222 if (flags & ALT_FORM1) { in emit_single_op()
223 if (flags & ALT_SIGN_EXT) { in emit_single_op()
231 if (flags & ALT_SIGN_EXT) in emit_single_op()
236 if (flags & ALT_FORM2) { in emit_single_op()
240 if (flags & ALT_FORM3) in emit_single_op()
243 if (flags & ALT_FORM4) { in emit_single_op()
250 if (flags & ALT_FORM3) { in emit_single_op()
255 if (flags & ALT_FORM4) { in emit_single_op()
256 if (flags & ALT_FORM5) in emit_single_op()
262 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
265 if (flags & ALT_FORM5) in emit_single_op()
267 return push_inst(compiler, ADD | RC(flags) | D(dst) | A(src1) | B(src2)); in emit_single_op()
274 if (flags & ALT_FORM1) { in emit_single_op()
275 if (flags & ALT_FORM2) { in emit_single_op()
276 …FAIL_IF(push_inst(compiler, CMPLI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler… in emit_single_op()
277 if (!(flags & ALT_FORM3)) in emit_single_op()
281 …FAIL_IF(push_inst(compiler, CMPL | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
282 if (!(flags & ALT_FORM3)) in emit_single_op()
287 if (flags & ALT_FORM2) { in emit_single_op()
288 if (flags & ALT_FORM3) { in emit_single_op()
289 …FAIL_IF(push_inst(compiler, CMPI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler-… in emit_single_op()
290 if (!(flags & ALT_FORM4)) in emit_single_op()
294 … FAIL_IF(push_inst(compiler, CMP | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
295 if (!(flags & ALT_FORM4)) in emit_single_op()
300 if (flags & ALT_FORM3) { in emit_single_op()
301 if (flags & ALT_SIGN_EXT) { in emit_single_op()
309 if (flags & ALT_SIGN_EXT) in emit_single_op()
314 if (flags & ALT_FORM4) { in emit_single_op()
320 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
323 if (flags & ALT_FORM5) in emit_single_op()
325 return push_inst(compiler, SUBF | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
332 if (flags & ALT_FORM1) { in emit_single_op()
337 if (flags & ALT_FORM2) in emit_single_op()
338 return push_inst(compiler, MULLW | OE(flags) | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
339 return push_inst(compiler, MULLD | OE(flags) | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
342 if (flags & ALT_FORM1) { in emit_single_op()
346 if (flags & ALT_FORM2) { in emit_single_op()
350 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
353 if (flags & ALT_FORM1) { in emit_single_op()
357 if (flags & ALT_FORM2) { in emit_single_op()
361 if (flags & ALT_FORM3) { in emit_single_op()
366 return push_inst(compiler, OR | 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()
382 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
385 if (flags & ALT_FORM1) { in emit_single_op()
387 if (flags & ALT_FORM2) { in emit_single_op()
389 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11) | ((31 - … in emit_single_op()
392 return push_inst(compiler, RLDI(dst, src1, compiler->imm, 63 - compiler->imm, 1) | RC(flags)); in emit_single_op()
394 …return push_inst(compiler, ((flags & ALT_FORM2) ? SLW : SLD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
397 if (flags & ALT_FORM1) { in emit_single_op()
399 if (flags & ALT_FORM2) { in emit_single_op()
401 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (((32 - compiler->imm) & 0x1f) … in emit_single_op()
404 return push_inst(compiler, RLDI(dst, src1, 64 - compiler->imm, compiler->imm, 0) | RC(flags)); in emit_single_op()
406 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRW : SRD) | RC(flags) | S(src1) | A(dst) | B(sr… in emit_single_op()
409 if (flags & ALT_FORM1) { in emit_single_op()
411 if (flags & ALT_FORM2) { in emit_single_op()
413 return push_inst(compiler, SRAWI | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11)); in emit_single_op()
416 …return push_inst(compiler, SRADI | RC(flags) | S(src1) | A(dst) | ((compiler->imm & 0x1f) << 11) |… in emit_single_op()
418 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRAW : SRAD) | RC(flags) | S(src1) | A(dst) | B(… in emit_single_op()