Lines Matching refs:op

522 	sljit_si op = (flags & 0xffff);  in emit_op_imm()  local
529 if (arg1 == 0 && op != SLJIT_ADD && op != SLJIT_SUB) in emit_op_imm()
541 switch (op) { in emit_op_imm()
565 return push_inst(compiler, ((op == SLJIT_ADD ? ADDI : SUBI) ^ inv_bits) | RD(dst) | RN(reg)); in emit_op_imm()
604 if (op == SLJIT_OR) in emit_op_imm()
626 if (op == SLJIT_ASHR) in emit_op_imm()
661 switch (op) { in emit_op_imm()
1155 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, s… in sljit_emit_return() argument
1161 CHECK(check_sljit_emit_return(compiler, op, src, srcw)); in sljit_emit_return()
1163 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); in sljit_emit_return()
1227 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op0(struct sljit_compiler *compiler, sljit_si op) in sljit_emit_op0() argument
1229 sljit_ins inv_bits = (op & SLJIT_INT_OP) ? (1 << 31) : 0; in sljit_emit_op0()
1232 CHECK(check_sljit_emit_op0(compiler, op)); in sljit_emit_op0()
1234 op = GET_OPCODE(op); in sljit_emit_op0()
1235 switch (op) { in sljit_emit_op0()
1244 …return push_inst(compiler, (op == SLJIT_LUMUL ? UMULH : SMULH) | RD(SLJIT_R1) | RN(TMP_REG1) | RM(… in sljit_emit_op0()
1248 …FAIL_IF(push_inst(compiler, ((op == SLJIT_LUDIV ? UDIV : SDIV) ^ inv_bits) | RD(SLJIT_R0) | RN(SLJ… in sljit_emit_op0()
1256 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op1(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op1() argument
1261 sljit_si op_flags = GET_ALL_FLAGS(op); in sljit_emit_op1()
1264 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1273 op = GET_OPCODE(op); in sljit_emit_op1()
1274 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_P) { in sljit_emit_op1()
1275 switch (op) { in sljit_emit_op1()
1359 … return emit_op_imm(compiler, op | ((op_flags & SLJIT_INT_OP) ? INT_OP : 0), dst_r, TMP_REG1, src); in sljit_emit_op1()
1397 emit_op_imm(compiler, flags | op, dst_r, TMP_REG1, srcw); in sljit_emit_op1()
1408 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op2(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op2() argument
1416 CHECK(check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
1425 flags = GET_FLAGS(op) ? SET_FLAGS : 0; in sljit_emit_op2()
1427 if (op & SLJIT_INT_OP) { in sljit_emit_op2()
1480 emit_op_imm(compiler, flags | GET_OPCODE(op), dst_r, src1w, src2w); in sljit_emit_op2()
1581 …tic SLJIT_INLINE sljit_si sljit_emit_fop1_convw_fromd(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1_convw_fromd() argument
1586 sljit_ins inv_bits = (op & SLJIT_SINGLE_OP) ? (1 << 22) : 0; in sljit_emit_fop1_convw_fromd()
1588 if (GET_OPCODE(op) == SLJIT_CONVI_FROMD) in sljit_emit_fop1_convw_fromd()
1592 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) ? INT_SIZE : WORD_SIZE, TMP_FREG1, src, srcw); in sljit_emit_fop1_convw_fromd()
1599 …return emit_op_mem(compiler, ((GET_OPCODE(op) == SLJIT_CONVI_FROMD) ? INT_SIZE : WORD_SIZE) | STOR… in sljit_emit_fop1_convw_fromd()
1603 …tic SLJIT_INLINE sljit_si sljit_emit_fop1_convd_fromw(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1_convd_fromw() argument
1608 sljit_ins inv_bits = (op & SLJIT_SINGLE_OP) ? (1 << 22) : 0; in sljit_emit_fop1_convd_fromw()
1610 if (GET_OPCODE(op) == SLJIT_CONVD_FROMI) in sljit_emit_fop1_convd_fromw()
1614 …emit_op_mem(compiler, ((GET_OPCODE(op) == SLJIT_CONVD_FROMI) ? INT_SIZE : WORD_SIZE), TMP_REG1, sr… in sljit_emit_fop1_convd_fromw()
1618 if (GET_OPCODE(op) == SLJIT_CONVD_FROMI) in sljit_emit_fop1_convd_fromw()
1628 …return emit_fop_mem(compiler, ((op & SLJIT_SINGLE_OP) ? INT_SIZE : WORD_SIZE) | STORE, TMP_FREG1, … in sljit_emit_fop1_convd_fromw()
1632 static SLJIT_INLINE sljit_si sljit_emit_fop1_cmp(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1_cmp() argument
1636 sljit_si mem_flags = (op & SLJIT_SINGLE_OP) ? INT_SIZE : WORD_SIZE; in sljit_emit_fop1_cmp()
1637 sljit_ins inv_bits = (op & SLJIT_SINGLE_OP) ? (1 << 22) : 0; in sljit_emit_fop1_cmp()
1652 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fop1(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1() argument
1656 sljit_si dst_r, mem_flags = (op & SLJIT_SINGLE_OP) ? INT_SIZE : WORD_SIZE; in sljit_emit_fop1()
1664 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1666 inv_bits = (op & SLJIT_SINGLE_OP) ? (1 << 22) : 0; in sljit_emit_fop1()
1670 …emit_fop_mem(compiler, (GET_OPCODE(op) == SLJIT_CONVD_FROMS) ? (mem_flags ^ 0x100) : mem_flags, ds… in sljit_emit_fop1()
1674 switch (GET_OPCODE(op)) { in sljit_emit_fop1()
1690 …FAIL_IF(push_inst(compiler, FCVT | ((op & SLJIT_SINGLE_OP) ? (1 << 22) : (1 << 15)) | VD(dst_r) | … in sljit_emit_fop1()
1699 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fop2(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop2() argument
1704 sljit_si dst_r, mem_flags = (op & SLJIT_SINGLE_OP) ? INT_SIZE : WORD_SIZE; in sljit_emit_fop2()
1705 sljit_ins inv_bits = (op & SLJIT_SINGLE_OP) ? (1 << 22) : 0; in sljit_emit_fop2()
1708 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
1726 switch (GET_OPCODE(op)) { in sljit_emit_fop2()
1945 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op_flags(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op_flags() argument
1954 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, src, srcw, type)); in sljit_emit_op_flags()
1964 if (GET_OPCODE(op) < SLJIT_ADD) { in sljit_emit_op_flags()
1968 …return emit_op_mem(compiler, (GET_OPCODE(op) == SLJIT_MOV ? WORD_SIZE : INT_SIZE) | STORE, TMP_REG… in sljit_emit_op_flags()
1973 flags = GET_FLAGS(op) ? SET_FLAGS : 0; in sljit_emit_op_flags()
1975 if (op & SLJIT_INT_OP) { in sljit_emit_op_flags()
1988 emit_op_imm(compiler, flags | GET_OPCODE(op), dst_r, src, TMP_REG2); in sljit_emit_op_flags()