diff options
author | Richard Henderson <rth@twiddle.net> | 2010-02-16 13:55:15 -0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-20 08:31:50 +0000 |
commit | 4b5a85c175768faf302cf8349d8613dbc1ac5f54 (patch) | |
tree | 55609f1b9a533dac95824d37d5d19565299548a1 /tcg/sparc/tcg-target.h | |
parent | 4fc8d6711aff7a9c11e402c3d77b481609f9f486 (diff) |
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>
Diffstat (limited to 'tcg/sparc/tcg-target.h')
-rw-r--r-- | tcg/sparc/tcg-target.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h index d27ed5a12c..66031bafbe 100644 --- a/tcg/sparc/tcg-target.h +++ b/tcg/sparc/tcg-target.h @@ -91,15 +91,16 @@ enum { #define TCG_TARGET_HAS_div_i32 #define TCG_TARGET_HAS_div_i64 +#define TCG_TARGET_HAS_neg_i32 + #if TCG_TARGET_REG_BITS == 64 #define TCG_TARGET_HAS_ext32s_i64 #define TCG_TARGET_HAS_ext32u_i64 +#define TCG_TARGET_HAS_neg_i64 #endif //#define TCG_TARGET_HAS_bswap32_i32 //#define TCG_TARGET_HAS_bswap64_i64 -//#define TCG_TARGET_HAS_neg_i32 -//#define TCG_TARGET_HAS_neg_i64 /* Note: must be synced with dyngen-exec.h and Makefile.target */ |