Mercurial > hg > graal-compiler
diff src/cpu/x86/vm/assembler_x86.cpp @ 1302:2484f4d6a54e
6935535: String.indexOf() returns incorrect result on x86 with SSE4.2
Summary: Added missing counter decrement when substring search restarted.
Reviewed-by: twisti
author | kvn |
---|---|
date | Wed, 17 Mar 2010 10:47:03 -0700 |
parents | 85f13cdfbc1d |
children | 0a43776437b6 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp Wed Mar 17 10:22:41 2010 +0100 +++ b/src/cpu/x86/vm/assembler_x86.cpp Wed Mar 17 10:47:03 2010 -0700 @@ -8460,6 +8460,7 @@ subptr(str1, result); // Restore counter shrl(str1, 1); addl(cnt1, str1); + decrementl(cnt1); lea(str1, Address(result, 2)); // Reload string // Load substr