Message ID | 20250102180654.1420056-9-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp7906404wrq; Thu, 2 Jan 2025 10:19:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWi/Tzx0MBrgX3jQSRIUitL9Umi+3OBc2084jSKC0weVMioqu8cY2udqrFnUcZCFxJaEX+5DA==@linaro.org X-Google-Smtp-Source: AGHT+IGxZTdK5dbtO5RUXvhFRRfE15ZVWt+Ly1Uh/G53kQYH0Tobdt6ypAqWXu5vuh1pZUiNfRgi X-Received: by 2002:a05:622a:253:b0:46a:389d:17ac with SMTP id d75a77b69052e-46a3b0c28a3mr745547921cf.27.1735841988587; Thu, 02 Jan 2025 10:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735841988; cv=none; d=google.com; s=arc-20240605; b=di7noTaUQN19d8mIr249gLijkep7KkSDCV5RhQC97uVRA2vKOZQ2mZUo78I0d3n2sd JTkjl9eQYpwl4yr4z9ykBg+Hwxr22eqIM7+cX6/0vXVfTynYPw1LV4rYWY/PmAb/DEmc EwlAO9xyuiVJ5UCwBcKVuUi4oE99c+LjIFtMpVk3y93GXfC5qhcNqj4tL8+5Ob8w3nON b5vgOYyaDNLVlqdKGBIm1ktPWCjoqpMEGzJJKbE9q7F4rj8fgPHWM9jpcw1O8AsvE7uf FAYBTqG86mhYiee2OfM9iPnLmF6NGHQyPAKNjbFroGadtrWOy0l0mQVhUmF1axRCVD8I gv8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=pKmXb1m3DMp90fmFisjNG4WdmYNCL6RTfNDqnFc9oqQ=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=IbKgR4eHSIUStkxX0F8/P9J2POmEt/bzhD6a6xVgAbxsK9U1UkdrEfCC/P1BnGP9HE esgsudPLu/b9/Ur+ziazjON9MuevIrCEQoji14HZTEHyoTNaOegjBzvNZ9jBSseqS2Gh eaJ5/EhafMOwS9fnXpYOYGMOvSlnXr0qN7Yi4h9Z39uPI+IH8WMZd3Ms7D2aFIUZgzJt Fg39jReAPnBU1zvgb1biToL08ECo8W68TnhVswDYrXfZxRl5mSax2gIoBJyZcxRta3tE VBq2ByaCFYjmmIz1JmkrfzzhzXZIYSUWVq54a0FQcJzSaDWCzlrZ39njvoTIe6ncKIbB dRjg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lYxcJbA6; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dd18236373si337510916d6.275.2025.01.02.10.19.48 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jan 2025 10:19:48 -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=lYxcJbA6; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tTPbg-00079m-Dt; Thu, 02 Jan 2025 13:07:40 -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 <richard.henderson@linaro.org>) id 1tTPbB-0006xF-Ng for qemu-devel@nongnu.org; Thu, 02 Jan 2025 13:07:11 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tTPb6-00057f-MS for qemu-devel@nongnu.org; Thu, 02 Jan 2025 13:07:07 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-2162c0f6a39so166191705ad.0 for <qemu-devel@nongnu.org>; Thu, 02 Jan 2025 10:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735841222; x=1736446022; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=pKmXb1m3DMp90fmFisjNG4WdmYNCL6RTfNDqnFc9oqQ=; b=lYxcJbA696Om4hFY5wW+pv9FZesKuVGFiK/1cgGCsdqCwYgpZh0VLRk2Hv1YoFQh4Q 79mLzTxffV4BK+IxmOHvHRMvb21ImIMxfQKPhKH0jbBbZYi85W3ZwOLNRpvX3f5ALf3B voHd4qNeW8i7ZUjVKr/rrffCnaX69Im2rOfxbNfZOa42dn1jM21X2ZqBuCURAreo9Liy xCnsLCJcQ2e9KjQGA9FXCf8MzHV6tiwBan4jHlGJwrU3LcDJMhlqK/J0yrrpkvNohG7A xEY8cLX/W/A8OMd/soHz/71qdZ3DU7e8DxXxgsZVl3sHx1v0rRFZQFPr8tC71oWEtqBJ soog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735841222; x=1736446022; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pKmXb1m3DMp90fmFisjNG4WdmYNCL6RTfNDqnFc9oqQ=; b=i0Bnhtp+H4lRE0t5yJly81YM6OplwFaLaB1iCWfz8q3J8r3Bz9LtKzo1YrwmY/R8eV kGns26mhE4RerYcB7wvTLGgmoaf3KA/nqjv/AC6/GO685+lwFSVrEzyz+15BPjPMcjJY +q5jYKbqzeS0b2h/5nSlVMu6F/TsrPrGnMN8PtLV4rWDhA/IAjrpVDX1Y4RhEkQkmHvh SSISUHrWs7dUb/8eU3cvb3nLhKUO9ply6A08xcQr8+WWwQsaK7X20Q9tPI0PV3F7ZQMi zYN990Fl/OLk/QULJFnjhahQNak0LqyJo62n7smkEpfzMHY+wFDZdiLrMqQHNhykoTF1 eoaA== X-Gm-Message-State: AOJu0Yxb5/yymtWHYLdxhPio/sNdN68nTsDdifEjtPSHCkyk657mXwLm 9HMdqccXp52NnU3lsrYgiBzwaYScVL1dUiMPGZ5cwJ4rp5anfrwMjskCxHnag6eNUk98J3RcPEh Y X-Gm-Gg: ASbGncvdK7jn7lG82eMHymUzK1T2P+toNREbLyVC1fHuQ7LkV07DBB/CK0qbSMJDHhu BobPFZdb7sbu0nW3yesbr1d+SBCpWQLrrAJVB+TlCyyaq4l+fgotjcQIWZkFvyVRx/5qq78w2aI BsQUa6Qt7Ku8Hh0qDlcANatZmOw4wLJNJApTB9Vds2sEKykSRCeW5HhiH7Npn3p7ABYECLsZEmV uur0rJZcFI1Tdp9VaKAQDnSWzk6ENqzb6sBoFHzeSl2/qpja097yTWJrdO5sA== X-Received: by 2002:a05:6a00:21c6:b0:725:4915:c0f with SMTP id d2e1a72fcca58-72abdbd7f45mr66108305b3a.11.1735841222023; Thu, 02 Jan 2025 10:07:02 -0800 (PST) Received: from stoup.. ([63.239.63.212]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72ad3393d5fsm20604456b3a.154.2025.01.02.10.07.01 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 10:07:01 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 08/73] target/arm: Do not test TCG_TARGET_HAS_bitsel_vec Date: Thu, 2 Jan 2025 10:05:48 -0800 Message-ID: <20250102180654.1420056-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250102180654.1420056-1-richard.henderson@linaro.org> References: <20250102180654.1420056-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Merge *_i32 and *_i64 opcodes
|
expand
|
diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c index 49d32fabc9..732453db6f 100644 --- a/target/arm/tcg/translate-sve.c +++ b/target/arm/tcg/translate-sve.c @@ -596,14 +596,8 @@ static void gen_bsl1n_i64(TCGv_i64 d, TCGv_i64 n, TCGv_i64 m, TCGv_i64 k) static void gen_bsl1n_vec(unsigned vece, TCGv_vec d, TCGv_vec n, TCGv_vec m, TCGv_vec k) { - if (TCG_TARGET_HAS_bitsel_vec) { - tcg_gen_not_vec(vece, n, n); - tcg_gen_bitsel_vec(vece, d, k, n, m); - } else { - tcg_gen_andc_vec(vece, n, k, n); - tcg_gen_andc_vec(vece, m, m, k); - tcg_gen_or_vec(vece, d, n, m); - } + tcg_gen_not_vec(vece, n, n); + tcg_gen_bitsel_vec(vece, d, k, n, m); } static void gen_bsl1n(unsigned vece, uint32_t d, uint32_t n, uint32_t m, @@ -640,14 +634,8 @@ static void gen_bsl2n_i64(TCGv_i64 d, TCGv_i64 n, TCGv_i64 m, TCGv_i64 k) static void gen_bsl2n_vec(unsigned vece, TCGv_vec d, TCGv_vec n, TCGv_vec m, TCGv_vec k) { - if (TCG_TARGET_HAS_bitsel_vec) { - tcg_gen_not_vec(vece, m, m); - tcg_gen_bitsel_vec(vece, d, k, n, m); - } else { - tcg_gen_and_vec(vece, n, n, k); - tcg_gen_or_vec(vece, m, m, k); - tcg_gen_orc_vec(vece, d, n, m); - } + tcg_gen_not_vec(vece, m, m); + tcg_gen_bitsel_vec(vece, d, k, n, m); } static void gen_bsl2n(unsigned vece, uint32_t d, uint32_t n, uint32_t m,
Rely on tcg-op-vec.c to expand the opcode if missing. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/tcg/translate-sve.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-)