]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/s390x: Implement CC_OP_NZ in gen_op_calc_cc
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 10 Nov 2022 08:12:09 +0000 (18:12 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Feb 2023 16:19:43 +0000 (06:19 -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

index 9ea28b3e52249b9b4cdae4c94f903d8868038f45..ac5bd98f04375de7c79addf6f27cbc8152251717 100644 (file)
@@ -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: