From nobody Wed Nov 19 08:46:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1615307389; cv=none; d=zohomail.com; s=zohoarc; b=Y66S6af/MqUqStf8/R6s5NhS5aNJF7rs6D8NNPppzCNHBRjDRKGeh9nIqTSmw/ihOpDoOSv1N46bcU26qMTYiqI8QRWVa/1d8vwJ2pcakNK14JgR12n0lgjHeffuFqptUTgXm43X0ozgUNDPAR1xcwRSTigdSpnqdptr2xVCLQg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615307389; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JqBHCmuWPtc8j+9KLqwTqisgKUnIBVTxV3C6VerPLaI=; b=UpBcks0Jd6YYI5NSasl3XrMrKszYHD+r6NFbnqXnh8IZsILSbbx9WKOH/hU6RHYrDhNdCbjUnMa69+YqmI2xsc1XHQJbLzPSd0ULOWqAUdhOv4FWNRy3uE6+Q/86JL7Yeo2u3MUvB//aNFoVJjnOCs2r+HS/bYESU+cosTqgHhI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1615307389917874.1660067975376; Tue, 9 Mar 2021 08:29:49 -0800 (PST) Received: from localhost ([::1]:45498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJfEy-0006AH-OS for importer@patchew.org; Tue, 09 Mar 2021 11:29:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJefa-0004ka-9U for qemu-devel@nongnu.org; Tue, 09 Mar 2021 10:53:14 -0500 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]:39223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJefY-0001Dz-IK for qemu-devel@nongnu.org; Tue, 09 Mar 2021 10:53:13 -0500 Received: by mail-oi1-x235.google.com with SMTP id z126so15418314oiz.6 for ; Tue, 09 Mar 2021 07:53:12 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id b14sm2952539ooj.26.2021.03.09.07.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 07:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JqBHCmuWPtc8j+9KLqwTqisgKUnIBVTxV3C6VerPLaI=; b=yOofloXz+lpOjmIomS/aMNxj/RYT7/R3cuyg9Rg9caoUaqo2rCaI0fSjoqkf3xAdTu wIUG92C24jdCTJB8WlgiwSaSTqJYFNGmoXvUVwQp+4d9GldrKbmNLheEurgGwF806xSQ wcuNxRYolka6+j4hsIeQChszknwZj4IoDT7x6r2ulOqVnmWgXaSsgoMteTuaFHja0NRH bRgYs9hHyddIIadjnwBbY8siYzpnkK/rdvRenOBWCbf06L9ZlhPgl6DQUh9cXXbWcfLc EcgJRfTngoyceoSLQyLiI1yYZIbM95ZsZ1ksCCqRLA/yZ0VIuNSlLBz6BH1WI/YbhbBQ DJwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JqBHCmuWPtc8j+9KLqwTqisgKUnIBVTxV3C6VerPLaI=; b=bXrNnsI/x9/R2s14qjjne/JZ9LHuWQpiOqrAjgSX48CQbwyw/gXT65SqcIBh0h/dmK DgODjciCn57LKE+t65wXRx5lxmQKYkc7jyQ7fVTLmTKCpiNF8GaE8F0T19K6+4AFuQlN RD0pS+6q68UzM0A4slu8xhiBhVdo5AGUL2T1XcTMB/RrHgnPPQnqhgTfi7samkv2VFD/ uSUAKXedQ0tXU+sFlaxvSzdawgtas67HWSGk68Ays9Bfh6ML4Y0+BAJrQoOWIiarkLvA eBdoUZsLPV/tcChOpclTmHprUabSmvjkl42Y/tqBSl35ltPUgbYPsTSGBIqAW4ZlbWqF ITsg== X-Gm-Message-State: AOAM5317csuevMU1US3Mf/0QYPIiH3S1XmZstbffDn/QkZCamjavGyoc rcK8C9G4R139CrSWHKuYVcDt9qrqo41NdYmx X-Google-Smtp-Source: ABdhPJzNIaIDIlHoHxOaQRRJekM6GLSz/zXEUp5GEvqRyanArl6dwZWgiKWVMiRQsYmgf6CEm6LlEA== X-Received: by 2002:a05:6808:128f:: with SMTP id a15mr3340981oiw.143.1615305191423; Tue, 09 Mar 2021 07:53:11 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 3/8] target/arm: Fix sve_punpk_p vs odd vector lengths Date: Tue, 9 Mar 2021 07:53:00 -0800 Message-Id: <20210309155305.11301-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210309155305.11301-1-richard.henderson@linaro.org> References: <20210309155305.11301-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x235.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=unavailable 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: , Cc: Laurent Desnogues , peter.maydell@linaro.org, qemu-arm@nongnu.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Wrote too much with punpk1 with vl % 512 !=3D 0. Reviewed-by: Peter Maydell Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson --- target/arm/sve_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c index 2fb4b2c1ea..981895a17c 100644 --- a/target/arm/sve_helper.c +++ b/target/arm/sve_helper.c @@ -2105,11 +2105,11 @@ void HELPER(sve_punpk_p)(void *vd, void *vn, uint32= _t pred_desc) high =3D oprsz >> 1; } =20 - if ((high & 3) =3D=3D 0) { + if ((oprsz & 7) =3D=3D 0) { uint32_t *n =3D vn; high >>=3D 2; =20 - for (i =3D 0; i < DIV_ROUND_UP(oprsz, 8); i++) { + for (i =3D 0; i < oprsz / 8; i++) { uint64_t nn =3D n[H4(high + i)]; d[i] =3D expand_bits(nn, 0); } --=20 2.25.1