[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 36/40] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc
From: |
Richard Henderson |
Subject: |
[PULL 36/40] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc |
Date: |
Sat, 4 Feb 2023 06:33:06 -1000 |
This case is trivial to implement inline.
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/s390x/tcg/translate.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c
index 9ea28b3e52..ac5bd98f04 100644
--- a/target/s390x/tcg/translate.c
+++ b/target/s390x/tcg/translate.c
@@ -625,6 +625,9 @@ static void gen_op_calc_cc(DisasContext *s)
/* env->cc_op already is the cc value */
break;
case CC_OP_NZ:
+ tcg_gen_setcondi_i64(TCG_COND_NE, cc_dst, cc_dst, 0);
+ tcg_gen_extrl_i64_i32(cc_op, cc_dst);
+ break;
case CC_OP_ABS_64:
case CC_OP_NABS_64:
case CC_OP_ABS_32:
--
2.34.1
- [PULL 25/40] tests/tcg/s390x: Add long-double.c, (continued)
- [PULL 25/40] tests/tcg/s390x: Add long-double.c, Richard Henderson, 2023/02/04
- [PULL 26/40] tests/tcg/s390x: Add cdsg.c, Richard Henderson, 2023/02/04
- [PULL 27/40] target/s390x: Use a single return for helper_divs32/u32, Richard Henderson, 2023/02/04
- [PULL 28/40] target/s390x: Use a single return for helper_divs64/u64, Richard Henderson, 2023/02/04
- [PULL 29/40] target/s390x: Use Int128 for return from CLST, Richard Henderson, 2023/02/04
- [PULL 30/40] target/s390x: Use Int128 for return from CKSM, Richard Henderson, 2023/02/04
- [PULL 31/40] target/s390x: Use Int128 for return from TRE, Richard Henderson, 2023/02/04
- [PULL 32/40] target/s390x: Copy wout_x1 to wout_x1_P, Richard Henderson, 2023/02/04
- [PULL 33/40] target/s390x: Use Int128 for returning float128, Richard Henderson, 2023/02/04
- [PULL 35/40] target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG, Richard Henderson, 2023/02/04
- [PULL 36/40] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc,
Richard Henderson <=
- [PULL 34/40] target/s390x: Use Int128 for passing float128, Richard Henderson, 2023/02/04
- [PULL 38/40] target/i386: Inline cmpxchg8b, Richard Henderson, 2023/02/04
- [PULL 39/40] target/i386: Inline cmpxchg16b, Richard Henderson, 2023/02/04
- [PULL 37/40] target/i386: Split out gen_cmpxchg8b, gen_cmpxchg16b, Richard Henderson, 2023/02/04
- [PULL 40/40] tcg/aarch64: Fix patching of LDR in tb_target_set_jmp_target, Richard Henderson, 2023/02/04
- Re: [PULL 00/40] tcg patch queue, Peter Maydell, 2023/02/05