• Home
  • Raw
  • Download

Lines Matching refs:push_inst

39 	push_inst(compiler, RLDI(reg, reg, 63 - shift, shift, 1))
49 return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm)); in load_immediate()
52 return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm)); in load_immediate()
55 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16))); in load_immediate()
56 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate()
67 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | IMM(tmp >> 48))); in load_immediate()
73 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(tmp >> 48))); in load_immediate()
74 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(tmp >> 32))); in load_immediate()
84 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | IMM(tmp >> 48))); in load_immediate()
86 return push_inst(compiler, ORI | S(reg) | A(reg) | tmp2); in load_immediate()
90 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | IMM(tmp >> 48))); in load_immediate()
92 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | (tmp2 >> 16))); in load_immediate()
93 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(tmp2)) : SLJIT_SUCCESS; in load_immediate()
100 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | IMM(tmp >> 48))); in load_immediate()
104 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | (tmp2 >> 48))); in load_immediate()
109 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 48))); in load_immediate()
110 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm >> 32))); in load_immediate()
112 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | IMM(imm >> 16))); in load_immediate()
113 return push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)); in load_immediate()
123 FAIL_IF(push_inst(compiler, EXTSW | S(src2) | A(TMP_REG2))); \
130 FAIL_IF(push_inst(compiler, EXTSW | S(src1) | A(TMP_REG1))); \
134 FAIL_IF(push_inst(compiler, EXTSW | S(src2) | A(TMP_REG2))); \
141 FAIL_IF(push_inst(compiler, EXTSW | S(src1) | A(TMP_REG1))); \
153 return push_inst(compiler, OR | S(src2) | A(dst) | B(src2)); in emit_single_op()
161 return push_inst(compiler, EXTSW | S(src2) | A(dst)); in emit_single_op()
162 return push_inst(compiler, INS_CLEAR_LEFT(dst, src2, 0)); in emit_single_op()
174 return push_inst(compiler, EXTSB | S(src2) | A(dst)); in emit_single_op()
175 return push_inst(compiler, INS_CLEAR_LEFT(dst, src2, 24)); in emit_single_op()
178 return push_inst(compiler, EXTSB | S(src2) | A(dst)); in emit_single_op()
189 return push_inst(compiler, EXTSH | S(src2) | A(dst)); in emit_single_op()
190 return push_inst(compiler, INS_CLEAR_LEFT(dst, src2, 16)); in emit_single_op()
200 return push_inst(compiler, NOR | RC(flags) | S(src2) | A(dst) | B(src2)); in emit_single_op()
206 FAIL_IF(push_inst(compiler, RLDI(TMP_REG2, src2, 32, 31, 1))); in emit_single_op()
207 FAIL_IF(push_inst(compiler, NEG | OE(ALT_SET_FLAGS) | RC(ALT_SET_FLAGS) | D(dst) | A(TMP_REG2))); in emit_single_op()
208 return push_inst(compiler, RLDI(dst, dst, 32, 32, 0)); 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()
218 return push_inst(compiler, CNTLZW | S(src2) | A(dst)); in emit_single_op()
219 return push_inst(compiler, CNTLZD | S(src2) | A(dst)); in emit_single_op()
224 FAIL_IF(push_inst(compiler, RLDI(TMP_REG1, src1, 32, 31, 1))); in emit_single_op()
226 FAIL_IF(push_inst(compiler, RLDI(TMP_REG2, src2, 32, 31, 1))); in emit_single_op()
230 …FAIL_IF(push_inst(compiler, ADD | OE(ALT_SET_FLAGS) | RC(ALT_SET_FLAGS) | D(dst) | A(src1) | B(src… in emit_single_op()
232 return push_inst(compiler, RLDI(dst, dst, 32, 32, 0)); in emit_single_op()
241 return push_inst(compiler, ADDIS | D(dst) | A(src1) | compiler->imm); in emit_single_op()
244 …FAIL_IF(push_inst(compiler, ADDIS | D(dst) | A(src1) | (((compiler->imm >> 16) & 0xffff) + ((compi… in emit_single_op()
248 return push_inst(compiler, ADDI | D(dst) | A(src1) | (compiler->imm & 0xffff)); in emit_single_op()
253 return push_inst(compiler, ADDIC | D(dst) | A(src1) | compiler->imm); in emit_single_op()
256 return push_inst(compiler, ADD | D(dst) | A(src1) | B(src2)); in emit_single_op()
259 return push_inst(compiler, ADDC | RC(ALT_SET_FLAGS) | D(dst) | A(src1) | B(src2)); in emit_single_op()
260 return push_inst(compiler, ADD | RC(flags) | D(dst) | A(src1) | B(src2)); in emit_single_op()
264 return push_inst(compiler, ADDE | D(dst) | A(src1) | B(src2)); 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()
272 return push_inst(compiler, ADDI | D(dst) | A(src1) | (-compiler->imm & 0xffff)); 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()
277 return push_inst(compiler, SUBF | D(dst) | A(src2) | B(src1)); in emit_single_op()
282 FAIL_IF(push_inst(compiler, RLDI(TMP_REG1, src1, 32, 31, 1))); in emit_single_op()
284 FAIL_IF(push_inst(compiler, RLDI(TMP_REG2, src2, 32, 31, 1))); in emit_single_op()
288 …FAIL_IF(push_inst(compiler, SUBF | OE(ALT_SET_FLAGS) | RC(ALT_SET_FLAGS) | D(dst) | A(src2) | B(sr… in emit_single_op()
290 return push_inst(compiler, RLDI(dst, dst, 32, 32, 0)); in emit_single_op()
297 return push_inst(compiler, SUBFIC | D(dst) | A(src1) | compiler->imm); 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()
309 return push_inst(compiler, SUBF | D(dst) | A(src2) | B(src1)); in emit_single_op()
312 return push_inst(compiler, SUBFC | RC(ALT_SET_FLAGS) | D(dst) | A(src2) | B(src1)); in emit_single_op()
313 return push_inst(compiler, SUBF | RC(flags) | D(dst) | A(src2) | B(src1)); in emit_single_op()
317 return push_inst(compiler, SUBFE | D(dst) | A(src2) | B(src1)); in emit_single_op()
322 return push_inst(compiler, MULLI | D(dst) | A(src1) | compiler->imm); 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()
332 return push_inst(compiler, ANDI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
336 return push_inst(compiler, ANDIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
338 return push_inst(compiler, AND | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
343 return push_inst(compiler, ORI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
347 return push_inst(compiler, ORIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
351 FAIL_IF(push_inst(compiler, ORI | S(src1) | A(dst) | IMM(compiler->imm))); in emit_single_op()
352 return push_inst(compiler, ORIS | S(dst) | A(dst) | IMM(compiler->imm >> 16)); in emit_single_op()
354 return push_inst(compiler, OR | RC(flags) | S(src1) | A(dst) | B(src2)); in emit_single_op()
359 return push_inst(compiler, XORI | S(src1) | A(dst) | compiler->imm); in emit_single_op()
363 return push_inst(compiler, XORIS | S(src1) | A(dst) | compiler->imm); in emit_single_op()
367 FAIL_IF(push_inst(compiler, XORI | S(src1) | A(dst) | IMM(compiler->imm))); in emit_single_op()
368 return push_inst(compiler, XORIS | S(dst) | A(dst) | IMM(compiler->imm >> 16)); in emit_single_op()
370 return push_inst(compiler, XOR | RC(flags) | S(src1) | A(dst) | B(src2)); 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()
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()
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()
438 FAIL_IF(push_inst(compiler, OR | S(reg) | A(TMP_CALL_REG) | B(reg))); in call_with_args()
455 FAIL_IF(push_inst(compiler, OR | S(word_arg_count) | A(arg_count) | B(word_arg_count))); in call_with_args()
470 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(init_value >> 48))); in emit_const()
471 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(init_value >> 32))); in emit_const()
473 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | IMM(init_value >> 16))); in emit_const()
474 return push_inst(compiler, ORI | S(reg) | A(reg) | IMM(init_value)); in emit_const()