On 05/18/2015 06:39 AM, Aurelien Jarno wrote:
> LOAD POSITIVE instructions (LPR, LPGR and LPGFR) set the following
> condition code:
>   0: Result zero; no overflow
>   1: --
>   2: Result greater than zero; no overflow
>   3: Overflow
> 
> The current code wrongly returns 1 instead of 2 in case of a result
> greater than 0. This patches fixes that. This fixes the marshalling of
> the value '0L' in Python.
> 
> Cc: Richard Henderson <r...@twiddle.net>
> Cc: Alexander Graf <ag...@suse.de>
> Signed-off-by: Aurelien Jarno <aurel...@aurel32.net>
> ---
>  target-s390x/cc_helper.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to