sparc64: fix umul and smul insns
commitfb170183e7387ade9aef2bddd59a8a62fceedac6
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Tue, 1 Jun 2010 20:12:58 +0000 (2 00:12 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 2 Jun 2010 20:08:44 +0000 (2 20:08 +0000)
treec199733945d474ebb16bb29718bc9a74e7a2f011
parent09487205bb03548d260300d32595ba17ab597337
sparc64: fix umul and smul insns

- truncate and sign or zero extend operands before multiplication
- factor out common code to gen_op_multiply() with parameter to sign/zero extend
- call gen_op_multiply from gen_op_umul and gen_op_smul

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/translate.c