[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 15/38 1/6] target/s390x: Reorder CC_OP_STATIC switch case in d
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 15/38 1/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (1/5) |
Date: |
Sat, 20 Jan 2024 00:22:57 +0100 |
Code movement to ease review, no logical change.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/s390x/tcg/translate.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c
index 2897880d88..e84c6459f0 100644
--- a/target/s390x/tcg/translate.c
+++ b/target/s390x/tcg/translate.c
@@ -916,6 +916,10 @@ static void disas_jcc(DisasContext *s, DisasCompare *c,
uint32_t mask)
cond = TCG_COND_NE;
c->u.s32.b = tcg_constant_i32(0);
break;
+ case 0x2 | 0x1: /* cc > 1 */
+ cond = TCG_COND_GTU;
+ c->u.s32.b = tcg_constant_i32(1);
+ break;
case 0x4 | 0x1: /* cc == 1 || cc == 3 => (cc & 1) != 0 */
cond = TCG_COND_NE;
c->u.s32.a = tcg_temp_new_i32();
@@ -926,10 +930,6 @@ static void disas_jcc(DisasContext *s, DisasCompare *c,
uint32_t mask)
cond = TCG_COND_EQ;
c->u.s32.b = tcg_constant_i32(1);
break;
- case 0x2 | 0x1: /* cc > 1 */
- cond = TCG_COND_GTU;
- c->u.s32.b = tcg_constant_i32(1);
- break;
case 0x2: /* cc == 2 */
cond = TCG_COND_EQ;
c->u.s32.b = tcg_constant_i32(2);
--
2.41.0
- [PATCH v3 16/38] tcg: Add TCGConst argument to tcg_target_const_match, (continued)
- [PATCH v3 16/38] tcg: Add TCGConst argument to tcg_target_const_match, Richard Henderson, 2024/01/10
- [PATCH v3 18/38] tcg/aarch64: Generate TBZ, TBNZ, Richard Henderson, 2024/01/10
- [PATCH v3 13/38] target/sparc: Use TCG_COND_TSTEQ in gen_op_mulscc, Richard Henderson, 2024/01/10
- [PATCH v3 15/38] target/s390x: Improve general case of disas_jcc, Richard Henderson, 2024/01/10
- [PATCH v3 15/38 1/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (1/5),
Philippe Mathieu-Daudé <=
- [PATCH v3 15/38 2/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (2/5), Philippe Mathieu-Daudé, 2024/01/19
- [PATCH v3 15/38 3/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (3/5), Philippe Mathieu-Daudé, 2024/01/19
- [PATCH v3 15/38 4/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (4/5), Philippe Mathieu-Daudé, 2024/01/19
- [PATCH v3 15/38 5/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (5/5), Philippe Mathieu-Daudé, 2024/01/19
- [PATCH v3 15/38 6/6] target/s390x: Improve general case of disas_jcc, Philippe Mathieu-Daudé, 2024/01/19
- [PATCH v3 21/38] tcg/arm: Support TCG_COND_TST{EQ,NE}, Richard Henderson, 2024/01/10
- [PATCH v3 12/38] target/m68k: Use TCG_COND_TST{EQ, NE} in gen_fcc_cond, Richard Henderson, 2024/01/10