Lines Matching refs:arg2

791 …_imm(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 dst, sljit_uw arg1, sljit_uw arg2)  in emit_op_imm()  argument
807 reg = (sljit_s32)((flags & ARG2_IMM) ? arg1 : arg2); in emit_op_imm()
808 imm = (flags & ARG2_IMM) ? arg2 : arg1; in emit_op_imm()
996 imm = arg2; in emit_op_imm()
997 arg2 = (arg1 == TMP_REG1) ? TMP_REG2 : TMP_REG1; in emit_op_imm()
998 FAIL_IF(load_immediate(compiler, (sljit_s32)arg2, imm)); in emit_op_imm()
1001 arg1 = (arg2 == TMP_REG1) ? TMP_REG2 : TMP_REG1; in emit_op_imm()
1005 SLJIT_ASSERT(arg1 != arg2); in emit_op_imm()
1016 if (dst == (sljit_s32)arg2) in emit_op_imm()
1018 return push_inst16(compiler, MOV | SET_REGS44(dst, arg2)); in emit_op_imm()
1021 if (IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1022 return push_inst16(compiler, UXTB | RD3(dst) | RN3(arg2)); in emit_op_imm()
1023 return push_inst32(compiler, UXTB_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
1026 if (IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1027 return push_inst16(compiler, SXTB | RD3(dst) | RN3(arg2)); in emit_op_imm()
1028 return push_inst32(compiler, SXTB_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
1031 if (IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1032 return push_inst16(compiler, UXTH | RD3(dst) | RN3(arg2)); in emit_op_imm()
1033 return push_inst32(compiler, UXTH_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
1036 if (IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1037 return push_inst16(compiler, SXTH | RD3(dst) | RN3(arg2)); in emit_op_imm()
1038 return push_inst32(compiler, SXTH_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
1041 return push_inst32(compiler, CLZ | RN4(arg2) | RD4(dst) | RM4(arg2)); in emit_op_imm()
1044 FAIL_IF(push_inst32(compiler, RBIT | RN4(arg2) | RD4(dst) | RM4(arg2))); in emit_op_imm()
1050 if (IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1051 return push_inst16(compiler, REV | RD3(dst) | RN3(arg2)); in emit_op_imm()
1052 return push_inst32(compiler, REV_W | RN4(arg2) | RD4(dst) | RM4(arg2)); in emit_op_imm()
1057 if (IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1058 FAIL_IF(push_inst16(compiler, REV16 | RD3(dst) | RN3(arg2))); in emit_op_imm()
1060 FAIL_IF(push_inst32(compiler, REV16_W | RN4(arg2) | RD4(dst) | RM4(arg2))); in emit_op_imm()
1071 if (IS_3_LO_REGS(dst, arg1, arg2)) in emit_op_imm()
1072 return push_inst16(compiler, ADDS | RD3(dst) | RN3(arg1) | RM3(arg2)); in emit_op_imm()
1074 return push_inst16(compiler, ADD | SET_REGS44(dst, arg2)); in emit_op_imm()
1075 return push_inst32(compiler, ADD_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1078 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1079 return push_inst16(compiler, ADCS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1080 return push_inst32(compiler, ADC_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1084 if (IS_2_LO_REGS(arg1, arg2)) in emit_op_imm()
1085 return push_inst16(compiler, CMP | RD3(arg1) | RN3(arg2)); in emit_op_imm()
1086 return push_inst16(compiler, CMP_X | SET_REGS44(arg1, arg2)); in emit_op_imm()
1088 if (IS_3_LO_REGS(dst, arg1, arg2)) in emit_op_imm()
1089 return push_inst16(compiler, SUBS | RD3(dst) | RN3(arg1) | RM3(arg2)); in emit_op_imm()
1090 return push_inst32(compiler, SUB_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1093 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1094 return push_inst16(compiler, SBCS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1095 return push_inst32(compiler, SBC_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1099 return push_inst32(compiler, MUL | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1101 FAIL_IF(push_inst32(compiler, SMULL | RT4(dst) | RD4(reg) | RN4(arg1) | RM4(arg2))); in emit_op_imm()
1105 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1106 return push_inst16(compiler, ANDS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1107 if ((flags & UNUSED_RETURN) && IS_2_LO_REGS(arg1, arg2)) in emit_op_imm()
1108 return push_inst16(compiler, TST | RD3(arg1) | RN3(arg2)); in emit_op_imm()
1109 …(flags & UNUSED_RETURN) ? TST_W : AND_W) | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1111 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1112 return push_inst16(compiler, ORRS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1113 return push_inst32(compiler, ORR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1115 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1116 return push_inst16(compiler, EORS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1117 return push_inst32(compiler, EOR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1119 reg = (arg2 == TMP_REG1) ? TMP_REG1 : TMP_REG2; in emit_op_imm()
1120 FAIL_IF(push_inst32(compiler, ANDI | RD4(reg) | RN4(arg2) | 0x1f)); in emit_op_imm()
1121 arg2 = (sljit_uw)reg; in emit_op_imm()
1124 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1125 return push_inst16(compiler, LSLS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1126 return push_inst32(compiler, LSL_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1128 reg = (arg2 == TMP_REG1) ? TMP_REG1 : TMP_REG2; in emit_op_imm()
1129 FAIL_IF(push_inst32(compiler, ANDI | RD4(reg) | RN4(arg2) | 0x1f)); in emit_op_imm()
1130 arg2 = (sljit_uw)reg; in emit_op_imm()
1133 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1134 return push_inst16(compiler, LSRS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1135 return push_inst32(compiler, LSR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1137 reg = (arg2 == TMP_REG1) ? TMP_REG1 : TMP_REG2; in emit_op_imm()
1138 FAIL_IF(push_inst32(compiler, ANDI | RD4(reg) | RN4(arg2) | 0x1f)); in emit_op_imm()
1139 arg2 = (sljit_uw)reg; in emit_op_imm()
1142 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1143 return push_inst16(compiler, ASRS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1144 return push_inst32(compiler, ASR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1146 reg = (arg2 == TMP_REG1) ? TMP_REG1 : TMP_REG2; in emit_op_imm()
1147 FAIL_IF(push_inst32(compiler, RSB_WI | RD4(reg) | RN4(arg2) | 0)); in emit_op_imm()
1148 arg2 = (sljit_uw)reg; in emit_op_imm()
1151 if (dst == (sljit_s32)arg1 && IS_2_LO_REGS(dst, arg2)) in emit_op_imm()
1152 return push_inst16(compiler, RORS | RD3(dst) | RN3(arg2)); in emit_op_imm()
1153 return push_inst32(compiler, ROR_W | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
1156 return push_inst32(compiler, MLA | RD4(dst) | RN4(arg1) | RM4(arg2) | RT4(dst)); in emit_op_imm()