target/s390x: Improve cc computation for ADD LOGICAL
commitff26d287bddc189fd5a084cc96078da1257b0826
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Dec 2020 22:13:53 +0000 (14 16:13 -0600)
committerCornelia Huck <cohuck@redhat.com>
Mon, 21 Dec 2020 17:11:33 +0000 (21 18:11 +0100)
treeb3933690ae362e092a809e2aa234002e1125818a
parent5b723a5d8df44b69b8ba350e643059c8fd889315
target/s390x: Improve cc computation for ADD LOGICAL

The resulting cc is only dependent on the result and the
carry-out.  So save those things rather than the inputs.

Carry-out for 64-bit inputs is had via tcg_gen_add2_i64 directly
into cc_src.  Carry-out for 32-bit inputs is had via extraction
from a normal 64-bit add (with zero-extended inputs).

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201214221356.68039-2-richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cc_helper.c
target/s390x/helper.c
target/s390x/insn-data.def
target/s390x/internal.h
target/s390x/translate.c