From patchwork Fri Sep 6 11:13:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 825941 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp747164wrb; Fri, 6 Sep 2024 04:22:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV4Myay59nk8k3RZq9jrqo4IPOu5r9N/0rDSqb0uePiVWMtpO/mCms6ZliJBSTf974ILi4yRw==@linaro.org X-Google-Smtp-Source: AGHT+IGeu1UNQ0g2/7Lug1S9k11dVRRhZMPIGnU68rXJ2jeeZcBczdQ0DB2YIsVjRfgmKxqaqQhe X-Received: by 2002:a05:6902:844:b0:e16:49d6:43e3 with SMTP id 3f1490d57ef6-e1d3488356fmr2664690276.22.1725621741722; Fri, 06 Sep 2024 04:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725621741; cv=none; d=google.com; s=arc-20240605; b=PxBjEo4AyMy1ZlcA3m+ndgnEWgZ7+f4z7YZEzaF1bzctRRWFv/DgPzJ4BdhG36Z8el X/YU78wB1tCX685rbwHf1gPAhJEit1l+olNnFofpR9ASvkoFqi3jDpOj+kCMtUvJwmMp B+fPwBfRJrzxIt79W9ujh47m105VtZgY5D8US25FkqRh0I2050eMaenIDB18h/n3+u6E UfesRSzXLXLsUqzijEMa0tfYQ55y4BKyrI3GvCJCbvVUElCq8oJi1pSTS8iwP0jErNkt GCYxaAbAe13M1857u8P1YOPuWOHTlbCOMy4EEO1u72jqxM3oQwynf+EMRKuIft6Zzi1v ehQQ== 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:cc:to :from; bh=p4GHXT3prViI3Gp1dAUK2gn/S075W4YwP7vrCTnTuCo=; fh=NoJ7n5JVE2hviRF6uNBFRIJvWH7igafuy1AIwg26ToM=; b=jG5epuaX+P9FHmYXKD9zR6NKX8QVnSsiNpAVZhjnU3DfcvmHWUsJiE4qXN6gfc6MFy MqzpSxcw9z5THO4xGQ/VL+w7p15WxXzxZ5XlRFuxuAEW0N/3gWtVWHW7CRJhFKxGJDLN JFEZYKW5vYezhToBKesfxQlJ2oWatsYw/Rz+QiftAWT6PmVTohyOPRajQ2dt+yiEgwWQ uGVi0e6kNkOb1Y/nly1giVOi7JKwke5wf+1hIibVEtfnXesk8gEVjXkDRZdCKttiSnmS R3BG7if/rz0dWRm0QAz1pEOLPD0uo9CV/XL9slRueR6EVEdviqAQJq1OeLn7yCNUIpRI EqgQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a9a1026f4dsi7134685a.221.2024.09.06.04.22.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Sep 2024 04:22:21 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smWz8-000071-NY; Fri, 06 Sep 2024 07:18:38 -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 1smWz4-0007wo-3j; Fri, 06 Sep 2024 07:18:34 -0400 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smWz1-0008GE-S0; Fri, 06 Sep 2024 07:18:33 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 18DF88C4A8; Fri, 6 Sep 2024 14:12:10 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 257CC133711; Fri, 6 Sep 2024 14:13:28 +0300 (MSK) Received: (nullmailer pid 353726 invoked by uid 1000); Fri, 06 Sep 2024 11:13:24 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , Peter Maydell , Michael Tokarev Subject: [Stable-9.0.3 55/69] target/arm: Clear high SVE elements in handle_vec_simd_wshli Date: Fri, 6 Sep 2024 14:13:04 +0300 Message-Id: <20240906111324.353230-55-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 From: Richard Henderson AdvSIMD instructions are supposed to zero bits beyond 128. Affects SSHLL, USHLL, SSHLL2, USHLL2. Cc: qemu-stable@nongnu.org Signed-off-by: Richard Henderson Message-id: 20240717060903.205098-15-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell (cherry picked from commit 8e0c9a9efa21a16190cbac288e414bbf1d80f639) Signed-off-by: Michael Tokarev diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index 922a16e5d4..7d620ef109 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -10263,6 +10263,7 @@ static void handle_vec_simd_wshli(DisasContext *s, bool is_q, bool is_u, tcg_gen_shli_i64(tcg_rd, tcg_rd, shift); write_vec_element(s, tcg_rd, rd, i, size + 1); } + clear_vec_high(s, true, rd); } /* SHRN/RSHRN - Shift right with narrowing (and potential rounding) */