qemu/tcg/s390x
Ilya Leoshkevich 22d2e5351a tcg/{i386, s390x}: Add earlyclobber to the op_add2's first output
i386 and s390x implementations of op_add2 require an earlyclobber,
which is currently missing. This breaks VCKSM in s390x guests. E.g., on
x86_64 the following op:

    add2_i32 tmp2,tmp3,tmp2,tmp3,tmp3,tmp2   dead: 0 2 3 4 5  pref=none,0xffff

is translated to:

    addl     %ebx, %r12d
    adcl     %r12d, %ebx

Introduce a new C_N1_O1_I4 constraint, and make sure that earlyclobber
of aliased outputs is honored.

Cc: qemu-stable@nongnu.org
Fixes: 82790a8709 ("tcg: Add markup for output requires new register")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230719221310.1968845-7-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2023-07-23 17:58:19 +01:00
..
tcg-target-con-set.h tcg/{i386, s390x}: Add earlyclobber to the op_add2's first output 2023-07-23 17:58:19 +01:00
tcg-target-con-str.h tcg/s390x: Simplify constraints on qemu_ld/st 2023-05-11 09:53:41 +01:00
tcg-target-reg-bits.h tcg: Split out tcg-target-reg-bits.h 2023-06-05 12:04:28 -07:00
tcg-target.c.inc tcg/{i386, s390x}: Add earlyclobber to the op_add2's first output 2023-07-23 17:58:19 +01:00
tcg-target.h tcg: Remove TCG_TARGET_TLB_DISPLACEMENT_BITS 2023-05-30 09:51:51 -07:00
tcg-target.opc.h tcg/s390x: Implement TCG_TARGET_HAS_sat_vec 2021-10-05 16:53:17 -07:00