qemu-devel@nongnu.org
[Top] [All Lists]

[Qemu-devel] [PATCH 02/10] Specialize tcg_gen_not_i64 for 32-bit targets

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



<Prev in Thread] Current Thread [Next in Thread>