From nobody Fri Nov 1 01:02:18 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1696575449; cv=none; d=zohomail.com; s=zohoarc; b=T8EiIJIkPYb36b3T/gmDoP88JUMlnfuEIy+p/GoR6bMz7WOhuLddxTxtXucxI2IYsGvZqHXTWWK/nhUws5AFLuAOeQ2wnNTex88a17YrbWuhWpVl8p0dgNfpGs9430d1tjqppkPNbergCCQHlKpC2hT44AxrLYVJ2JrUVdkH4aU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696575449; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=cdqiX6dWVRa/4AzOq/8yLZQcOO/sdfforGUfkwiTcSg=; b=MSeRN9vm9wpr3NeatHfjsafoHubOSDhGIDGX5+OxflGKQJxR1ZT8oTKOTWD7b0iTI+tBdX2jz/w4XgtbF2uLtXog74cEQY4DzyLGthUIjeBSaVWbKpnmJU8j5S+MCw1AC0Gn8Xk0jchUfjQpKbRSy/sBOgUxjBB/593FR5FWwEQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 169657544938319.17248956382582; Thu, 5 Oct 2023 23:57:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoelD-0002MY-Bk; Fri, 06 Oct 2023 02:56:31 -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 1qoel8-0002Ld-24 for qemu-devel@nongnu.org; Fri, 06 Oct 2023 02:56:26 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoel4-00035v-Eh for qemu-devel@nongnu.org; Fri, 06 Oct 2023 02:56:25 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3247d69ed2cso1737368f8f.0 for ; Thu, 05 Oct 2023 23:56:21 -0700 (PDT) Received: from m1x-phil.lan ([176.172.115.173]) by smtp.gmail.com with ESMTPSA id m15-20020adfe94f000000b0031984b370f2sm911268wrn.47.2023.10.05.23.56.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 05 Oct 2023 23:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696575381; x=1697180181; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cdqiX6dWVRa/4AzOq/8yLZQcOO/sdfforGUfkwiTcSg=; b=MjNZ05OCQIcLA1hWPrjBz4u99niHM4yv34Dc1xsRluAsuBkFn/CJjcGu7dE96YagLh xMovNiydrS9pPYU3j2EqOSoSskRQYANKf35qslM2O36xgAIp4HluYEPecOAo2nK0awaN zaVTNkvhvVyeC+KsERO9Q4YoD6tHSsKHwXTC2ayQiJZEF6sI/OBMZKAxU4pVf5gcUUu3 gEAFo+VuDzVSp+lWyLNIu3n+2CE6Nx19U0rvoZRTxU1dBXGloRxmJtyKvKDhvXkQIORz G60AND0RsrlLLv6CSYUjtv1RM3fx2DBCMukhLnNDuSl6CLI4r6Akh31sJ1JsJcvxYIL+ Z95w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696575381; x=1697180181; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cdqiX6dWVRa/4AzOq/8yLZQcOO/sdfforGUfkwiTcSg=; b=HuzHRBwl//oM857sUQnN6W6D/4kyvnPZC1NBuxNFVXCh12w1C0O5gT6LnZXA5Dc+Q8 5yJn4UfmRn1BRAhIv1RDYLtkoNxyblQwiS2wt+qm6r59bSf6PZdUFeb2e2N0Ri45k6/j ADVemctkBXcc1a9vJicqRJ0f9pxNKr2thL/cOEIHizP4OG0C8v+PU0TQ1fP5K73xftij kJTDlaiUKNryKNhp+U1JaYI0aRD8uuCMjv1yWD7JZxhSZZiKzXr86Wqn4/HRLkNFWKON V7CEdy9eWx5ZPTD2GfYRs5ETgLO8Y/HM66km3OcPLKxWHWqXLZHuqNUGiEGwt/ETuVsC VwEQ== X-Gm-Message-State: AOJu0YymOgVTaS5+zBkqkeFTY8Nl2ATksDC2p3PvQ8NL5Ek1npCCKSK+ ZZikkQoGINqq0QXSXMlTnhPGzQhmnUQBiYKvWlk= X-Google-Smtp-Source: AGHT+IEPECq1BEe64KI4qe6y0oUHApfummfWvjpvuVyjfdOKfGpSZDw9KnzY5cc+uo81kotyoj6O0g== X-Received: by 2002:a5d:474f:0:b0:31f:d5db:a13 with SMTP id o15-20020a5d474f000000b0031fd5db0a13mr6778613wrs.61.1696575380700; Thu, 05 Oct 2023 23:56:20 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Ni Hui , Aurelien Jarno , Marcin Nowakowski , Aleksandar Rikalo , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang , qemu-stable@nongnu.org, Sergey Evlashev , Richard Henderson Subject: [PATCH RESEND] target/mips: Fix MSA BZ/BNZ opcodes displacement Date: Fri, 6 Oct 2023 08:56:17 +0200 Message-ID: <20231006065618.34843-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1696575450381100001 The PC offset is *signed*. Cc: qemu-stable@nongnu.org Reported-by: Sergey Evlashev Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1624 Fixes: c7a9ef7517 ("target/mips: Introduce decode tree bindings for MSA ASE= ") Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/tcg/msa.decode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/mips/tcg/msa.decode b/target/mips/tcg/msa.decode index 9575289195..4410e2a02e 100644 --- a/target/mips/tcg/msa.decode +++ b/target/mips/tcg/msa.decode @@ -31,8 +31,8 @@ =20 @lsa ...... rs:5 rt:5 rd:5 ... sa:2 ...... &r @ldst ...... sa:s10 ws:5 wd:5 .... df:2 &msa_i -@bz_v ...... ... .. wt:5 sa:16 &msa_bz df=3D3 -@bz ...... ... df:2 wt:5 sa:16 &msa_bz +@bz_v ...... ... .. wt:5 sa:s16 &msa_bz df=3D3 +@bz ...... ... df:2 wt:5 sa:s16 &msa_bz @elm_df ...... .... ...... ws:5 wd:5 ...... &msa_elm_df df= =3D%elm_df n=3D%elm_n @elm ...... .......... ws:5 wd:5 ...... &msa_elm @vec ...... ..... wt:5 ws:5 wd:5 ...... &msa_r df=3D0 --=20 2.41.0