[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/8] tcg: Add tcg_signed_cond
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 6/8] tcg: Add tcg_signed_cond |
Date: |
Fri, 29 Dec 2017 11:31:11 -0800 |
Complimenting the existing tcg_unsigned_cond.
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/tcg.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tcg/tcg.h b/tcg/tcg.h
index f25efa9795..8c45f7edbc 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -488,6 +488,12 @@ static inline TCGCond tcg_unsigned_cond(TCGCond c)
return c & 2 ? (TCGCond)(c ^ 6) : c;
}
+/* Create a "signed" version of an "unsigned" comparison. */
+static inline TCGCond tcg_signed_cond(TCGCond c)
+{
+ return c & 4 ? (TCGCond)(c ^ 6) : c;
+}
+
/* Must a comparison be considered unsigned? */
static inline bool is_unsigned_cond(TCGCond c)
{
--
2.14.3
- [Qemu-devel] [PULL 0/8] tcg queued patches, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 2/8] target/moxie: Fix tlb_fill, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 1/8] target/*helper: don't check retaddr before calling cpu_restore_state, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 3/8] tcg: Remove TCGV_UNUSED* and TCGV_IS_UNUSED*, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 6/8] tcg: Add tcg_signed_cond,
Richard Henderson <=
- [Qemu-devel] [PULL 8/8] tcg: add cs_base and flags to -d exec output, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 5/8] tcg: Generalize TCGOp parameters, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 7/8] tcg: Allow 6 arguments to TCG helpers, Richard Henderson, 2017/12/29
- [Qemu-devel] [PULL 4/8] tcg: Dynamically allocate TCGOps, Richard Henderson, 2017/12/29
- Re: [Qemu-devel] [PULL 0/8] tcg queued patches, no-reply, 2017/12/29
- Re: [Qemu-devel] [PULL 0/8] tcg queued patches, no-reply, 2017/12/29
- [Qemu-devel] [PULL v2 0/8] tcg queued patches, Richard Henderson, 2017/12/29
- Re: [Qemu-devel] [PULL 0/8] tcg queued patches, no-reply, 2017/12/29