Lines Matching refs:cnt2
10580 Register cnt1, Register cnt2,
10595 assert(cnt1 == rdx && cnt2 == rax && tmp == rcx, "pcmpestri");
10604 assert(int_cnt2 >= 8, "this code isused only for cnt2 >= 8 chars");
10608 movl(cnt2, int_cnt2);
10618 negptr(cnt2); // Jumped here with negative cnt2, convert to positive
10625 // cnt2 is number of substring reminding elements and
10627 // Restored cnt1 = cnt1 - cnt2 + int_cnt2
10628 subl(cnt1, cnt2);
10630 movl(cnt2, int_cnt2); // Now restore cnt2
10633 cmpl(cnt1, cnt2);
10646 cmpl(cnt1, cnt2);
10665 cmpl(cnt1, cnt2);
10689 negptr(cnt2);
10690 addptr(cnt2, 8);
10694 cmpl(cnt2, -8); // Do not read beyond substring
10697 // cnt1 = cnt1 - cnt2 + 8
10698 addl(cnt1, cnt2); // cnt2 is negative
10700 movl(cnt2, 8); negptr(cnt2);
10703 movdqu(vec, Address(str2, cnt2, Address::times_2, int_cnt2*2));
10704 pcmpestri(vec, Address(result, cnt2, Address::times_2, int_cnt2*2), 0x0d);
10708 addptr(tmp, cnt2);
10714 addptr(cnt2, 8);
10731 Register cnt1, Register cnt2,
10739 // is in cnt2 register.
10756 assert(cnt1 == rdx && cnt2 == rax && tmp == rcx, "pcmpestri");
10777 } else { // cnt2 = { 3, 5, 6, 7 }
10786 cmpl(cnt2, 8);
10800 push(cnt2);
10803 load_unsigned_short(result, Address(str2, cnt2, Address::times_2, -2));
10804 movw(Address(rsp, cnt2, Address::times_2, stk_offset), result);
10805 decrement(cnt2);
10808 pop(cnt2);
10825 push(cnt2);
10828 movl(cnt2, cnt1);
10831 load_unsigned_short(result, Address(str1, cnt2, Address::times_2, -2));
10832 movw(Address(rsp, cnt2, Address::times_2, stk_offset), result);
10833 decrement(cnt2);
10837 pop(cnt2);
10845 push(cnt2); // substr count
10850 movl(cnt2, int_cnt2);
10874 movl(cnt2, Address(rsp, 3*wordSize));
10883 cmpl(cnt1, cnt2);
10891 assert(cnt1 == rdx && cnt2 == rax && tmp == rcx, "pcmpestri");
10896 cmpl(cnt1, cnt2);
10914 cmpl(cnt1, cnt2);
10936 addl(tmp, cnt2);
10943 cmpl(cnt2, 8);
10951 cmpl(tmp, cnt2);
10961 subl(cnt2, 8);
10966 cmpl(cnt2, 8); // Do not read beyond substring
10969 lea(str2, Address(str2, cnt2, Address::times_2, -16));
10970 lea(str1, Address(str1, cnt2, Address::times_2, -16));
10971 subl(cnt1, cnt2);
10972 movl(cnt2, 8);
10994 Register cnt1, Register cnt2, Register result,
11003 subl(cnt1, cnt2);
11005 cmov32(Assembler::lessEqual, cnt2, result);
11008 testl(cnt2, cnt2);
11016 cmpl(cnt2, 1);
11038 assert(result == rax && cnt2 == rdx && cnt1 == rcx, "pcmpestri");
11040 movl(result, cnt2);
11041 andl(cnt2, ~(stride2-1)); // cnt2 holds the vector count
11058 load_unsigned_short(cnt2, Address(str2, cnt1, scale));
11059 subl(result, cnt2);
11067 subl(cnt2, stride2);
11078 subl(cnt2, stride2);
11089 movl(cnt2, result);
11103 movl(cnt2, result);
11104 cmpl(cnt2, stride);
11110 subptr(cnt2, stride);
11114 negptr(cnt2);
11123 movl(result, cnt2);
11124 andl(cnt2, ~(stride - 1)); // cnt2 holds the vector count
11141 assert(result == rax && cnt2 == rdx && cnt1 == rcx, "pcmpestri");
11150 subptr(cnt2, stride);
11157 movl(cnt2, stride);
11168 load_unsigned_short(cnt2, Address(str2, cnt1, scale));
11169 subl(result, cnt2);
11173 movl(cnt2, result);
11177 lea(str1, Address(str1, cnt2, scale));
11178 lea(str2, Address(str2, cnt2, scale));
11179 decrementl(cnt2); // first character was compared already
11180 negptr(cnt2);
11184 load_unsigned_short(result, Address(str1, cnt2, scale, 0));
11185 load_unsigned_short(cnt1, Address(str2, cnt2, scale, 0));
11188 increment(cnt2);