From patchwork Fri Nov 11 08:08:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 623711 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp630992pvb; Fri, 11 Nov 2022 00:20:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LGE76/dFdqjgPceVkDPXxC4Qhfed+4Er2SDaBricIbC46++7RnrFWRvUnT57LXV2UUd8j X-Received: by 2002:a05:622a:650:b0:39c:f31d:5d4c with SMTP id a16-20020a05622a065000b0039cf31d5d4cmr406799qtb.393.1668154847644; Fri, 11 Nov 2022 00:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668154847; cv=none; d=google.com; s=arc-20160816; b=ttdAyq0dvA0tJp0/2KbHoYxjza6tgozx0Ct8r1MCOPIbU0ApEUv8k8NFm9FbU1IQjU NfjO9UZOXJILaFeQFex11iJ7IE0yq/P6jZw/lVoZa8aaxKLcK6If5zv4TxX7MtxtDYsP laZcM/r6UIkx9Ldhj4iUFG61kFbAVLZQTpz+Vd5YAPX8G1dNz2C6bFn1335ZHn/zJjTh YWm95D0qicqqnP/rSltyw4/p8RKfuicxjSBPvT39ZLIN0ELfGq8ucRY/PgmScEOTwxlq q+d49HQ1KM67DR2siu6pxNGuJByvHaSjfzdyM7bruIr5fAhw78fM3+KFLQTHCscTL4aJ 8wRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=opzHySzfd4h+h3v2676QIsaK3Qpg3HvBCwh7e/m6JPM=; b=RyFVnt2UyMMQHQgvKJ0EreuY6ouT2uztLNgwd1VP1L7LImXCYEcc9cRG6qP3UT69rG pTULdYK0OZyaSKFH2UvFaTYhMoHqQ/4cBm3QxTOdx8dxDd/uIuxBnpXXlKJnCGE9QoX4 i0R0eiyqsfHqIpc23pK4/LT0qAYB4vUSnu8sVEW6WOp5QgYk7VN2l0EzNOtElQGRrsJI HnR1jzRIEqYoOcX5P1Q2sB6qcpAW6D2RI1/b6YKync0ZgXyoyfApjONkMQzmy1jXNXIM HRZtV00oTH5877uHaqVxlLd2tAKj7Z38R16kgISyr+VR0/epKI/3eIeyukKPUOEFAzIe J6ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yLi2fPcY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t64-20020a375f43000000b006edbf8f8da0si715936qkb.417.2022.11.11.00.20.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Nov 2022 00:20:47 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yLi2fPcY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otP5m-00015a-8I; Fri, 11 Nov 2022 03:08:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otP5T-0000zi-29 for qemu-devel@nongnu.org; Fri, 11 Nov 2022 03:08:35 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otP5Q-0002DP-Rn for qemu-devel@nongnu.org; Fri, 11 Nov 2022 03:08:30 -0500 Received: by mail-pj1-x1032.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so7138592pjk.2 for ; Fri, 11 Nov 2022 00:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=opzHySzfd4h+h3v2676QIsaK3Qpg3HvBCwh7e/m6JPM=; b=yLi2fPcY1FYflyKGhTFuo3R8sJBxYoTgQ3BJQwgMLOnLmBf+gS40amshrau9Os6UtM FAMlsjRr27LEzufoal4ebGZLUBiHMSdFem68RixBnNu3frMAWEYF20/NOYfPJ/Aqf+50 e/YMQ2xzQXsXKm2I7eXUuv5XSGINA4KEj7emHjBcsJIhJodJBwuJl7cyUEGQuwjy8p9B nA2jjkgXqJvj/fy+D7oN5zthvn9rp434AWbBoWKgj/udDmkKPWhldAdKGMeY4tfGcJXR G0wLtwuqmZ+yPtIE/hB5dqT80T6Mhj/mCRMbh/69ph5ZONKOix0RyncbwPb9U4laXId1 liDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=opzHySzfd4h+h3v2676QIsaK3Qpg3HvBCwh7e/m6JPM=; b=he+yDoqrTk4STNfphdZRsq0G88aZgYtB+DslX1suWSXXfixFQPAOwcy9jJVejSQn7G GkOrCZ+/5K/jP51DKeLWVqZrD87dq5HhfRFkAs6uzjqS29+qKvSdtMb7eFlCp4z/TgVg QzbmxmvFGzURbGhcq+o/DCjhzvsDEaCr5BN5WLHgRgQfrzAcWUMzjrExdXRdz1RWSrPL eV6iM2b4NSK/OasQcCmPCXw+Y1uXib9QLrxHQeG1ZwhPdf8RMUYkMkt3p1xyUzqx7GlC G8vCBS/TdvSlDqQxCHFi0V6DJYySiTlLGBy1Tqm+BhmVuHYT+speTiCLmcO8iyNzr60k 7Cjw== X-Gm-Message-State: ANoB5pkwb/+07dUgL5liesIO1RSY7ljCHsywaMOVu/08Q9NIOhxLp7q1 OdMrE5rXqHH+atP6Xcn/U3u+t4fRimpZ1gof X-Received: by 2002:a17:90a:9e9:b0:20a:df72:e61f with SMTP id 96-20020a17090a09e900b0020adf72e61fmr750467pjo.87.1668154107119; Fri, 11 Nov 2022 00:08:27 -0800 (PST) Received: from stoup.lan (2001-44b8-2176-c800-0aef-59aa-1faf-7e61.static.ipv6.internode.on.net. [2001:44b8:2176:c800:aef:59aa:1faf:7e61]) by smtp.gmail.com with ESMTPSA id j4-20020a170902c3c400b00186a2dd3ffdsm1046341plj.15.2022.11.11.00.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 00:08:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: iii@linux.ibm.com, david@redhat.com Subject: [PATCH for-8.0 v2 00/13] target/s390x: Use TCGv_i128 Date: Fri, 11 Nov 2022 18:08:07 +1000 Message-Id: <20221111080820.2132412-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Changes for v2: * Fix the div bugs found by Ilya. * Convert CDSG * Improve CC resolution for CDSG+IPM. Turned out the best testing so far for TCGv_i128 was CDSG, especially for 32-bit x86 host, where we have only 6 regs available for 13 parameters. Whee! r~ Based-on: 20221111074101.2069454-1-richard.henderson@linaro.org ("tcg: Support for Int128 with helpers") Ilya Leoshkevich (2): tests/tcg/s390x: Add div.c tests/tcg/s390x: Add clst.c Richard Henderson (11): tests/tcg/s390x: Add long-double.c target/s390x: Use a single return for helper_divs32/u32 target/s390x: Use a single return for helper_divs64/u64 target/s390x: Use Int128 for return from CLST target/s390x: Use Int128 for return from CKSM target/s390x: Use Int128 for return from TRE target/s390x: Copy wout_x1 to wout_x1_P target/s390x: Use Int128 for returning float128 target/s390x: Use Int128 for passing float128 target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG target/s390x: Implement CC_OP_NZ in gen_op_calc_cc target/s390x/helper.h | 54 ++++---- target/s390x/tcg/fpu_helper.c | 103 +++++++-------- target/s390x/tcg/int_helper.c | 64 ++++----- target/s390x/tcg/mem_helper.c | 77 ++--------- target/s390x/tcg/translate.c | 217 +++++++++++++++++++++---------- tests/tcg/s390x/clst.c | 82 ++++++++++++ tests/tcg/s390x/div.c | 75 +++++++++++ tests/tcg/s390x/long-double.c | 24 ++++ target/s390x/tcg/insn-data.h.inc | 60 ++++----- tests/tcg/s390x/Makefile.target | 3 + 10 files changed, 462 insertions(+), 297 deletions(-) create mode 100644 tests/tcg/s390x/clst.c create mode 100644 tests/tcg/s390x/div.c create mode 100644 tests/tcg/s390x/long-double.c