target-s390x: fix CONVERT TO BINARY (CVD, CVDY)
commit92f2b4e71e988ad2751c71717e9fe3387753442a
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 25 Jun 2015 19:16:58 +0000 (25 21:16 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:51:47 +0000 (7 17:51 +0200)
treefe3ebf9202d577f588880e1c3fd192cf4ca43dfa
parentc9c19b493286db7358f9ee26401b927bbbd21604
target-s390x: fix CONVERT TO BINARY (CVD, CVDY)

current_number being shift left by more than 32 bits, we can't use a
simple int. Similarly use an int64_t type for the input binary value,
to not get the -2^31 case wrong. Finally don't initialize shift to 4,
it's already done in the for loop.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/int_helper.c