Lines Matching refs:dst
647 Register dst,
650 emit_rex_64(dst);
653 emit_modrm(subcode, dst);
655 } else if (dst.is(rax)) {
660 emit_modrm(subcode, dst);
666 const Operand& dst,
669 emit_rex_64(dst);
672 emit_operand(subcode, dst);
676 emit_operand(subcode, dst);
683 Register dst,
687 emit_optional_rex_32(dst);
690 emit_modrm(subcode, dst);
692 } else if (dst.is(rax)) {
697 emit_modrm(subcode, dst);
704 const Operand& dst,
708 emit_optional_rex_32(dst);
711 emit_operand(subcode, dst);
715 emit_operand(subcode, dst);
722 Register dst,
725 emit_optional_rex_32(dst);
728 emit_modrm(subcode, dst);
730 } else if (dst.is(rax)) {
735 emit_modrm(subcode, dst);
742 const Operand& dst,
745 emit_optional_rex_32(dst);
748 emit_operand(subcode, dst);
752 emit_operand(subcode, dst);
759 const Operand& dst,
762 emit_optional_rex_32(dst);
765 emit_operand(subcode, dst);
771 Register dst,
774 if (dst.code() > 3) {
776 emit_rex_64(dst);
780 emit_modrm(subcode, dst);
785 void Assembler::shift(Register dst, Immediate shift_amount, int subcode) {
789 emit_rex_64(dst);
791 emit_modrm(subcode, dst);
793 emit_rex_64(dst);
795 emit_modrm(subcode, dst);
801 void Assembler::shift(Register dst, int subcode) {
803 emit_rex_64(dst);
805 emit_modrm(subcode, dst);
809 void Assembler::shift_32(Register dst, int subcode) {
811 emit_optional_rex_32(dst);
813 emit_modrm(subcode, dst);
817 void Assembler::shift_32(Register dst, Immediate shift_amount, int subcode) {
821 emit_optional_rex_32(dst);
823 emit_modrm(subcode, dst);
825 emit_optional_rex_32(dst);
827 emit_modrm(subcode, dst);
833 void Assembler::bt(const Operand& dst, Register src) {
835 emit_rex_64(src, dst);
838 emit_operand(src, dst);
842 void Assembler::bts(const Operand& dst, Register src) {
844 emit_rex_64(src, dst);
847 emit_operand(src, dst);
933 void Assembler::cmovq(Condition cc, Register dst, Register src) {
935 movq(dst, src);
944 emit_rex_64(dst, src);
947 emit_modrm(dst, src);
951 void Assembler::cmovq(Condition cc, Register dst, const Operand& src) {
953 movq(dst, src);
960 emit_rex_64(dst, src);
963 emit_operand(dst, src);
967 void Assembler::cmovl(Condition cc, Register dst, Register src) {
969 movl(dst, src);
976 emit_optional_rex_32(dst, src);
979 emit_modrm(dst, src);
983 void Assembler::cmovl(Condition cc, Register dst, const Operand& src) {
985 movl(dst, src);
992 emit_optional_rex_32(dst, src);
995 emit_operand(dst, src);
1022 void Assembler::decq(Register dst) {
1024 emit_rex_64(dst);
1026 emit_modrm(0x1, dst);
1030 void Assembler::decq(const Operand& dst) {
1032 emit_rex_64(dst);
1034 emit_operand(1, dst);
1038 void Assembler::decl(Register dst) {
1040 emit_optional_rex_32(dst);
1042 emit_modrm(0x1, dst);
1046 void Assembler::decl(const Operand& dst) {
1048 emit_optional_rex_32(dst);
1050 emit_operand(1, dst);
1054 void Assembler::decb(Register dst) {
1056 if (dst.code() > 3) {
1058 emit_rex_32(dst);
1061 emit_modrm(0x1, dst);
1065 void Assembler::decb(const Operand& dst) {
1067 emit_optional_rex_32(dst);
1069 emit_operand(1, dst);
1111 void Assembler::imul(Register dst, Register src) {
1113 emit_rex_64(dst, src);
1116 emit_modrm(dst, src);
1120 void Assembler::imul(Register dst, const Operand& src) {
1122 emit_rex_64(dst, src);
1125 emit_operand(dst, src);
1129 void Assembler::imul(Register dst, Register src, Immediate imm) {
1131 emit_rex_64(dst, src);
1134 emit_modrm(dst, src);
1138 emit_modrm(dst, src);
1144 void Assembler::imull(Register dst, Register src) {
1146 emit_optional_rex_32(dst, src);
1149 emit_modrm(dst, src);
1153 void Assembler::imull(Register dst, const Operand& src) {
1155 emit_optional_rex_32(dst, src);
1158 emit_operand(dst, src);
1162 void Assembler::imull(Register dst, Register src, Immediate imm) {
1164 emit_optional_rex_32(dst, src);
1167 emit_modrm(dst, src);
1171 emit_modrm(dst, src);
1177 void Assembler::incq(Register dst) {
1179 emit_rex_64(dst);
1181 emit_modrm(0x0, dst);
1185 void Assembler::incq(const Operand& dst) {
1187 emit_rex_64(dst);
1189 emit_operand(0, dst);
1193 void Assembler::incl(const Operand& dst) {
1195 emit_optional_rex_32(dst);
1197 emit_operand(0, dst);
1201 void Assembler::incl(Register dst) {
1203 emit_optional_rex_32(dst);
1205 emit_modrm(0, dst);
1364 void Assembler::lea(Register dst, const Operand& src) {
1366 emit_rex_64(dst, src);
1368 emit_operand(dst, src);
1372 void Assembler::leal(Register dst, const Operand& src) {
1374 emit_optional_rex_32(dst, src);
1376 emit_operand(dst, src);
1399 void Assembler::movb(Register dst, const Operand& src) {
1401 if (dst.code() > 3) {
1403 emit_rex_32(dst, src);
1405 emit_optional_rex_32(dst, src);
1408 emit_operand(dst, src);
1412 void Assembler::movb(Register dst, Immediate imm) {
1414 if (dst.code() > 3) {
1415 emit_rex_32(dst);
1417 emit(0xB0 + dst.low_bits());
1422 void Assembler::movb(const Operand& dst, Register src) {
1425 emit_rex_32(src, dst);
1427 emit_optional_rex_32(src, dst);
1430 emit_operand(src, dst);
1434 void Assembler::movw(const Operand& dst, Register src) {
1437 emit_optional_rex_32(src, dst);
1439 emit_operand(src, dst);
1443 void Assembler::movl(Register dst, const Operand& src) {
1445 emit_optional_rex_32(dst, src);
1447 emit_operand(dst, src);
1451 void Assembler::movl(Register dst, Register src) {
1454 emit_optional_rex_32(src, dst);
1456 emit_modrm(src, dst);
1458 emit_optional_rex_32(dst, src);
1460 emit_modrm(dst, src);
1465 void Assembler::movl(const Operand& dst, Register src) {
1467 emit_optional_rex_32(src, dst);
1469 emit_operand(src, dst);
1473 void Assembler::movl(const Operand& dst, Immediate value) {
1475 emit_optional_rex_32(dst);
1477 emit_operand(0x0, dst);
1482 void Assembler::movl(Register dst, Immediate value) {
1484 emit_optional_rex_32(dst);
1485 emit(0xB8 + dst.low_bits());
1490 void Assembler::movq(Register dst, const Operand& src) {
1492 emit_rex_64(dst, src);
1494 emit_operand(dst, src);
1498 void Assembler::movq(Register dst, Register src) {
1501 emit_rex_64(src, dst);
1503 emit_modrm(src, dst);
1505 emit_rex_64(dst, src);
1507 emit_modrm(dst, src);
1512 void Assembler::movq(Register dst, Immediate value) {
1514 emit_rex_64(dst);
1516 emit_modrm(0x0, dst);
1521 void Assembler::movq(const Operand& dst, Register src) {
1523 emit_rex_64(src, dst);
1525 emit_operand(src, dst);
1529 void Assembler::movq(Register dst, void* value, RelocInfo::Mode rmode) {
1534 emit_rex_64(dst);
1535 emit(0xB8 | dst.low_bits());
1540 void Assembler::movq(Register dst, int64_t value, RelocInfo::Mode rmode) {
1545 movq(dst, Immediate(static_cast<int32_t>(value)));
1548 movl(dst, Immediate(static_cast<int32_t>(value)));
1555 emit_rex_64(dst);
1556 emit(0xB8 | dst.low_bits());
1561 void Assembler::movq(Register dst, ExternalReference ref) {
1563 movq(dst, value, RelocInfo::EXTERNAL_REFERENCE);
1567 void Assembler::movq(const Operand& dst, Immediate value) {
1569 emit_rex_64(dst);
1571 emit_operand(0, dst);
1578 void Assembler::movl(const Operand& dst, Label* src) {
1580 emit_optional_rex_32(dst);
1582 emit_operand(0, dst);
1599 void Assembler::movq(Register dst, Handle<Object> value, RelocInfo::Mode mode) {
1606 movq(dst, reinterpret_cast<int64_t>(*value), RelocInfo::NONE);
1611 emit_rex_64(dst);
1612 emit(0xB8 | dst.low_bits());
1618 void Assembler::movsxbq(Register dst, const Operand& src) {
1620 emit_rex_64(dst, src);
1623 emit_operand(dst, src);
1627 void Assembler::movsxwq(Register dst, const Operand& src) {
1629 emit_rex_64(dst, src);
1632 emit_operand(dst, src);
1636 void Assembler::movsxlq(Register dst, Register src) {
1638 emit_rex_64(dst, src);
1640 emit_modrm(dst, src);
1644 void Assembler::movsxlq(Register dst, const Operand& src) {
1646 emit_rex_64(dst, src);
1648 emit_operand(dst, src);
1652 void Assembler::movzxbq(Register dst, const Operand& src) {
1654 emit_optional_rex_32(dst, src);
1657 emit_operand(dst, src);
1661 void Assembler::movzxbl(Register dst, const Operand& src) {
1663 emit_optional_rex_32(dst, src);
1666 emit_operand(dst, src);
1670 void Assembler::movzxwq(Register dst, const Operand& src) {
1672 emit_optional_rex_32(dst, src);
1675 emit_operand(dst, src);
1679 void Assembler::movzxwl(Register dst, const Operand& src) {
1681 emit_optional_rex_32(dst, src);
1684 emit_operand(dst, src);
1726 void Assembler::neg(Register dst) {
1728 emit_rex_64(dst);
1730 emit_modrm(0x3, dst);
1734 void Assembler::negl(Register dst) {
1736 emit_optional_rex_32(dst);
1738 emit_modrm(0x3, dst);
1742 void Assembler::neg(const Operand& dst) {
1744 emit_rex_64(dst);
1746 emit_operand(3, dst);
1756 void Assembler::not_(Register dst) {
1758 emit_rex_64(dst);
1760 emit_modrm(0x2, dst);
1764 void Assembler::not_(const Operand& dst) {
1766 emit_rex_64(dst);
1768 emit_operand(2, dst);
1772 void Assembler::notl(Register dst) {
1774 emit_optional_rex_32(dst);
1776 emit_modrm(0x2, dst);
1866 void Assembler::pop(Register dst) {
1868 emit_optional_rex_32(dst);
1869 emit(0x58 | dst.low_bits());
1873 void Assembler::pop(const Operand& dst) {
1875 emit_optional_rex_32(dst);
1877 emit_operand(0, dst);
1963 void Assembler::shld(Register dst, Register src) {
1965 emit_rex_64(src, dst);
1968 emit_modrm(src, dst);
1972 void Assembler::shrd(Register dst, Register src) {
1974 emit_rex_64(src, dst);
1977 emit_modrm(src, dst);
1981 void Assembler::xchg(Register dst, Register src) {
1983 if (src.is(rax) || dst.is(rax)) { // Single-byte encoding
1984 Register other = src.is(rax) ? dst : src;
1987 } else if (dst.low_bits() == 4) {
1988 emit_rex_64(dst, src);
1990 emit_modrm(dst, src);
1992 emit_rex_64(src, dst);
1994 emit_modrm(src, dst);
1999 dst, RelocInfo::Mode mode) {
2003 emitq(reinterpret_cast<uintptr_t>(dst), mode);
2012 void Assembler::testb(Register dst, Register src) {
2015 emit_rex_32(src, dst);
2017 emit_modrm(src, dst);
2019 if (dst.code() > 3 || src.code() > 3) {
2021 emit_rex_32(dst, src);
2024 emit_modrm(dst, src);
2070 void Assembler::testl(Register dst, Register src) {
2073 emit_optional_rex_32(src, dst);
2075 emit_modrm(src, dst);
2077 emit_optional_rex_32(dst, src);
2079 emit_modrm(dst, src);
2125 void Assembler::testq(Register dst, Register src) {
2128 emit_rex_64(src, dst);
2130 emit_modrm(src, dst);
2132 emit_rex_64(dst, src);
2134 emit_modrm(dst, src);
2139 void Assembler::testq(Register dst, Immediate mask) {
2141 if (dst.is(rax)) {
2146 emit_rex_64(dst);
2148 emit_modrm(0, dst);
2503 void Assembler::movd(XMMRegister dst, Register src) {
2506 emit_optional_rex_32(dst, src);
2509 emit_sse_operand(dst, src);
2513 void Assembler::movd(Register dst, XMMRegister src) {
2516 emit_optional_rex_32(src, dst);
2519 emit_sse_operand(src, dst);
2523 void Assembler::movq(XMMRegister dst, Register src) {
2526 emit_rex_64(dst, src);
2529 emit_sse_operand(dst, src);
2533 void Assembler::movq(Register dst, XMMRegister src) {
2536 emit_rex_64(src, dst);
2539 emit_sse_operand(src, dst);
2543 void Assembler::movdqa(const Operand& dst, XMMRegister src) {
2546 emit_rex_64(src, dst);
2549 emit_sse_operand(src, dst);
2553 void Assembler::movdqa(XMMRegister dst, const Operand& src) {
2556 emit_rex_64(dst, src);
2559 emit_sse_operand(dst, src);
2563 void Assembler::extractps(Register dst, XMMRegister src, byte imm8) {
2567 emit_optional_rex_32(dst, src);
2571 emit_sse_operand(dst, src);
2576 void Assembler::movsd(const Operand& dst, XMMRegister src) {
2579 emit_optional_rex_32(src, dst);
2582 emit_sse_operand(src, dst);
2586 void Assembler::movsd(XMMRegister dst, XMMRegister src) {
2589 emit_optional_rex_32(dst, src);
2592 emit_sse_operand(dst, src);
2596 void Assembler::movsd(XMMRegister dst, const Operand& src) {
2599 emit_optional_rex_32(dst, src);
2602 emit_sse_operand(dst, src);
2606 void Assembler::movss(XMMRegister dst, const Operand& src) {
2609 emit_optional_rex_32(dst, src);
2612 emit_sse_operand(dst, src);
2616 void Assembler::movss(const Operand& src, XMMRegister dst) {
2619 emit_optional_rex_32(dst, src);
2622 emit_sse_operand(dst, src);
2626 void Assembler::cvttss2si(Register dst, const Operand& src) {
2629 emit_optional_rex_32(dst, src);
2632 emit_operand(dst, src);
2636 void Assembler::cvttss2si(Register dst, XMMRegister src) {
2639 emit_optional_rex_32(dst, src);
2642 emit_sse_operand(dst, src);
2646 void Assembler::cvttsd2si(Register dst, const Operand& src) {
2649 emit_optional_rex_32(dst, src);
2652 emit_operand(dst, src);
2656 void Assembler::cvttsd2si(Register dst, XMMRegister src) {
2659 emit_optional_rex_32(dst, src);
2662 emit_sse_operand(dst, src);
2666 void Assembler::cvttsd2siq(Register dst, XMMRegister src) {
2669 emit_rex_64(dst, src);
2672 emit_sse_operand(dst, src);
2676 void Assembler::cvtlsi2sd(XMMRegister dst, const Operand& src) {
2679 emit_optional_rex_32(dst, src);
2682 emit_sse_operand(dst, src);
2686 void Assembler::cvtlsi2sd(XMMRegister dst, Register src) {
2689 emit_optional_rex_32(dst, src);
2692 emit_sse_operand(dst, src);
2696 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) {
2699 emit_optional_rex_32(dst, src);
2702 emit_sse_operand(dst, src);
2706 void Assembler::cvtqsi2sd(XMMRegister dst, Register src) {
2709 emit_rex_64(dst, src);
2712 emit_sse_operand(dst, src);
2716 void Assembler::cvtss2sd(XMMRegister dst, XMMRegister src) {
2719 emit_optional_rex_32(dst, src);
2722 emit_sse_operand(dst, src);
2726 void Assembler::cvtss2sd(XMMRegister dst, const Operand& src) {
2729 emit_optional_rex_32(dst, src);
2732 emit_sse_operand(dst, src);
2736 void Assembler::cvtsd2ss(XMMRegister dst, XMMRegister src) {
2739 emit_optional_rex_32(dst, src);
2742 emit_sse_operand(dst, src);
2746 void Assembler::cvtsd2si(Register dst, XMMRegister src) {
2749 emit_optional_rex_32(dst, src);
2752 emit_sse_operand(dst, src);
2756 void Assembler::cvtsd2siq(Register dst, XMMRegister src) {
2759 emit_rex_64(dst, src);
2762 emit_sse_operand(dst, src);
2766 void Assembler::addsd(XMMRegister dst, XMMRegister src) {
2769 emit_optional_rex_32(dst, src);
2772 emit_sse_operand(dst, src);
2776 void Assembler::mulsd(XMMRegister dst, XMMRegister src) {
2779 emit_optional_rex_32(dst, src);
2782 emit_sse_operand(dst, src);
2786 void Assembler::subsd(XMMRegister dst, XMMRegister src) {
2789 emit_optional_rex_32(dst, src);
2792 emit_sse_operand(dst, src);
2796 void Assembler::divsd(XMMRegister dst, XMMRegister src) {
2799 emit_optional_rex_32(dst, src);
2802 emit_sse_operand(dst, src);
2806 void Assembler::andpd(XMMRegister dst, XMMRegister src) {
2809 emit_optional_rex_32(dst, src);
2812 emit_sse_operand(dst, src);
2816 void Assembler::orpd(XMMRegister dst, XMMRegister src) {
2819 emit_optional_rex_32(dst, src);
2822 emit_sse_operand(dst, src);
2826 void Assembler::xorpd(XMMRegister dst, XMMRegister src) {
2829 emit_optional_rex_32(dst, src);
2832 emit_sse_operand(dst, src);
2836 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) {
2839 emit_optional_rex_32(dst, src);
2842 emit_sse_operand(dst, src);
2846 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) {
2849 emit_optional_rex_32(dst, src);
2852 emit_sse_operand(dst, src);
2856 void Assembler::ucomisd(XMMRegister dst, const Operand& src) {
2859 emit_optional_rex_32(dst, src);
2862 emit_sse_operand(dst, src);
2866 void Assembler::movmskpd(Register dst, XMMRegister src) {
2869 emit_optional_rex_32(dst, src);
2872 emit_sse_operand(dst, src);
2882 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) {
2883 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits());
2886 void Assembler::emit_sse_operand(XMMRegister dst, Register src) {
2887 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits());
2890 void Assembler::emit_sse_operand(Register dst, XMMRegister src) {
2891 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits());