From patchwork Fri Oct 29 04:32:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 516377 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp388249iml; Thu, 28 Oct 2021 21:34:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw4gD85zzBd/rDZYbk8hYQxU0HmADo2Nr5RCCZJVhF8QdXtiP06c1WkMxO8tpNrFlRRzlO X-Received: by 2002:a9d:70c9:: with SMTP id w9mr6519505otj.243.1635482074227; Thu, 28 Oct 2021 21:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635482074; cv=none; d=google.com; s=arc-20160816; b=nVoRVDIEzu6oCARKrMBNao3ccBXprwlJjzEJ0vJvZUF3r0TfngfJDJKyN0AsCROWuI a1sGY03ihKtninVhbqaLgEBNCaZYCgJbpuHJJBQT1OZxStJIf0JHD2Q53hPQDADHODXO ofAHmH9vFT1D0NWSismzqYxBY0+smGaEPLU94lFlfWhXYvynRJAE3nD6wo3cJwg0i8yh t4AKiuu/dJ/jOXta9TUaGC7Rhe3JQlqv50+2eyWaohxTarD8tUnrTk34c4wAeynvs643 45Lo5Zopl9t8ScMjF/FOZOJRxiw0YDEBJI3OaLG6pEbY6RnwgBtkUY9tX2QoYY0xSeo1 +ovA== 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:to:from:dkim-signature; bh=klLu8DXr4xRs2kB8pTbcoMAtcnu80jrmaZ2/P1Kdops=; b=zRTPcdfl5dGbO0m5y4pNKIZK52QFzFiCPeCawh/AIJQ0rOy6VHQVVCTuFyPQcWTbQQ tZqfWdSr/S9o50QIUOkgArt+Igvb1/b7fvrTS7pppXiWZ2aoEjMzN8dMSefSeOpp5c9B OHyYZfYmdvMYMTC0jak79SU2xOuL2IUfmBCDjW+WZhXrQ+K7Nw7oxF47OyJeapbvQDnl LmkHRZxeGzlJfEGcuOHw7JX4XKB3FdEh/6viA7mc1zwPpF/E8RCI9637TetHmvgunfZ2 9+DGu4ZLn1o0F+6RNlcHJka8ULy2AqBhC3xgdY6QcvmmunXCN0SNl59bcfQLirLR/f7R ewLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rNodbgck; 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 l14si5311056oth.332.2021.10.28.21.34.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Oct 2021 21:34:34 -0700 (PDT) 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=rNodbgck; 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]:41712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgJb7-0003Y2-GB for patch@linaro.org; Fri, 29 Oct 2021 00:34:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgJaB-0003XS-Om for qemu-devel@nongnu.org; Fri, 29 Oct 2021 00:33:35 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:40506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgJa9-0007sS-ON for qemu-devel@nongnu.org; Fri, 29 Oct 2021 00:33:35 -0400 Received: by mail-pg1-x530.google.com with SMTP id l186so8682480pge.7 for ; Thu, 28 Oct 2021 21:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=klLu8DXr4xRs2kB8pTbcoMAtcnu80jrmaZ2/P1Kdops=; b=rNodbgck1sSZAvH2EFjelEyrpRzwdUcnaz4gCkkVWy8Ven0/tJqEQONqp455hhPv47 rEt/na4ii06D9iQIHL9PZGQXWnT8L3mRtqEJQ0ImPm0wL8qdiYBIujABGxXtxEb1iW+4 0LItcmqH6e9r0sxvPzA/l2kp0eGd6SX4Y/uf3HATOZugd1vW6tOAJffPBS59Mf94Iz6Q hjbX0CqnMnBHzsgiypqM8hQdZOKezVOme+pDWJZZkDm6knNQMisBzPlHqfGREYjWH1il bCG6uvQDk0vW0SUKbSHx+DBvuvGqk7YqC04mYizgW4WTsE9PtTpB0oAANKOUk9tMjM8Y kTng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=klLu8DXr4xRs2kB8pTbcoMAtcnu80jrmaZ2/P1Kdops=; b=ijoPSO0uB8G97sgoQVpSC5z7UeCdCBrikdP4+c3Iuc6h8jk+jRpKX2qp/WFrM7ds6c r3tK3YNHD8wtwNGLJ/V3hW5djNCuU0Rd1oqVz9xIYuQC6rRslFn/iF6u1BpJxWmOEJYs rAwTsPyvR4PzEce0V0nBOHsyLD7OyuF0qcgNh05jpDrGZQwefOx9lC1+vUuro7WZFbGQ DBKnHsFoXWYhJjmh8c+syAbZkfqP5QZSCrhQS4+ZnHgclrWecmNH33F5IiKH692twVXk zwwvkGs68SDJPSDSdaa6jUr/fpkxt0CegmaZv9keyXduBw92k21b7YLaD9BE5q2P5f7N UAyw== X-Gm-Message-State: AOAM530Y4ZYR8TxJzPZ/wKoLvMdPmIz7Ez6IZaIaqqkPs+ttiK/+0xZL OoDzEvOA6y9cjD5EFW0MTXWzK9nuen+TiA== X-Received: by 2002:a63:3fcd:: with SMTP id m196mr6417355pga.417.1635482011015; Thu, 28 Oct 2021 21:33:31 -0700 (PDT) Received: from localhost.localdomain (174-21-75-75.tukw.qwest.net. [174.21.75.75]) by smtp.gmail.com with ESMTPSA id i11sm4120257pgp.18.2021.10.28.21.33.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 21:33:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 00/60] tcg patch queue Date: Thu, 28 Oct 2021 21:32:29 -0700 Message-Id: <20211029043329.1518029-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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.23 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" The following changes since commit c52d69e7dbaaed0ffdef8125e79218672c30161d: Merge remote-tracking branch 'remotes/cschoenebeck/tags/pull-9p-20211027' into staging (2021-10-27 11:45:18 -0700) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20211028 for you to fetch changes up to efd629fb21e2ff6a8f62642d9ed7a23dfee4d320: softmmu: fix for "after access" watchpoints (2021-10-28 20:55:07 -0700) ---------------------------------------------------------------- Improvements to qemu/int128 Fixes for 128/64 division. Cleanup tcg/optimize.c Optimize redundant sign extensions ---------------------------------------------------------------- Frédéric Pétrot (1): qemu/int128: Add int128_{not,xor} Luis Pires (4): host-utils: move checks out of divu128/divs128 host-utils: move udiv_qrnnd() to host-utils host-utils: add 128-bit quotient support to divu128/divs128 host-utils: add unit tests for divu128/divs128 Pavel Dovgalyuk (3): softmmu: fix watchpoint processing in icount mode softmmu: remove useless condition in watchpoint check softmmu: fix for "after access" watchpoints Richard Henderson (52): tcg/optimize: Rename "mask" to "z_mask" tcg/optimize: Split out OptContext tcg/optimize: Remove do_default label tcg/optimize: Change tcg_opt_gen_{mov,movi} interface tcg/optimize: Move prev_mb into OptContext tcg/optimize: Split out init_arguments tcg/optimize: Split out copy_propagate tcg/optimize: Split out fold_call tcg/optimize: Drop nb_oargs, nb_iargs locals tcg/optimize: Change fail return for do_constant_folding_cond* tcg/optimize: Return true from tcg_opt_gen_{mov,movi} tcg/optimize: Split out finish_folding tcg/optimize: Use a boolean to avoid a mass of continues tcg/optimize: Split out fold_mb, fold_qemu_{ld,st} tcg/optimize: Split out fold_const{1,2} tcg/optimize: Split out fold_setcond2 tcg/optimize: Split out fold_brcond2 tcg/optimize: Split out fold_brcond tcg/optimize: Split out fold_setcond tcg/optimize: Split out fold_mulu2_i32 tcg/optimize: Split out fold_addsub2_i32 tcg/optimize: Split out fold_movcond tcg/optimize: Split out fold_extract2 tcg/optimize: Split out fold_extract, fold_sextract tcg/optimize: Split out fold_deposit tcg/optimize: Split out fold_count_zeros tcg/optimize: Split out fold_bswap tcg/optimize: Split out fold_dup, fold_dup2 tcg/optimize: Split out fold_mov tcg/optimize: Split out fold_xx_to_i tcg/optimize: Split out fold_xx_to_x tcg/optimize: Split out fold_xi_to_i tcg/optimize: Add type to OptContext tcg/optimize: Split out fold_to_not tcg/optimize: Split out fold_sub_to_neg tcg/optimize: Split out fold_xi_to_x tcg/optimize: Split out fold_ix_to_i tcg/optimize: Split out fold_masks tcg/optimize: Expand fold_mulu2_i32 to all 4-arg multiplies tcg/optimize: Expand fold_addsub2_i32 to 64-bit ops tcg/optimize: Sink commutative operand swapping into fold functions tcg: Extend call args using the correct opcodes tcg/optimize: Stop forcing z_mask to "garbage" for 32-bit values tcg/optimize: Use fold_xx_to_i for orc tcg/optimize: Use fold_xi_to_x for mul tcg/optimize: Use fold_xi_to_x for div tcg/optimize: Use fold_xx_to_i for rem tcg/optimize: Optimize sign extensions tcg/optimize: Propagate sign info for logical operations tcg/optimize: Propagate sign info for setcond tcg/optimize: Propagate sign info for bit counting tcg/optimize: Propagate sign info for shifting include/fpu/softfloat-macros.h | 82 -- include/hw/clock.h | 5 +- include/qemu/host-utils.h | 121 +- include/qemu/int128.h | 20 + softmmu/physmem.c | 41 +- target/ppc/int_helper.c | 23 +- tcg/optimize.c | 2644 ++++++++++++++++++++++++---------------- tcg/tcg.c | 6 +- tests/unit/test-div128.c | 197 +++ util/host-utils.c | 147 ++- tests/unit/meson.build | 1 + 11 files changed, 2075 insertions(+), 1212 deletions(-) create mode 100644 tests/unit/test-div128.c