[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 33/36] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc
From: |
Richard Henderson |
Subject: |
[PATCH v4 33/36] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc |
Date: |
Sat, 7 Jan 2023 18:37:16 -0800 |
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 0dafa27dab..b8cb21c395 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 v4 23/36] tests/tcg/s390x: Add long-double.c, (continued)
- [PATCH v4 23/36] tests/tcg/s390x: Add long-double.c, Richard Henderson, 2023/01/07
- [PATCH v4 24/36] target/s390x: Use a single return for helper_divs32/u32, Richard Henderson, 2023/01/07
- [PATCH v4 25/36] target/s390x: Use a single return for helper_divs64/u64, Richard Henderson, 2023/01/07
- [PATCH v4 27/36] target/s390x: Use Int128 for return from CKSM, Richard Henderson, 2023/01/07
- [PATCH v4 26/36] target/s390x: Use Int128 for return from CLST, Richard Henderson, 2023/01/07
- [PATCH v4 28/36] target/s390x: Use Int128 for return from TRE, Richard Henderson, 2023/01/07
- [PATCH v4 29/36] target/s390x: Copy wout_x1 to wout_x1_P, Richard Henderson, 2023/01/07
- [PATCH v4 30/36] target/s390x: Use Int128 for returning float128, Richard Henderson, 2023/01/07
- [PATCH v4 31/36] target/s390x: Use Int128 for passing float128, Richard Henderson, 2023/01/07
- [PATCH v4 32/36] target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG, Richard Henderson, 2023/01/07
- [PATCH v4 33/36] target/s390x: Implement CC_OP_NZ in gen_op_calc_cc,
Richard Henderson <=
- [PATCH v4 35/36] target/i386: Inline cmpxchg8b, Richard Henderson, 2023/01/07
- [PATCH v4 36/36] target/i386: Inline cmpxchg16b, Richard Henderson, 2023/01/07
- [PATCH v4 34/36] target/i386: Split out gen_cmpxchg8b, gen_cmpxchg16b, Richard Henderson, 2023/01/07
- Re: [PATCH v4 00/36] tcg: Support for Int128 with helpers, Mark Cave-Ayland, 2023/01/10
- Re: [PATCH v4 00/36] tcg: Support for Int128 with helpers, Richard Henderson, 2023/01/24
- Re: [PATCH v4 00/36] tcg: Support for Int128 with helpers, Alex Bennée, 2023/01/25