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>
Showing
- target/s390x/cc_helper.c 9 additions, 16 deletionstarget/s390x/cc_helper.c
- target/s390x/helper.c 1 addition, 2 deletionstarget/s390x/helper.c
- target/s390x/insn-data.def 18 additions, 18 deletionstarget/s390x/insn-data.def
- target/s390x/internal.h 2 additions, 2 deletionstarget/s390x/internal.h
- target/s390x/translate.c 67 additions, 36 deletionstarget/s390x/translate.c
Loading
Please register or sign in to comment