[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] tcg: Add tcg_unsigned_cond.
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 5/6] tcg: Add tcg_unsigned_cond. |
Date: |
Sat, 19 Dec 2009 12:24:20 -0800 |
Returns an unsigned version of a signed condition;
returns the original condition otherwise.
---
tcg/tcg.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 376d6af..b218abe 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -210,6 +210,11 @@ static inline TCGCond tcg_invert_cond(TCGCond c)
return (TCGCond)(c ^ 1);
}
+static inline TCGCond tcg_unsigned_cond(TCGCond c)
+{
+ return (c >= TCG_COND_LT && c <= TCG_COND_GT ? c + 4 : c);
+}
+
#define TEMP_VAL_DEAD 0
#define TEMP_VAL_REG 1
#define TEMP_VAL_MEM 2
--
1.6.5.2
- [Qemu-devel] [PATCH 0/6] tcg sparc improvements, Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 5/6] tcg: Add tcg_unsigned_cond.,
Richard Henderson <=
- [Qemu-devel] [PATCH 4/6] tcg-sparc: Implement brcond2., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 2/6] tcg-sparc: Improve tcg_out_movi for sparc64., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 1/6] tcg-sparc: Fix imm13 check in movi., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 6/6] tcg-sparc: Implement setcond, movcond, setcond2., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 3/6] tcg-sparc: Use TCG_TARGET_REG_BITS in conditional compilation., Richard Henderson, 2009/12/19
- [Qemu-devel] Re: [PATCH 0/6] tcg sparc improvements, Blue Swirl, 2009/12/20