tcg-sparc: Implement neg.
authorRichard Henderson <rth@twiddle.net>
Tue, 16 Feb 2010 21:55:15 +0000 (13:55 -0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 20 Feb 2010 08:31:50 +0000 (08:31 +0000)
commit4b5a85c175768faf302cf8349d8613dbc1ac5f54
tree55609f1b9a533dac95824d37d5d19565299548a1
parent4fc8d6711aff7a9c11e402c3d77b481609f9f486
tcg-sparc: Implement neg.

The fallback implementation of "ret = 0 - arg1" isn't ideal,
first because of the extra tcg op to load the zero, and second
because we fail to handle zero as %g0 for arg1 of the sub.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/sparc/tcg-target.c
tcg/sparc/tcg-target.h