Home | History | Annotate | Download | only in sljit

Lines Matching full:arg1

515 static sljit_s32 emit_op_imm(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 dst, sljit_sw arg1, sljit_sw arg2)
518 arg1 must be register, TMP_REG1, imm
529 if (arg1 == 0 && op != SLJIT_ADD && op != SLJIT_SUB)
530 arg1 = TMP_ZERO;
532 FAIL_IF(load_immediate(compiler, TMP_REG1, arg1));
533 arg1 = TMP_REG1;
538 reg = (flags & ARG2_IMM) ? arg1 : arg2;
539 imm = (flags & ARG2_IMM) ? arg2 : arg1;
551 SLJIT_ASSERT(!(flags & SET_FLAGS) && (flags & ARG2_IMM) && arg1 == TMP_REG1);
615 FAIL_IF(push_inst(compiler, (UBFM ^ inv_bits) | RD(dst) | RN(arg1) | ((-imm & 0x1f) << 16) | ((31 - imm) << 10)));
619 FAIL_IF(push_inst(compiler, (UBFM ^ inv_bits) | RD(dst) | RN(arg1) | (1 << 22) | ((-imm & 0x3f) << 16) | ((63 - imm) << 10)));
630 FAIL_IF(push_inst(compiler, (UBFM ^ inv_bits) | RD(dst) | RN(arg1) | (imm << 16) | (31 << 10)));
634 FAIL_IF(push_inst(compiler, (UBFM ^ inv_bits) | RD(dst) | RN(arg1) | (1 << 22) | (imm << 16) | (63 << 10)));
651 if (arg1 == 0)
652 arg1 = TMP_ZERO;
654 FAIL_IF(load_immediate(compiler, TMP_REG1, arg1));
655 arg1 = TMP_REG1;
666 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
672 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
676 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
682 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
686 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
692 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
698 SLJIT_ASSERT(!(flags & SET_FLAGS) && arg1 == TMP_REG1);
703 SLJIT_ASSERT(arg1 == TMP_REG1);
707 SLJIT_ASSERT(arg1 == TMP_REG1);
712 SLJIT_ASSERT(arg1 == TMP_REG1);
717 return push_inst(compiler, (ADD ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2));
720 return push_inst(compiler, (ADC ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2));
723 return push_inst(compiler, (SUB ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2));
726 return push_inst(compiler, (SBC ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2));
729 return push_inst(compiler, (MADD ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2) | RT2(TMP_ZERO));
731 FAIL_IF(push_inst(compiler, SMADDL | RD(dst) | RN(arg1) | RM(arg2) | (31 << 10)));
735 FAIL_IF(push_inst(compiler, SMULH | RD(TMP_LR) | RN(arg1) | RM(arg2)));
736 FAIL_IF(push_inst(compiler, MADD | RD(dst) | RN(arg1) | RM(arg2) | RT2(TMP_ZERO)));
740 return push_inst(compiler, (AND ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2));
742 FAIL_IF(push_inst(compiler, (ORR ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2)));
745 FAIL_IF(push_inst(compiler, (EOR ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2)));
748 FAIL_IF(push_inst(compiler, (LSLV ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2)));
751 FAIL_IF(push_inst(compiler, (LSRV ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2)));
754 FAIL_IF(push_inst(compiler, (ASRV ^ inv_bits) | RD(dst) | RN(arg1) | RM(arg2)));
1052 static SLJIT_INLINE sljit_s32 emit_op_mem2(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg, sljit_s32 arg1, sljit_sw arg1w, sljit_s32 arg2, sljit_sw arg2w)
1054 if (getput_arg_fast(compiler, flags, reg, arg1, arg1w))
1056 return getput_arg(compiler, flags, reg, arg1, arg1w, arg2, arg2w);