From nobody Tue Feb 10 23:54:56 2026 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=1592456681; cv=none; d=zohomail.com; s=zohoarc; b=KaUPJvDyVwKGlVlz6eaepvUcsn9S9zW78Ws8P3f2n+HUTYedsO6igQgMuG7KEN5S6t3cCotwG9erxsYwHSU8bG/iJR3ggwZkna2/yuUCPlr8NL4CKolNudSD+RRqaHzFGusPLqL6UnlWvrLrQebAojTThsOZCrpjXqIyvV3l7w0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592456681; 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=sbIRSfBXy8STM04dECtWnQvP46LbKwMWsMmZFP6hP68=; b=U2UWmvsXp1POXr/ONbVyRXnWBnsn2nbdM//dAXcLtgPsVFH2YXWjSB64CgEwvwiR9NqjuXC1N1rbxvXeqyKHO2ShG2B4qZtqjm9dlIeBN4ngOb8aG9qcCAitkd+7VkSk9NfmC65jUqtCJeAw4Ax048PCXAFMTeodMyKAh2znAKI= 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 1592456681256945.4214450254784; Wed, 17 Jun 2020 22:04:41 -0700 (PDT) Received: from localhost ([::1]:59086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlmj9-0004a1-UQ for importer@patchew.org; Thu, 18 Jun 2020 01:04:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlmCw-0003SZ-L9 for qemu-devel@nongnu.org; Thu, 18 Jun 2020 00:31:22 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:55611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlmCv-0003L9-4W for qemu-devel@nongnu.org; Thu, 18 Jun 2020 00:31:22 -0400 Received: by mail-pj1-x1035.google.com with SMTP id ne5so1955985pjb.5 for ; Wed, 17 Jun 2020 21:31:20 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id o1sm974337pjf.17.2020.06.17.21.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 21:31:18 -0700 (PDT) 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=sbIRSfBXy8STM04dECtWnQvP46LbKwMWsMmZFP6hP68=; b=Js0UNPOzX/EsnAy+hcoRAOHo5Ei1XfgwmXDxu836/YMRZOfKClZaWjCRvY3AARTEa1 Z3rJoNG2nIs/tXoLjcZlXM0b1w+8mZ/IHsA4YUGSAxhzERt5BacOFy6ggoGZpV5Ex89U 1X50JXPpBSjmZFDzCYh6xrPVFX34A9yibl8+Jd+l0oZg9KwCtqttLZHODz6pP1GRhtsC rlewrrXtTwwTPy33Nnz3q8M5WCHJVt/YsofRlzXFhaE3dGwi6om1lEJIN4FKbfPsq+Zh F+K9v94kISOuksP3BN/tX25DxzefBJhlDO7lcewhFvr0jJ4X23Yt58MiZDRLyeSb3rqf Opng== 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=sbIRSfBXy8STM04dECtWnQvP46LbKwMWsMmZFP6hP68=; b=dSSP+B9KMxH36lrDI+FvU0ZBSGy9N/tf0GnQWCJcooCWnJThpjRhCXprrvpgOQTogJ MiEJr7YXpTVlWxeLwik5oHy3o7V7g8Z4bSdMGG8CFyIeRVC4xsVeWWqWt3RQTRx3/o1X mLP/abihu76DnRp2FVpaddbnnDhoS+UlqHJJdUIRKW5thk6yHPGopAtxA2s7VvSgO+it RwXfY10OmTb+Pp4YtQmfel5jd77WAQtzvK5sYpUKS0IJtuRFWSye3RKpmYpLkjBDkmQb iD2tCR1Es+3/jwvhPLw1ewyCbeNrIOSe+LuFu5U74Hm/ZkP2Eu2pF6RxLUqBg76rocaq cf1Q== X-Gm-Message-State: AOAM531xGT9Hv9Aqj1rv8GQl5POUj+95ukqFot6rMF8iBdLlx53hUFdV IwepQVDqHok5eIMwyyXvOwCkVxF5E5Q= X-Google-Smtp-Source: ABdhPJzte23V8WXHqTox4tj+KWEmYZgv/sYl17pbLgTl1jJsavFKOv0DD3GSFv5YxX05unrvxHhVCg== X-Received: by 2002:a17:902:768b:: with SMTP id m11mr2169751pll.136.1592454679386; Wed, 17 Jun 2020 21:31:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 066/100] target/arm: Fix sve_punpk_p vs odd vector lengths Date: Wed, 17 Jun 2020 21:26:10 -0700 Message-Id: <20200618042644.1685561-67-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200618042644.1685561-1-richard.henderson@linaro.org> References: <20200618042644.1685561-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::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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=_AUTOLEARN 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 , qemu-arm@nongnu.org, steplong@quicinc.com 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. 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 dc23a9b3e0..24c733fea1 100644 --- a/target/arm/sve_helper.c +++ b/target/arm/sve_helper.c @@ -3137,11 +3137,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