Lines Matching refs:lhs

810   inline void emit_i32_add(Register dst, Register lhs, Register rhs);
811 inline void emit_i32_addi(Register dst, Register lhs, int32_t imm);
812 inline void emit_i32_sub(Register dst, Register lhs, Register rhs);
813 inline void emit_i32_subi(Register dst, Register lhs, int32_t imm);
814 inline void emit_i32_mul(Register dst, Register lhs, Register rhs);
815 inline void emit_i32_divs(Register dst, Register lhs, Register rhs,
818 inline void emit_i32_divu(Register dst, Register lhs, Register rhs,
820 inline void emit_i32_rems(Register dst, Register lhs, Register rhs,
822 inline void emit_i32_remu(Register dst, Register lhs, Register rhs,
824 inline void emit_i32_and(Register dst, Register lhs, Register rhs);
825 inline void emit_i32_andi(Register dst, Register lhs, int32_t imm);
826 inline void emit_i32_or(Register dst, Register lhs, Register rhs);
827 inline void emit_i32_ori(Register dst, Register lhs, int32_t imm);
828 inline void emit_i32_xor(Register dst, Register lhs, Register rhs);
829 inline void emit_i32_xori(Register dst, Register lhs, int32_t imm);
843 inline void emit_i64_add(LiftoffRegister dst, LiftoffRegister lhs,
845 inline void emit_i64_addi(LiftoffRegister dst, LiftoffRegister lhs,
847 inline void emit_i64_sub(LiftoffRegister dst, LiftoffRegister lhs,
849 inline void emit_i64_mul(LiftoffRegister dst, LiftoffRegister lhs,
851 inline bool emit_i64_divs(LiftoffRegister dst, LiftoffRegister lhs,
854 inline bool emit_i64_divu(LiftoffRegister dst, LiftoffRegister lhs,
856 inline bool emit_i64_rems(LiftoffRegister dst, LiftoffRegister lhs,
858 inline bool emit_i64_remu(LiftoffRegister dst, LiftoffRegister lhs,
860 inline void emit_i64_and(LiftoffRegister dst, LiftoffRegister lhs,
862 inline void emit_i64_andi(LiftoffRegister dst, LiftoffRegister lhs,
864 inline void emit_i64_or(LiftoffRegister dst, LiftoffRegister lhs,
866 inline void emit_i64_ori(LiftoffRegister dst, LiftoffRegister lhs,
868 inline void emit_i64_xor(LiftoffRegister dst, LiftoffRegister lhs,
870 inline void emit_i64_xori(LiftoffRegister dst, LiftoffRegister lhs,
892 void emit_ptrsize_add(Register dst, Register lhs, Register rhs) {
894 emit_i64_add(LiftoffRegister(dst), LiftoffRegister(lhs),
897 emit_i32_add(dst, lhs, rhs);
900 void emit_ptrsize_sub(Register dst, Register lhs, Register rhs) {
902 emit_i64_sub(LiftoffRegister(dst), LiftoffRegister(lhs),
905 emit_i32_sub(dst, lhs, rhs);
908 void emit_ptrsize_and(Register dst, Register lhs, Register rhs) {
910 emit_i64_and(LiftoffRegister(dst), LiftoffRegister(lhs),
913 emit_i32_and(dst, lhs, rhs);
924 void emit_ptrsize_addi(Register dst, Register lhs, intptr_t imm) {
926 emit_i64_addi(LiftoffRegister(dst), LiftoffRegister(lhs), imm);
928 emit_i32_addi(dst, lhs, static_cast<int32_t>(imm));
933 LiftoffRegister lhs, LiftoffRegister rhs) {
935 emit_i64_set_cond(condition, dst, lhs, rhs);
937 emit_i32_set_cond(condition, dst, lhs.gp(), rhs.gp());
951 inline void emit_f32_add(DoubleRegister dst, DoubleRegister lhs,
953 inline void emit_f32_sub(DoubleRegister dst, DoubleRegister lhs,
955 inline void emit_f32_mul(DoubleRegister dst, DoubleRegister lhs,
957 inline void emit_f32_div(DoubleRegister dst, DoubleRegister lhs,
959 inline void emit_f32_min(DoubleRegister dst, DoubleRegister lhs,
961 inline void emit_f32_max(DoubleRegister dst, DoubleRegister lhs,
963 inline void emit_f32_copysign(DoubleRegister dst, DoubleRegister lhs,
976 inline void emit_f64_add(DoubleRegister dst, DoubleRegister lhs,
978 inline void emit_f64_sub(DoubleRegister dst, DoubleRegister lhs,
980 inline void emit_f64_mul(DoubleRegister dst, DoubleRegister lhs,
982 inline void emit_f64_div(DoubleRegister dst, DoubleRegister lhs,
984 inline void emit_f64_min(DoubleRegister dst, DoubleRegister lhs,
986 inline void emit_f64_max(DoubleRegister dst, DoubleRegister lhs,
988 inline void emit_f64_copysign(DoubleRegister dst, DoubleRegister lhs,
1013 Register lhs, Register rhs = no_reg);
1014 inline void emit_i32_cond_jumpi(LiftoffCondition, Label*, Register lhs,
1020 inline void emit_i32_set_cond(LiftoffCondition, Register dst, Register lhs,
1024 LiftoffRegister lhs, LiftoffRegister rhs);
1026 DoubleRegister lhs, DoubleRegister rhs);
1028 DoubleRegister lhs, DoubleRegister rhs);
1049 inline void emit_i8x16_shuffle(LiftoffRegister dst, LiftoffRegister lhs,
1052 inline void emit_i8x16_swizzle(LiftoffRegister dst, LiftoffRegister lhs,
1061 inline void emit_i8x16_eq(LiftoffRegister dst, LiftoffRegister lhs,
1063 inline void emit_i8x16_ne(LiftoffRegister dst, LiftoffRegister lhs,
1065 inline void emit_i8x16_gt_s(LiftoffRegister dst, LiftoffRegister lhs,
1067 inline void emit_i8x16_gt_u(LiftoffRegister dst, LiftoffRegister lhs,
1069 inline void emit_i8x16_ge_s(LiftoffRegister dst, LiftoffRegister lhs,
1071 inline void emit_i8x16_ge_u(LiftoffRegister dst, LiftoffRegister lhs,
1073 inline void emit_i16x8_eq(LiftoffRegister dst, LiftoffRegister lhs,
1075 inline void emit_i16x8_ne(LiftoffRegister dst, LiftoffRegister lhs,
1077 inline void emit_i16x8_gt_s(LiftoffRegister dst, LiftoffRegister lhs,
1079 inline void emit_i16x8_gt_u(LiftoffRegister dst, LiftoffRegister lhs,
1081 inline void emit_i16x8_ge_s(LiftoffRegister dst, LiftoffRegister lhs,
1083 inline void emit_i16x8_ge_u(LiftoffRegister dst, LiftoffRegister lhs,
1085 inline void emit_i32x4_eq(LiftoffRegister dst, LiftoffRegister lhs,
1087 inline void emit_i32x4_ne(LiftoffRegister dst, LiftoffRegister lhs,
1089 inline void emit_i32x4_gt_s(LiftoffRegister dst, LiftoffRegister lhs,
1091 inline void emit_i32x4_gt_u(LiftoffRegister dst, LiftoffRegister lhs,
1093 inline void emit_i32x4_ge_s(LiftoffRegister dst, LiftoffRegister lhs,
1095 inline void emit_i32x4_ge_u(LiftoffRegister dst, LiftoffRegister lhs,
1097 inline void emit_i64x2_eq(LiftoffRegister dst, LiftoffRegister lhs,
1099 inline void emit_i64x2_ne(LiftoffRegister dst, LiftoffRegister lhs,
1101 inline void emit_i64x2_gt_s(LiftoffRegister dst, LiftoffRegister lhs,
1103 inline void emit_i64x2_ge_s(LiftoffRegister dst, LiftoffRegister lhs,
1105 inline void emit_f32x4_eq(LiftoffRegister dst, LiftoffRegister lhs,
1107 inline void emit_f32x4_ne(LiftoffRegister dst, LiftoffRegister lhs,
1109 inline void emit_f32x4_lt(LiftoffRegister dst, LiftoffRegister lhs,
1111 inline void emit_f32x4_le(LiftoffRegister dst, LiftoffRegister lhs,
1113 inline void emit_f64x2_eq(LiftoffRegister dst, LiftoffRegister lhs,
1115 inline void emit_f64x2_ne(LiftoffRegister dst, LiftoffRegister lhs,
1117 inline void emit_f64x2_lt(LiftoffRegister dst, LiftoffRegister lhs,
1119 inline void emit_f64x2_le(LiftoffRegister dst, LiftoffRegister lhs,
1123 inline void emit_s128_and(LiftoffRegister dst, LiftoffRegister lhs,
1125 inline void emit_s128_or(LiftoffRegister dst, LiftoffRegister lhs,
1127 inline void emit_s128_xor(LiftoffRegister dst, LiftoffRegister lhs,
1135 inline void emit_i8x16_shl(LiftoffRegister dst, LiftoffRegister lhs,
1137 inline void emit_i8x16_shli(LiftoffRegister dst, LiftoffRegister lhs,
1139 inline void emit_i8x16_shr_s(LiftoffRegister dst, LiftoffRegister lhs,
1141 inline void emit_i8x16_shri_s(LiftoffRegister dst, LiftoffRegister lhs,
1143 inline void emit_i8x16_shr_u(LiftoffRegister dst, LiftoffRegister lhs,
1145 inline void emit_i8x16_shri_u(LiftoffRegister dst, LiftoffRegister lhs,
1147 inline void emit_i8x16_add(LiftoffRegister dst, LiftoffRegister lhs,
1149 inline void emit_i8x16_add_sat_s(LiftoffRegister dst, LiftoffRegister lhs,
1151 inline void emit_i8x16_add_sat_u(LiftoffRegister dst, LiftoffRegister lhs,
1153 inline void emit_i8x16_sub(LiftoffRegister dst, LiftoffRegister lhs,
1155 inline void emit_i8x16_sub_sat_s(LiftoffRegister dst, LiftoffRegister lhs,
1157 inline void emit_i8x16_sub_sat_u(LiftoffRegister dst, LiftoffRegister lhs,
1159 inline void emit_i8x16_min_s(LiftoffRegister dst, LiftoffRegister lhs,
1161 inline void emit_i8x16_min_u(LiftoffRegister dst, LiftoffRegister lhs,
1163 inline void emit_i8x16_max_s(LiftoffRegister dst, LiftoffRegister lhs,
1165 inline void emit_i8x16_max_u(LiftoffRegister dst, LiftoffRegister lhs,
1170 inline void emit_i16x8_shl(LiftoffRegister dst, LiftoffRegister lhs,
1172 inline void emit_i16x8_shli(LiftoffRegister dst, LiftoffRegister lhs,
1174 inline void emit_i16x8_shr_s(LiftoffRegister dst, LiftoffRegister lhs,
1176 inline void emit_i16x8_shri_s(LiftoffRegister dst, LiftoffRegister lhs,
1178 inline void emit_i16x8_shr_u(LiftoffRegister dst, LiftoffRegister lhs,
1180 inline void emit_i16x8_shri_u(LiftoffRegister dst, LiftoffRegister lhs,
1182 inline void emit_i16x8_add(LiftoffRegister dst, LiftoffRegister lhs,
1184 inline void emit_i16x8_add_sat_s(LiftoffRegister dst, LiftoffRegister lhs,
1186 inline void emit_i16x8_add_sat_u(LiftoffRegister dst, LiftoffRegister lhs,
1188 inline void emit_i16x8_sub(LiftoffRegister dst, LiftoffRegister lhs,
1190 inline void emit_i16x8_sub_sat_s(LiftoffRegister dst, LiftoffRegister lhs,
1192 inline void emit_i16x8_sub_sat_u(LiftoffRegister dst, LiftoffRegister lhs,
1194 inline void emit_i16x8_mul(LiftoffRegister dst, LiftoffRegister lhs,
1196 inline void emit_i16x8_min_s(LiftoffRegister dst, LiftoffRegister lhs,
1198 inline void emit_i16x8_min_u(LiftoffRegister dst, LiftoffRegister lhs,
1200 inline void emit_i16x8_max_s(LiftoffRegister dst, LiftoffRegister lhs,
1202 inline void emit_i16x8_max_u(LiftoffRegister dst, LiftoffRegister lhs,
1226 inline void emit_i32x4_shl(LiftoffRegister dst, LiftoffRegister lhs,
1228 inline void emit_i32x4_shli(LiftoffRegister dst, LiftoffRegister lhs,
1230 inline void emit_i32x4_shr_s(LiftoffRegister dst, LiftoffRegister lhs,
1232 inline void emit_i32x4_shri_s(LiftoffRegister dst, LiftoffRegister lhs,
1234 inline void emit_i32x4_shr_u(LiftoffRegister dst, LiftoffRegister lhs,
1236 inline void emit_i32x4_shri_u(LiftoffRegister dst, LiftoffRegister lhs,
1238 inline void emit_i32x4_add(LiftoffRegister dst, LiftoffRegister lhs,
1240 inline void emit_i32x4_sub(LiftoffRegister dst, LiftoffRegister lhs,
1242 inline void emit_i32x4_mul(LiftoffRegister dst, LiftoffRegister lhs,
1244 inline void emit_i32x4_min_s(LiftoffRegister dst, LiftoffRegister lhs,
1246 inline void emit_i32x4_min_u(LiftoffRegister dst, LiftoffRegister lhs,
1248 inline void emit_i32x4_max_s(LiftoffRegister dst, LiftoffRegister lhs,
1250 inline void emit_i32x4_max_u(LiftoffRegister dst, LiftoffRegister lhs,
1252 inline void emit_i32x4_dot_i16x8_s(LiftoffRegister dst, LiftoffRegister lhs,
1272 inline void emit_i64x2_shl(LiftoffRegister dst, LiftoffRegister lhs,
1274 inline void emit_i64x2_shli(LiftoffRegister dst, LiftoffRegister lhs,
1276 inline void emit_i64x2_shr_s(LiftoffRegister dst, LiftoffRegister lhs,
1278 inline void emit_i64x2_shri_s(LiftoffRegister dst, LiftoffRegister lhs,
1280 inline void emit_i64x2_shr_u(LiftoffRegister dst, LiftoffRegister lhs,
1282 inline void emit_i64x2_shri_u(LiftoffRegister dst, LiftoffRegister lhs,
1284 inline void emit_i64x2_add(LiftoffRegister dst, LiftoffRegister lhs,
1286 inline void emit_i64x2_sub(LiftoffRegister dst, LiftoffRegister lhs,
1288 inline void emit_i64x2_mul(LiftoffRegister dst, LiftoffRegister lhs,
1318 inline void emit_f32x4_add(LiftoffRegister dst, LiftoffRegister lhs,
1320 inline void emit_f32x4_sub(LiftoffRegister dst, LiftoffRegister lhs,
1322 inline void emit_f32x4_mul(LiftoffRegister dst, LiftoffRegister lhs,
1324 inline void emit_f32x4_div(LiftoffRegister dst, LiftoffRegister lhs,
1326 inline void emit_f32x4_min(LiftoffRegister dst, LiftoffRegister lhs,
1328 inline void emit_f32x4_max(LiftoffRegister dst, LiftoffRegister lhs,
1330 inline void emit_f32x4_pmin(LiftoffRegister dst, LiftoffRegister lhs,
1332 inline void emit_f32x4_pmax(LiftoffRegister dst, LiftoffRegister lhs,
1341 inline void emit_f64x2_add(LiftoffRegister dst, LiftoffRegister lhs,
1343 inline void emit_f64x2_sub(LiftoffRegister dst, LiftoffRegister lhs,
1345 inline void emit_f64x2_mul(LiftoffRegister dst, LiftoffRegister lhs,
1347 inline void emit_f64x2_div(LiftoffRegister dst, LiftoffRegister lhs,
1349 inline void emit_f64x2_min(LiftoffRegister dst, LiftoffRegister lhs,
1351 inline void emit_f64x2_max(LiftoffRegister dst, LiftoffRegister lhs,
1353 inline void emit_f64x2_pmin(LiftoffRegister dst, LiftoffRegister lhs,
1355 inline void emit_f64x2_pmax(LiftoffRegister dst, LiftoffRegister lhs,
1378 LiftoffRegister lhs,
1381 LiftoffRegister lhs,
1384 LiftoffRegister lhs,
1387 LiftoffRegister lhs,
1405 inline void emit_s128_and_not(LiftoffRegister dst, LiftoffRegister lhs,
1408 LiftoffRegister lhs,
1411 LiftoffRegister lhs,
1418 LiftoffRegister lhs,
1421 LiftoffRegister lhs,
1424 LiftoffRegister lhs,
1427 LiftoffRegister lhs,
1429 inline void emit_i32x4_extract_lane(LiftoffRegister dst, LiftoffRegister lhs,
1431 inline void emit_i64x2_extract_lane(LiftoffRegister dst, LiftoffRegister lhs,
1433 inline void emit_f32x4_extract_lane(LiftoffRegister dst, LiftoffRegister lhs,
1435 inline void emit_f64x2_extract_lane(LiftoffRegister dst, LiftoffRegister lhs,
1578 LiftoffRegister dst, LiftoffRegister lhs,
1580 // If {dst.low_gp()} does not overlap with {lhs.high_gp()} or {rhs.high_gp()},
1582 if (dst.low() != lhs.high() && dst.low() != rhs.high()) {
1583 (assm->*op)(dst.low_gp(), lhs.low_gp(), rhs.low_gp());
1584 (assm->*op)(dst.high_gp(), lhs.high_gp(), rhs.high_gp());
1587 // If {dst.high_gp()} does not overlap with {lhs.low_gp()} or {rhs.low_gp()},
1589 if (dst.high() != lhs.low() && dst.high() != rhs.low()) {
1590 (assm->*op)(dst.high_gp(), lhs.high_gp(), rhs.high_gp());
1591 (assm->*op)(dst.low_gp(), lhs.low_gp(), rhs.low_gp());
1595 Register tmp = assm->GetUnusedRegister(kGpReg, LiftoffRegList{lhs, rhs}).gp();
1596 (assm->*op)(tmp, lhs.low_gp(), rhs.low_gp());
1597 (assm->*op)(dst.high_gp(), lhs.high_gp(), rhs.high_gp());
1604 LiftoffRegister lhs, int64_t imm) {
1607 // If {dst.low_gp()} does not overlap with {lhs.high_gp()},
1609 if (dst.low() != lhs.high()) {
1610 (assm->*op)(dst.low_gp(), lhs.low_gp(), low_word);
1611 (assm->*op)(dst.high_gp(), lhs.high_gp(), high_word);
1614 // If {dst.high_gp()} does not overlap with {lhs.low_gp()},
1616 if (dst.high() != lhs.low()) {
1617 (assm->*op)(dst.high_gp(), lhs.high_gp(), high_word);
1618 (assm->*op)(dst.low_gp(), lhs.low_gp(), low_word);
1622 Register tmp = assm->GetUnusedRegister(kGpReg, LiftoffRegList{lhs}).gp();
1623 (assm->*op)(tmp, lhs.low_gp(), low_word);
1624 (assm->*op)(dst.high_gp(), lhs.high_gp(), high_word);
1629 void LiftoffAssembler::emit_i64_and(LiftoffRegister dst, LiftoffRegister lhs,
1632 this, dst, lhs, rhs);
1635 void LiftoffAssembler::emit_i64_andi(LiftoffRegister dst, LiftoffRegister lhs,
1638 this, dst, lhs, imm);
1641 void LiftoffAssembler::emit_i64_or(LiftoffRegister dst, LiftoffRegister lhs,
1644 this, dst, lhs, rhs);
1647 void LiftoffAssembler::emit_i64_ori(LiftoffRegister dst, LiftoffRegister lhs,
1650 this, dst, lhs, imm);
1653 void LiftoffAssembler::emit_i64_xor(LiftoffRegister dst, LiftoffRegister lhs,
1656 this, dst, lhs, rhs);
1659 void LiftoffAssembler::emit_i64_xori(LiftoffRegister dst, LiftoffRegister lhs,
1662 this, dst, lhs, imm);