| Subject: | [Qemu-devel] [PATCH 02/10] Specialize tcg_gen_not_i64 for 32-bit targets |
|---|---|
| From: | Nathan Froyd |
| Date: | Sat, 28 Mar 2009 14:02:39 -0700 |
Signed-off-by: Nathan Froyd <froydnj@xxxxxxxxxxxxxxxx>
---
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 645b908..2233170 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_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
|
| Previous by Date: | [Qemu-devel] [PATCH 2/4] move ppc_def_t definition to cpu.h, Nathan Froyd |
|---|---|
| Next by Date: | [Qemu-devel] [PATCH 3/4] pass the cpu definition to ppc_translate_init, Nathan Froyd |
| Previous by Thread: | [Qemu-devel] [PATCH 01/10] Add TCG ops for various logical operations, Nathan Froyd |
| Next by Thread: | [Qemu-devel] [PATCH 07/10] Implement specialized orc_i{32,64}, Nathan Froyd |
| Indexes: | [Date] [Thread] [Top] [All Lists] |