Lines Matching refs:flags
44 … SLJIT_INLINE sljit_si emit_single_op(struct sljit_compiler *compiler, sljit_si op, sljit_si flags, in emit_single_op() argument
60 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
65 else if ((flags & REG_DEST) && op == SLJIT_MOV_SB) in emit_single_op()
75 if ((flags & (REG_DEST | REG2_SOURCE)) == (REG_DEST | REG2_SOURCE)) { in emit_single_op()
87 return push_inst(compiler, NOR | RC(flags) | S(src2) | A(dst) | B(src2)); in emit_single_op()
91 return push_inst(compiler, NEG | OERC(flags) | D(dst) | A(src2)); in emit_single_op()
95 return push_inst(compiler, CNTLZW | RC(flags) | S(src2) | A(dst)); in emit_single_op()
98 if (flags & ALT_FORM1) { in emit_single_op()
103 if (flags & ALT_FORM2) { in emit_single_op()
108 if (flags & ALT_FORM3) { in emit_single_op()
112 if (flags & ALT_FORM4) { in emit_single_op()
117 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
122 if (flags & ALT_FORM1) { in emit_single_op()
130 if (flags & ALT_FORM1) { in emit_single_op()
135 if (flags & (ALT_FORM2 | ALT_FORM3)) { in emit_single_op()
137 if (flags & ALT_FORM2) in emit_single_op()
139 if (flags & ALT_FORM3) in emit_single_op()
143 if (flags & (ALT_FORM4 | ALT_FORM5)) { in emit_single_op()
144 if (flags & ALT_FORM4) in emit_single_op()
146 if (flags & ALT_FORM5) in emit_single_op()
150 if (!(flags & ALT_SET_FLAGS)) in emit_single_op()
152 if (flags & ALT_FORM6) in emit_single_op()
157 if (flags & ALT_FORM1) { in emit_single_op()
165 if (flags & ALT_FORM1) { in emit_single_op()
169 return push_inst(compiler, MULLW | OERC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
172 if (flags & ALT_FORM1) { in emit_single_op()
176 if (flags & ALT_FORM2) { in emit_single_op()
180 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
183 if (flags & ALT_FORM1) { in emit_single_op()
187 if (flags & ALT_FORM2) { in emit_single_op()
191 if (flags & ALT_FORM3) { in emit_single_op()
196 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
199 if (flags & ALT_FORM1) { in emit_single_op()
203 if (flags & ALT_FORM2) { in emit_single_op()
207 if (flags & ALT_FORM3) { in emit_single_op()
212 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
215 if (flags & ALT_FORM1) { in emit_single_op()
218 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11) | ((31 - … in emit_single_op()
220 return push_inst(compiler, SLW | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
223 if (flags & ALT_FORM1) { in emit_single_op()
226 …return push_inst(compiler, RLWINM | RC(flags) | S(src1) | A(dst) | (((32 - compiler->imm) & 0x1f) … in emit_single_op()
228 return push_inst(compiler, SRW | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
231 if (flags & ALT_FORM3) in emit_single_op()
233 if (flags & ALT_FORM1) { in emit_single_op()
236 FAIL_IF(push_inst(compiler, SRAWI | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11))); in emit_single_op()
239 FAIL_IF(push_inst(compiler, SRAW | RC(flags) | S(src1) | A(dst) | B(src2))); in emit_single_op()
240 return (flags & ALT_FORM3) ? push_inst(compiler, MTXER | S(0)) : SLJIT_SUCCESS; in emit_single_op()