Patchwork [3/4] tcg: Update TCGV_{UNUSED,EQUAL}() macros

login
register
mail settings
Submitter Andreas Färber
Date Dec. 10, 2011, 9:02 a.m.
Message ID <1323507747-16261-4-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/130514/
State New
Headers show

Comments

Andreas Färber - Dec. 10, 2011, 9:02 a.m.
Switch them to use the new {MAKE,GET}_TCGV_TL() macros.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 tcg/tcg-op.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

Patch

diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index e5c2e37..a6c3d5f 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -2129,16 +2129,15 @@  static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1,
 #define TCGv TCGv_i32
 #define MAKE_TCGV_TL(x) MAKE_TCGV_I32(x)
 #define GET_TCGV_TL(t) GET_TCGV_I32(t)
-#define TCGV_UNUSED(x) TCGV_UNUSED_I32(x)
-#define TCGV_EQUAL(a, b) TCGV_EQUAL_I32(a, b)
 #else
 #define TCGv TCGv_i64
 #define MAKE_TCGV_TL(x) MAKE_TCGV_I64(x)
 #define GET_TCGV_TL(t) GET_TCGV_I64(t)
-#define TCGV_UNUSED(x) TCGV_UNUSED_I64(x)
-#define TCGV_EQUAL(a, b) TCGV_EQUAL_I64(a, b)
 #endif
 
+#define TCGV_UNUSED(x) x = MAKE_TCGV_TL(-1)
+#define TCGV_EQUAL(a, b) (GET_TCGV_TL(a) == GET_TCGV_TL(b))
+
 static inline TCGv tcg_temp_new(void)
 {
 #if TARGET_LONG_BITS == 32