Lines Matching refs:reg
114 bool IsRegister(CpuRegister reg) const { in IsRegister() argument
116 && ((encoding_[0] & 0x07) == reg.LowBits()) // Register codes match. in IsRegister()
117 && (reg.NeedsRex() == ((rex_ & 1) != 0)); // REX.000B bits match. in IsRegister()
173 explicit Operand(CpuRegister reg) : rex_(0), length_(0), fixup_(nullptr) { SetModRM(3, reg); } in Operand() argument
363 void call(CpuRegister reg);
367 void pushq(CpuRegister reg);
371 void popq(CpuRegister reg);
611 void psllw(XmmRegister reg, const Immediate& shift_count);
612 void pslld(XmmRegister reg, const Immediate& shift_count);
613 void psllq(XmmRegister reg, const Immediate& shift_count);
615 void psraw(XmmRegister reg, const Immediate& shift_count);
616 void psrad(XmmRegister reg, const Immediate& shift_count);
619 void psrlw(XmmRegister reg, const Immediate& shift_count);
620 void psrld(XmmRegister reg, const Immediate& shift_count);
621 void psrlq(XmmRegister reg, const Immediate& shift_count);
622 void psrldq(XmmRegister reg, const Immediate& shift_count);
654 void xchgl(CpuRegister reg, const Address& address);
659 void cmpl(CpuRegister reg, const Immediate& imm);
661 void cmpl(CpuRegister reg, const Address& address);
662 void cmpl(const Address& address, CpuRegister reg);
671 void testl(CpuRegister reg, const Address& address);
672 void testl(CpuRegister reg, const Immediate& imm);
675 void testq(CpuRegister reg, const Address& address);
682 void andl(CpuRegister reg, const Address& address);
685 void andq(CpuRegister reg, const Address& address);
689 void orl(CpuRegister reg, const Address& address);
692 void orq(CpuRegister reg, const Address& address);
696 void xorl(CpuRegister reg, const Address& address);
699 void xorq(CpuRegister reg, const Address& address);
702 void addl(CpuRegister reg, const Immediate& imm);
703 void addl(CpuRegister reg, const Address& address);
704 void addl(const Address& address, CpuRegister reg);
708 void addq(CpuRegister reg, const Immediate& imm);
713 void subl(CpuRegister reg, const Immediate& imm);
714 void subl(CpuRegister reg, const Address& address);
716 void subq(CpuRegister reg, const Immediate& imm);
723 void idivl(CpuRegister reg);
724 void idivq(CpuRegister reg);
727 void imull(CpuRegister reg, const Immediate& imm);
729 void imull(CpuRegister reg, const Address& address);
733 void imulq(CpuRegister reg, const Immediate& imm);
734 void imulq(CpuRegister reg, const Address& address);
735 void imulq(CpuRegister dst, CpuRegister reg, const Immediate& imm);
737 void imull(CpuRegister reg);
740 void mull(CpuRegister reg);
743 void shll(CpuRegister reg, const Immediate& imm);
745 void shrl(CpuRegister reg, const Immediate& imm);
747 void sarl(CpuRegister reg, const Immediate& imm);
750 void shlq(CpuRegister reg, const Immediate& imm);
752 void shrq(CpuRegister reg, const Immediate& imm);
754 void sarq(CpuRegister reg, const Immediate& imm);
757 void negl(CpuRegister reg);
758 void negq(CpuRegister reg);
760 void notl(CpuRegister reg);
761 void notq(CpuRegister reg);
777 void jmp(CpuRegister reg);
783 void cmpxchgl(const Address& address, CpuRegister reg);
784 void cmpxchgq(const Address& address, CpuRegister reg);
814 void rorl(CpuRegister reg, const Immediate& imm);
816 void roll(CpuRegister reg, const Immediate& imm);
819 void rorq(CpuRegister reg, const Immediate& imm);
821 void rolq(CpuRegister reg, const Immediate& imm);
835 void AddImmediate(CpuRegister reg, const Immediate& imm);
839 void LockCmpxchgl(const Address& address, CpuRegister reg) { in LockCmpxchgl() argument
840 lock()->cmpxchgl(address, reg); in LockCmpxchgl()
843 void LockCmpxchgq(const Address& address, CpuRegister reg) { in LockCmpxchgq() argument
844 lock()->cmpxchgq(address, reg); in LockCmpxchgq()
896 void PoisonHeapReference(CpuRegister reg) { negl(reg); } in PoisonHeapReference() argument
898 void UnpoisonHeapReference(CpuRegister reg) { negl(reg); } in UnpoisonHeapReference() argument
900 void MaybePoisonHeapReference(CpuRegister reg) { in MaybePoisonHeapReference() argument
902 PoisonHeapReference(reg); in MaybePoisonHeapReference()
906 void MaybeUnpoisonHeapReference(CpuRegister reg) { in MaybeUnpoisonHeapReference() argument
908 UnpoisonHeapReference(reg); in MaybeUnpoisonHeapReference()
916 void EmitRegisterOperand(uint8_t rm, uint8_t reg);
917 void EmitXmmRegisterOperand(uint8_t rm, XmmRegister reg);
929 void EmitGenericShift(bool wide, int rm, CpuRegister reg, const Immediate& imm);
936 void EmitOptionalRex32(CpuRegister reg);
947 void EmitRex64(CpuRegister reg);
985 inline void X86_64Assembler::EmitRegisterOperand(uint8_t rm, uint8_t reg) { in EmitRegisterOperand() argument
988 buffer_.Emit<uint8_t>((0xC0 | (reg & 7)) + (rm << 3)); in EmitRegisterOperand()
991 inline void X86_64Assembler::EmitXmmRegisterOperand(uint8_t rm, XmmRegister reg) { in EmitXmmRegisterOperand() argument
992 EmitRegisterOperand(rm, static_cast<uint8_t>(reg.AsFloatRegister())); in EmitXmmRegisterOperand()