[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-8.0 v2 13/13] target/s390x: Implement CC_OP_NZ in gen_op_calc
From: |
Richard Henderson |
Subject: |
[PATCH for-8.0 v2 13/13] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc |
Date: |
Fri, 11 Nov 2022 18:08:20 +1000 |
This case is trivial to implement inline.
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 480c89dae3..f8a6f29d9c 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
- [PATCH for-8.0 v2 01/13] tests/tcg/s390x: Add div.c, (continued)
- [PATCH for-8.0 v2 01/13] tests/tcg/s390x: Add div.c, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 02/13] tests/tcg/s390x: Add clst.c, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 03/13] tests/tcg/s390x: Add long-double.c, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 05/13] target/s390x: Use a single return for helper_divs64/u64, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 04/13] target/s390x: Use a single return for helper_divs32/u32, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 08/13] target/s390x: Use Int128 for return from TRE, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 06/13] target/s390x: Use Int128 for return from CLST, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 07/13] target/s390x: Use Int128 for return from CKSM, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 09/13] target/s390x: Copy wout_x1 to wout_x1_P, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 13/13] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc,
Richard Henderson <=
- [PATCH for-8.0 v2 10/13] target/s390x: Use Int128 for returning float128, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 11/13] target/s390x: Use Int128 for passing float128, Richard Henderson, 2022/11/11
- [PATCH for-8.0 v2 12/13] target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG, Richard Henderson, 2022/11/11