superfluous TEST instruction
Ulf Zibis
Ulf.Zibis at gmx.de
Fri Mar 19 11:27:37 PDT 2010
If I understand the Intel manual right, the zero flag is already set
from the SHR instruction, so newly testing on 0 by TEST instruction
seems superfluous.
Am I wrong ?
0x00b88942: shr $0x10,%eax ;*iushr
; -
java.lang.Character::isBMPCodePoint at 3 (line 2737)
; -
java.lang.Character::charCount at 1 (line 2907)
; -
java.lang.Character::charCount at 26 (line 2946)
0x00b88945: test %eax,%eax
0x00b88947: je 0x00b88973 ;*ifeq
; -
java.lang.Character::charCount at 4 (line 2907)
; -
java.lang.Character::charCount at 26 (line 2946)
-Ulf
More information about the hotspot-compiler-dev
mailing list