From patchwork Mon Aug 28 19:39:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 717749 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1364989wru; Mon, 28 Aug 2023 12:40:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGe1W5DbapoJxGKiHnz6RBnYtcy8aW9Z0OeYExecnfxt5w/OTr8wsdhyM0gKUyxlhNXVE4k X-Received: by 2002:a0c:dc81:0:b0:63c:dde2:5a20 with SMTP id n1-20020a0cdc81000000b0063cdde25a20mr28982667qvk.0.1693251615464; Mon, 28 Aug 2023 12:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693251615; cv=none; d=google.com; s=arc-20160816; b=y5CKktDhLaCdVgxB5i6sLRZR+4vgrWMK3B25vjKq5XmDrNdBpPHprljS6lsSTHlPA7 ovYaVYzGCF6/ZxBJrOpYTF9eSFZEwxp6VSfKrSX+um0UZ6LPDqd26jIxMc3xa+pl/v2y 4OjH023DGFdQ/LuMmZILcUalxrPTeUoqWtEn7tVPO1FQb23b0/b1lG0RjHjHjcNSPI0B QusRmR1geHTP2jl71CQWGgt5CpIfQsHNA/E0hhQG0m1nC5RXc1PfVe217iXIDRZmPU0b cyvGisDJtCQ05rG/2FIooYJxOi7HIIQ5BN1DmH2bEPGS4vuOcHWFEaVKpihn971Iame2 vg5A== 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=E7msnRk4yfcEdp2xPJQnHXl6mU2W+3e48Aa/Ps4Tp/0=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=l2Wv8+/Cm6m5LPBIB8OQ+2qe741LgjmFCJ/N1ehBZ+PcD07QKmdj78Y2HKdbk/MzcR x5theuVpoeEOwi4qxAo4Ot7ekFw1kpiPKOGPbGZY4GNDVjoaxe3D6DN1hQFPlPDqBjZw L1mJLdKw79J3+RcehJ0DM39Vy51mxyhgPgOGZlpoLswZHjJSg5c3kz4eMLjVAOwX3uJ3 kZ8crmdi2I7zndAd/RegpTvebGnmyldiYjyEYhOxyRkqYpAKiR/q+5ZVHYdmVWlJOXOq ZADw07IoIko06CL/9Wkdk97s+qMVTtFz86BD9kMovHleXcWxJIDnkXN8L8Uzj9iIUzQC I6hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TNeSewSi; 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 d17-20020a0caa11000000b0064f4654d83bsi2956132qvb.419.2023.08.28.12.40.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 12:40:15 -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=TNeSewSi; 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 1qai5a-0006O8-Ua; Mon, 28 Aug 2023 15:39:54 -0400 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 1qai5a-0006Nu-1z for qemu-devel@nongnu.org; Mon, 28 Aug 2023 15:39:54 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qai5X-0001n6-Tt for qemu-devel@nongnu.org; Mon, 28 Aug 2023 15:39:53 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1bf6ea270b2so21446705ad.0 for ; Mon, 28 Aug 2023 12:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693251590; x=1693856390; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=E7msnRk4yfcEdp2xPJQnHXl6mU2W+3e48Aa/Ps4Tp/0=; b=TNeSewSiu1w62WeGFb1p9CHvAgBLJc16+o6QISMH0imal1SfTvPHvaPFonIplg5NE0 vzksmFkzUrO13LbbHb67UYt2kVVFG6BBygjNXiCqt4juggzNAfI9JNmqbiKoQe2l3RN2 7my4iqdvVRTkmZ0d8hw/+zoCurEaQrlsq4RwSDlxCSU38N6JLzwWX2XlbZfUA9NYGehB iE4OkE/52zZTGxBt8wMGWVR/gorYLfwvcafoK3ezRSOuXZOvwFlZLQ1XcY0jtTZ38z3D KRzzvSUrYyHhhvoNRB9BqYOtbRMcjWxLsJuDjdK9a/OT9yKwoRwvsTFuKsH4b8WJVWY0 XsQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693251590; x=1693856390; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E7msnRk4yfcEdp2xPJQnHXl6mU2W+3e48Aa/Ps4Tp/0=; b=XhottomZEiFheqJLufnLxeDZlha9NfWpJwy+rzVytH/LzsZyg2CF1uKiJ6uPkCQu1m rpocOBW2Wo2LLx+Q1bNlgf3j3kBWFpat/z6ehBf9kKDoEk6S0OqySxFKOYlMbUfml89k 7RZl4Btl5+7yo6IlUA8VNm42jbj4nR9mcq2hn/4kE8uBVfb6jQCSL359hEQGFRR+WnuU 2wtsoCduJqxN63BQzSnA797PY4PdWwihqFt5wOCwboUf7/xI5bzWYuNFH4o79LZP9fFz /G7G4YluuY/N0YIsaE0IvCwL53puLAcdbxYu5wZNKsqKhrv71BCfA421T+mo9RbCnCeR xpWw== X-Gm-Message-State: AOJu0YwdBK8s47Qhg55oD09jFbCRfvdNQuPk/87Hkoo8aXyIMMbsGHHN 4+Le0xJA1es9kUJegCs7e4PpkZJWm42K2/xOCvw= X-Received: by 2002:a17:902:c70a:b0:1b8:a569:f980 with SMTP id p10-20020a170902c70a00b001b8a569f980mr19398787plp.65.1693251590630; Mon, 28 Aug 2023 12:39:50 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id a18-20020a170902b59200b001b89045ff03sm7707313pls.233.2023.08.28.12.39.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 12:39:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH] tcg: Remove vecop_list check from tcg_gen_not_vec Date: Mon, 28 Aug 2023 12:39:49 -0700 Message-Id: <20230828193949.576198-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::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.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 The not pattern is always available via generic expansion. See debug block in tcg_can_emit_vecop_list. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- tcg/tcg-op-vec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index ad8ee08a7e..094298bb27 100644 --- a/tcg/tcg-op-vec.c +++ b/tcg/tcg-op-vec.c @@ -391,12 +391,11 @@ static bool do_op2(unsigned vece, TCGv_vec r, TCGv_vec a, TCGOpcode opc) void tcg_gen_not_vec(unsigned vece, TCGv_vec r, TCGv_vec a) { - const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL); - - if (!TCG_TARGET_HAS_not_vec || !do_op2(vece, r, a, INDEX_op_not_vec)) { + if (TCG_TARGET_HAS_not_vec) { + vec_gen_op2(INDEX_op_not_vec, 0, r, a); + } else { tcg_gen_xor_vec(0, r, a, tcg_constant_vec_matching(r, 0, -1)); } - tcg_swap_vecop_list(hold_list); } void tcg_gen_neg_vec(unsigned vece, TCGv_vec r, TCGv_vec a)