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)
commitda699ff558b621234ddb326d5456eed01eec3c13
tree55609f1b9a533dac95824d37d5d19565299548a1
parent25e4541ff3ed2813c720ca4f87bb80d7762a4ba2
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