Lines Matching refs:label

792 void Mips64Assembler::Bind(Label* label) {
793 CHECK(!label->IsBound());
796 // Walk the list of the branches (auipc + jic pairs) referring to and preceding this label.
798 while (label->IsLinked()) {
799 int32_t position = label->Position();
821 label->position_ = prev;
824 // Now make the label object contain its own location
825 // (it will be used by the branches referring to and following this label)
826 label->BindTo(bound_pc);
829 void Mips64Assembler::B(Label* label) {
830 if (label->IsBound()) {
831 // Branch backwards (to a preceding label), distance is known
832 uint32_t offset = label->Position() - buffer_.Size();
838 // Branch forward (to a following label), distance is unknown
840 // The first branch forward will have 0 in its pc-relative address (copied from label's
842 uint32_t prev = label->position_;
846 // (this forms a linked list of branches preceding this label)
847 label->LinkTo(position);
851 void Mips64Assembler::Jalr(Label* label, GpuRegister indirect_reg) {
852 if (label->IsBound()) {
853 // Branch backwards (to a preceding label), distance is known
854 uint32_t offset = label->Position() - buffer_.Size();
861 // Branch forward (to a following label), distance is unknown
863 // The first branch forward will have 0 in its pc-relative address (copied from label's
865 uint32_t prev = label->position_;
870 // (this forms a linked list of branches preceding this label)
871 label->LinkTo(position);
875 void Mips64Assembler::Bltc(GpuRegister rs, GpuRegister rt, Label* label) {
877 B(label);
880 void Mips64Assembler::Bltzc(GpuRegister rt, Label* label) {
882 B(label);
885 void Mips64Assembler::Bgtzc(GpuRegister rt, Label* label) {
887 B(label);
890 void Mips64Assembler::Bgec(GpuRegister rs, GpuRegister rt, Label* label) {
892 B(label);
895 void Mips64Assembler::Bgezc(GpuRegister rt, Label* label) {
897 B(label);
900 void Mips64Assembler::Blezc(GpuRegister rt, Label* label) {
902 B(label);
905 void Mips64Assembler::Bltuc(GpuRegister rs, GpuRegister rt, Label* label) {
907 B(label);
910 void Mips64Assembler::Bgeuc(GpuRegister rs, GpuRegister rt, Label* label) {
912 B(label);
915 void Mips64Assembler::Beqc(GpuRegister rs, GpuRegister rt, Label* label) {
917 B(label);
920 void Mips64Assembler::Bnec(GpuRegister rs, GpuRegister rt, Label* label) {
922 B(label);
925 void Mips64Assembler::Beqzc(GpuRegister rs, Label* label) {
927 B(label);
930 void Mips64Assembler::Bnezc(GpuRegister rs, Label* label) {
932 B(label);