diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-09 22:35:13 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-09 22:35:13 +0000 |
commit | d2604285b26501435286d7d2933d9017920794d6 (patch) | |
tree | 43162d17da3919717893f1f75a6e1d0669c5cb62 /tcg/tcg-op.h | |
parent | f31e93706412e188a4164d1aaf65ad54b85fc951 (diff) |
Implement TCG not ops for x86-64
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6797 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg-op.h')
-rw-r--r-- | tcg/tcg-op.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h index 4c1c5bddb0..1cf8b15e36 100644 --- a/tcg/tcg-op.h +++ b/tcg/tcg-op.h @@ -1425,12 +1425,20 @@ static inline void tcg_gen_neg_i64(TCGv_i64 ret, TCGv_i64 arg) static inline void tcg_gen_not_i32(TCGv_i32 ret, TCGv_i32 arg) { +#ifdef TCG_TARGET_HAS_not_i32 + tcg_gen_op2_i32(INDEX_op_not_i32, ret, arg); +#else tcg_gen_xori_i32(ret, arg, -1); +#endif } static inline void tcg_gen_not_i64(TCGv_i64 ret, TCGv_i64 arg) { +#ifdef TCG_TARGET_HAS_not_i64 + tcg_gen_op2_i32(INDEX_op_not_i64, ret, arg); +#else tcg_gen_xori_i64(ret, arg, -1); +#endif } static inline void tcg_gen_discard_i32(TCGv_i32 arg) |