From patchwork Wed Jul 17 06:09:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 812988 Delivered-To: patch@linaro.org Received: by 2002:a5d:42c4:0:b0:367:895a:4699 with SMTP id t4csp643295wrr; Tue, 16 Jul 2024 23:11:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOBhMHItcmsCtNUrpzk88lrRSCqKZegJLGAaeYzhPaPCEnAKJuSecvC+w/1oVSu2CD2ZcvNPkYA6rXprjLg4W/ X-Google-Smtp-Source: AGHT+IEXO1IUaEX0llvYX9T3klUjq7UvghmIxzypRE/O5DS0lk/KFbkxwJScnV0tpxMxFhiI6wpP X-Received: by 2002:a05:6902:2b88:b0:e02:4d55:1e6f with SMTP id 3f1490d57ef6-e05ed74180emr858468276.21.1721196697744; Tue, 16 Jul 2024 23:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721196697; cv=none; d=google.com; s=arc-20160816; b=ZNASRlfZXD6iFlpjuYffZ4yR0qlvGxIrLwnDWUXcfan0uTIkra5FyES8iaKKd23XDd clCAch5vqBocYsuQD+g9bzaIwHb7YYk7aODpg42P58Iqdapz4E67IDsnPnrweW9UrPaE hv6qjyrbvXHl5XvpQC5UGY+Rw7Cz7umtvdiK9P8GWrwUrt2Zl6oc4dDob4dGXqGaP8jS lXNtHxpeOY/jWISTAlKkjM99QAHa6sRf6KQe9KmeB0m1eovxpRvF3KPgH9x5lqHF4aR1 Kz5KjA+/dmbI5tENv2oJ78szdArLdyr7VmkbXp2VYilu/yt/7Fp7E3oUudtoNmWqkTjs qmwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:dkim-signature; bh=57DdanWVRLYnAUN5YF1Z/JUbHmS65EczfEpSlC06YmA=; fh=quVKJN+JogokNzsp4kwoA7mheGRSBID5PxcC4hooSO8=; b=kF4Jelmqwkw2FVvwsRAZAvEkPx/uhM8mC9V0l7z2zeIgu5Iyk+VdcY7NOikpD0Armo uqtZiRZqpQHKdUr+ETCx4s6gxBgTqohjW79TsdjTnNr0Cw4QLFpQPH5gQIRH1q9vWyEo 1OAuxMSmreGnLDXVp9+UeA6Tfe8inZktjqYJkNopEdMupMbAuQrYFBp6yrFd9fc7tU4u skUtAUVZ112wrjGn68JyVoOfEZQobT8TQ206kYD4kiE6yco3S3SZkBgjZqkFgfNhpJHD OeuqxqeTvNdDzy0zAUTYHO57q30aCAY64HD38zHYfL/XS4NUc/AVWv1gSzX2AV0B7Qi/ ywPA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wePVVf0y; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a160b7ca10si911123085a.64.2024.07.16.23.11.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Jul 2024 23:11:37 -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; dkim=pass header.i=@linaro.org header.s=google header.b=wePVVf0y; 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 ) id 1sTxru-0008L5-Q7; Wed, 17 Jul 2024 02:10:27 -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 1sTxrN-0005bu-Jr for qemu-devel@nongnu.org; Wed, 17 Jul 2024 02:09:53 -0400 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sTxrJ-00035z-J2 for qemu-devel@nongnu.org; Wed, 17 Jul 2024 02:09:52 -0400 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5ce74defe42so352255eaf.0 for ; Tue, 16 Jul 2024 23:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721196586; x=1721801386; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=57DdanWVRLYnAUN5YF1Z/JUbHmS65EczfEpSlC06YmA=; b=wePVVf0ygEbl+zb75+wpb/7Mu5abD1ywmETe5t9ODIr4VkOu6FTDHluTQyE1bFDhqa cbPPrG8iGTGPEv1qP/q/eqOjrlktHsCAQIgH+WQfB4lzLEIrNrbHmBZfjpru1Anq3tVl llN4ccI9Ei5hJyTWU5On6W/LA4nFgYwRbDp/iX4ts5L0jDMnsxACiMTRIq7uV+aMoSuR UbsTufu56BO6/S6eNIrAUZc0LQE11EYfa1BiUTA32hEaHKPTSBUIa0ZTh4/sPl2sEHrq MRAmYOlME1izLMANpAYBDzOh5BSdDK2MdI+6NWGvA0RuvhknXXk4viNcZP0mlryA0xLw FMNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721196586; x=1721801386; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=57DdanWVRLYnAUN5YF1Z/JUbHmS65EczfEpSlC06YmA=; b=ZRYGfXk4raiIr+FDnE2bJ8JhaPipD6iUVdESBgnKffEZUqJtoQJd6j94DIyh2WpHyA G+ZbmMLkWxMwL4jbopt9PT9s0EWr9UMJz+lAT3rjPwln6tKabyYq4TpyHsQ9z3yb6jr/ 9pMr7ICuaMF5CG1cxbxEDSAMtuJHcbcIRQGN/iPJiIW4+H8fXNaJKM3cdNr3ZpR52Csa ZZGNaZjEqoncSewTBarTbKYsRWGxrcNVEaVOXycuj9VydGZQEMQZIBXCaLhYDP97pXgP 9/cwJXcLbvtkOJBGneWyok6kFHidgmEXPF7gtjTkEmL3ChrW6D/ifQiidODRpK+eSh6V AQkQ== X-Gm-Message-State: AOJu0Yx7A4oqYQGeOHUqVte/gEgYcUxR6A0BPEkEzvoLGQBc5InbHA49 31499Ppfi/ovZcTU4Nci67ocBpZUbrQsq6ucKRleNfOE1eD/YbvuMyMcQP4IPemkw2lBFbK8d3n VtiE= X-Received: by 2002:a05:6871:79a:b0:24f:d873:9f32 with SMTP id 586e51a60fabf-260d9222ad5mr578504fac.26.1721196585830; Tue, 16 Jul 2024 23:09:45 -0700 (PDT) Received: from stoup.. ([203.56.128.103]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b7ecd603bsm7330404b3a.219.2024.07.16.23.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 23:09:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-stable@nongnu.org Subject: [PATCH 14/17] target/arm: Clear high SVE elements in handle_vec_simd_wshli Date: Wed, 17 Jul 2024 16:09:00 +1000 Message-ID: <20240717060903.205098-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240717060903.205098-1-richard.henderson@linaro.org> References: <20240717060903.205098-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c34; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc34.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, 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.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 AdvSIMD instructions are supposed to zero bits beyond 128. Affects SSHLL, USHLL, SSHLL2, USHLL2. Cc: qemu-stable@nongnu.org Signed-off-by: Richard Henderson --- target/arm/tcg/translate-a64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index fd90752dee..d0ad6c90bc 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -10471,6 +10471,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) */