superfluous TEST instruction
Vladimir Kozlov
Vladimir.Kozlov at Sun.COM
Fri Mar 19 11:43:38 PDT 2010
RFE: 5044093
Vladimir
Ulf Zibis wrote:
> 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