From patchwork Thu Sep 3 20:58:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 11755253 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 820F0109A for ; Thu, 3 Sep 2020 21:30:53 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 51E5C206D4 for ; Thu, 3 Sep 2020 21:30:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F5lLuU86" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 51E5C206D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:44164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDwom-0003xH-Bz for patchwork-qemu-devel@patchwork.kernel.org; Thu, 03 Sep 2020 17:30:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDwLG-0003yT-RB; Thu, 03 Sep 2020 17:00:24 -0400 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:40762) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDwLE-0007cz-SJ; Thu, 03 Sep 2020 17:00:22 -0400 Received: by mail-ot1-x341.google.com with SMTP id e23so4013768otk.7; Thu, 03 Sep 2020 14:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=qTh31Rf/r01rqa9kv/3Kv1y/l40RMHvXG4921rSK/Vs=; b=F5lLuU86NBNOJXSwTxkeLFpMXiJkG0hav4FZB3TnChTvRFMaQMraUSDoOu0x3F65Xj Lg++2yXEAnJ6KZI3mJq04c5eBdhVep9/iGGS3Ce5q9JfEd9UKtdM2Tx+twK8+p9lDQ3T 3pLdTUSduK26/IapUFMjYJRkQIzJ+d8TLHe+15byIkg7Fhx4Ff0MSHZ9YBuf4T1v5z3q jirXrV7PjOrNi3CT3fMTXF0JadcSqIos4s0WskEW9Gh85GilP1qRXp+hf0pUBQ68jAvm TZCekJIVWL/dkZe2y6l5goNG272KgGTQU+OdsppdTNL5axDHnFKJVksPhL7wEGs9jfTG FdMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=qTh31Rf/r01rqa9kv/3Kv1y/l40RMHvXG4921rSK/Vs=; b=lpwTHOd7S07XHyuZSXvO1evhcLA3aGsxCR2h/3l9FoRU8ibYCNrKx2oaWYcOdDlWEi octFBek+0AmcOG5v9HzWhUD0273bpvXWKW210O9HrNtzaSd4YI9vPNEzD/+yx1GCoW4S XjQiUg60ZTTZ/ht7zju36FrVQnj9MTEBFKQYS+/Oqw/c30aBPVt6Iph+zm+43qJCtAm7 U5tS4wakajz3rXKbYk+LDDYtI7Udpl0W7KxmiEkeXctiOvLPUve2shkNMdNR1DKSq/l2 0fBKXjuDexCFMFUPUyTUHIVpOlRye9am15FizbmGPEZ/9Hcr6AFdQpUZO/UfVSVyzV3N ORGQ== X-Gm-Message-State: AOAM532yTMXA2xEnBwfrdoc5L8EKZ5gf6a3gYeEgnzrenFK1UDBst99f ca9ka3BfjN8ec9yoPOEPK0O93KsJh3s= X-Google-Smtp-Source: ABdhPJwnXs/a36zSYU2IRuxKnj2zUGliKwnIAFe8ex8OxCKS+g75naWsnkm1hC5IJ17De+bmeNP/Gw== X-Received: by 2002:a9d:6e1:: with SMTP id 88mr3073463otx.178.1599166819269; Thu, 03 Sep 2020 14:00:19 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id n186sm831721oob.11.2020.09.03.14.00.18 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Sep 2020 14:00:18 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Subject: [PATCH 02/77] target/arm: Clear tail in gvec_fmul_idx_*, gvec_fmla_idx_* Date: Thu, 3 Sep 2020 15:58:20 -0500 Message-Id: <20200903205935.27832-3-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903205935.27832-1-mdroth@linux.vnet.ibm.com> References: <20200903205935.27832-1-mdroth@linux.vnet.ibm.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::341; envelope-from=flukshun@gmail.com; helo=mail-ot1-x341.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: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Peter Maydell , Richard Henderson , qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Must clear the tail for AdvSIMD when SVE is enabled. Fixes: ca40a6e6e39 Cc: qemu-stable@nongnu.org Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20200513163245.17915-15-richard.henderson@linaro.org Signed-off-by: Peter Maydell (cherry picked from commit 525d9b6d42844e187211d25b69be8b378785bc24) Signed-off-by: Michael Roth --- target/arm/vec_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/arm/vec_helper.c b/target/arm/vec_helper.c index 8017bd88c4..5ce111b286 100644 --- a/target/arm/vec_helper.c +++ b/target/arm/vec_helper.c @@ -737,6 +737,7 @@ void HELPER(NAME)(void *vd, void *vn, void *vm, void *stat, uint32_t desc) \ d[i + j] = TYPE##_mul(n[i + j], mm, stat); \ } \ } \ + clear_tail(d, oprsz, simd_maxsz(desc)); \ } DO_MUL_IDX(gvec_fmul_idx_h, float16, H2) @@ -761,6 +762,7 @@ void HELPER(NAME)(void *vd, void *vn, void *vm, void *va, \ mm, a[i + j], 0, stat); \ } \ } \ + clear_tail(d, oprsz, simd_maxsz(desc)); \ } DO_FMLA_IDX(gvec_fmla_idx_h, float16, H2)