--- a/src/hotspot/cpu/x86/macroAssembler_x86.cpp Fri May 24 16:53:44 2019 +0200
+++ b/src/hotspot/cpu/x86/macroAssembler_x86.cpp Mon May 27 01:36:04 2019 -0700
@@ -6350,7 +6350,7 @@
movptr(result, str1);
if (UseAVX >= 2) {
cmpl(cnt1, stride);
- jcc(Assembler::less, SCAN_TO_CHAR_LOOP);
+ jcc(Assembler::less, SCAN_TO_CHAR);
cmpl(cnt1, 2*stride);
jcc(Assembler::less, SCAN_TO_8_CHAR_INIT);
movdl(vec1, ch);
@@ -6377,10 +6377,8 @@
}
bind(SCAN_TO_8_CHAR);
cmpl(cnt1, stride);
- if (UseAVX >= 2) {
- jcc(Assembler::less, SCAN_TO_CHAR);
- } else {
- jcc(Assembler::less, SCAN_TO_CHAR_LOOP);
+ jcc(Assembler::less, SCAN_TO_CHAR);
+ if (UseAVX < 2) {
movdl(vec1, ch);
pshuflw(vec1, vec1, 0x00);
pshufd(vec1, vec1, 0);