Lines Matching refs:flags
125 if ((flags & (ALT_SIGN_EXT | REG2_SOURCE)) == (ALT_SIGN_EXT | REG2_SOURCE)) { \
131 if (flags & ALT_SIGN_EXT) { \
132 if (flags & REG1_SOURCE) { \
136 if (flags & REG2_SOURCE) { \
143 if ((flags & (ALT_SIGN_EXT | REG1_SOURCE)) == (ALT_SIGN_EXT | REG1_SOURCE)) { \
148 … SLJIT_INLINE sljit_si emit_single_op(struct sljit_compiler *compiler, sljit_si op, sljit_si flags, in emit_single_op() argument
162 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
175 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
180 else if ((flags & REG_DEST) && op == SLJIT_MOV_SB) in emit_single_op()
190 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { 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()
212 if (flags & ALT_FORM1) 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()
217 if (flags & ALT_FORM1) { in emit_single_op()
222 if (flags & ALT_FORM2) { in emit_single_op()
227 if (flags & ALT_FORM3) { in emit_single_op()
232 if (flags & ALT_FORM4) { in emit_single_op()
237 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
243 if (flags & ALT_FORM1) { in emit_single_op()
252 if (flags & ALT_FORM1) { in emit_single_op()
257 if (flags & (ALT_FORM2 | ALT_FORM3)) { in emit_single_op()
259 if (flags & ALT_FORM2) in emit_single_op()
260 …FAIL_IF(push_inst(compiler, CMPI | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler-… in emit_single_op()
261 if (flags & ALT_FORM3) in emit_single_op()
262 …return push_inst(compiler, CMPLI | CRD(4 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | compiler-… in emit_single_op()
265 if (flags & (ALT_FORM4 | ALT_FORM5)) { in emit_single_op()
266 if (flags & ALT_FORM4) in emit_single_op()
267 …FAIL_IF(push_inst(compiler, CMPL | CRD(4 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
268 if (flags & ALT_FORM5) in emit_single_op()
269 return push_inst(compiler, CMP | CRD(0 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2)); in emit_single_op()
272 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
275 if (flags & ALT_FORM6) in emit_single_op()
276 …FAIL_IF(push_inst(compiler, CMPL | CRD(4 | ((flags & ALT_SIGN_EXT) ? 0 : 1)) | A(src1) | B(src2))); in emit_single_op()
280 if (flags & ALT_FORM1) { in emit_single_op()
289 if (flags & ALT_FORM1) { in emit_single_op()
294 if (flags & ALT_FORM2) 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()
299 if (flags & ALT_FORM1) { in emit_single_op()
303 if (flags & ALT_FORM2) { in emit_single_op()
307 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
310 if (flags & ALT_FORM1) { in emit_single_op()
314 if (flags & ALT_FORM2) { in emit_single_op()
318 if (flags & ALT_FORM3) { in emit_single_op()
323 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
326 if (flags & ALT_FORM1) { in emit_single_op()
330 if (flags & ALT_FORM2) { in emit_single_op()
334 if (flags & ALT_FORM3) { in emit_single_op()
339 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
342 if (flags & ALT_FORM1) { in emit_single_op()
344 if (flags & ALT_FORM2) { 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()
356 if (flags & ALT_FORM1) { in emit_single_op()
358 if (flags & ALT_FORM2) { 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()
370 if (flags & ALT_FORM3) in emit_single_op()
372 if (flags & ALT_FORM1) { in emit_single_op()
374 if (flags & ALT_FORM2) { 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()
385 return (flags & ALT_FORM3) ? push_inst(compiler, MTXER | S(0)) : SLJIT_SUCCESS; in emit_single_op()