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_SET_FLAGS)) in emit_single_op()
258 if (flags & ALT_FORM4) in emit_single_op()
260 return push_inst(compiler, ADD | RC(flags) | D(dst) | A(src1) | B(src2)); in emit_single_op()
267 if (flags & ALT_FORM1) { in emit_single_op()
268 if (flags & ALT_FORM2) { in emit_single_op()
269 …FAIL_IF(push_inst(compiler, CMPLI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler… in emit_single_op()
270 if (!(flags & ALT_FORM3)) in emit_single_op()
274 …FAIL_IF(push_inst(compiler, CMPL | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
275 if (!(flags & ALT_FORM3)) in emit_single_op()
280 if (flags & ALT_FORM2) { in emit_single_op()
281 if (flags & ALT_SIGN_EXT) { in emit_single_op()
289 if (flags & ALT_SIGN_EXT) in emit_single_op()
294 if (flags & ALT_FORM3) { in emit_single_op()
300 if (flags & ALT_FORM4) { in emit_single_op()
301 if (flags & ALT_FORM5) { in emit_single_op()
303 …return push_inst(compiler, CMPI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler->… in emit_single_op()
305 return push_inst(compiler, CMP | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2)); in emit_single_op()
308 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
311 if (flags & ALT_FORM5) in emit_single_op()
313 return push_inst(compiler, SUBF | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
320 if (flags & ALT_FORM1) { in emit_single_op()
325 if (flags & ALT_FORM2) in emit_single_op()
326 return push_inst(compiler, MULLW | OE(flags) | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
327 return push_inst(compiler, MULLD | OE(flags) | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
330 if (flags & ALT_FORM1) { in emit_single_op()
334 if (flags & ALT_FORM2) { in emit_single_op()
338 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
341 if (flags & ALT_FORM1) { in emit_single_op()
345 if (flags & ALT_FORM2) { in emit_single_op()
349 if (flags & ALT_FORM3) { in emit_single_op()
354 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
357 if (flags & ALT_FORM1) { in emit_single_op()
361 if (flags & ALT_FORM2) { in emit_single_op()
365 if (flags & ALT_FORM3) { in emit_single_op()
370 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
373 if (flags & ALT_FORM1) { in emit_single_op()
375 if (flags & ALT_FORM2) { in emit_single_op()
377 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11) | ((31 - … in emit_single_op()
380 return push_inst(compiler, RLDI(dst, src1, compiler->imm, 63 - compiler->imm, 1) | RC(flags)); in emit_single_op()
382 …return push_inst(compiler, ((flags & ALT_FORM2) ? SLW : SLD) | RC(flags) | S(src1) | A(dst) | B(sr… 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) | (((32 - compiler->imm) & 0x1f) … in emit_single_op()
392 return push_inst(compiler, RLDI(dst, src1, 64 - compiler->imm, compiler->imm, 0) | RC(flags)); in emit_single_op()
394 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRW : SRD) | 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, SRAWI | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11)); in emit_single_op()
404 …return push_inst(compiler, SRADI | RC(flags) | S(src1) | A(dst) | ((compiler->imm & 0x1f) << 11) |… in emit_single_op()
406 …return push_inst(compiler, ((flags & ALT_FORM2) ? SRAW : SRAD) | RC(flags) | S(src1) | A(dst) | B(… in emit_single_op()