[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/9] specialize tcg_gen_not_i64 for 32-bit targets
From: |
Nathan Froyd |
Subject: |
[Qemu-devel] [PATCH 2/9] specialize tcg_gen_not_i64 for 32-bit targets |
Date: |
Tue, 21 Apr 2009 18:12:10 -0700 |
Signed-off-by: Nathan Froyd <address@hidden>
---
tcg/tcg-op.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index daeb025..e56facd 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -1515,6 +1515,9 @@ static inline void tcg_gen_not_i64(TCGv_i64 ret, TCGv_i64
arg)
{
#ifdef TCG_TARGET_HAS_not_i64
tcg_gen_op2_i64(INDEX_op_not_i64, ret, arg);
+#elif defined(TCG_TARGET_HAS_not_i32) && TCG_TARGET_REG_BITS == 32
+ tcg_gen_not_i32(TCGV_LOW(ret), TCGV_LOW(arg));
+ tcg_gen_not_i32(TCGV_HIGH(ret), TCGV_HIGH(arg));
#else
tcg_gen_xori_i64(ret, arg, -1);
#endif
--
1.6.0.5
- [Qemu-devel] [PATCH 0/9] tcg: improve logical op support for ppc hosts, v2, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 1/9] Add TCG ops for various logical operations, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 5/9] implement specialized nand_i{32,64}, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 2/9] specialize tcg_gen_not_i64 for 32-bit targets,
Nathan Froyd <=
- [Qemu-devel] [PATCH 3/9] implement specialized andc_i{32,64}, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 4/9] implement specialized eqv_{i32,i64}, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 7/9] implement specialized orc_i{32,64}, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 6/9] implement specialized nor_i{32,64}, Nathan Froyd, 2009/04/21
- [Qemu-devel] [PATCH 9/9] Implement new logical instructions for ppc64, Nathan Froyd, 2009/04/22
- [Qemu-devel] [PATCH 8/9] Implement new logical instructions for ppc, Nathan Froyd, 2009/04/22