From nobody Tue Nov 26 08:31:12 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1708978702; cv=none; d=zohomail.com; s=zohoarc; b=MbeWKKn2Bczl7dCizMt7rS5r7UKllC4OZ+RIDXvhqO975I7jYUhn77V0GZpDJnV5C7V8huxZkaBtUDQ/s5VBYoD5rNzyA+hmM1uFAD7srD1sMWrOrG+l22ktHZd5Yw/6LTOVhad/MRjgxBbPc3KDzuK1a1DYe+ch2TdtexpVmA8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708978702; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=G8J7F2iE5kae+EJMR1Fj9GxIukzXTHmw7zGOIwbFMQA=; b=bJC9tCxrcrMHXRh7DfLt6DXueD3s3DDF4Vx4LGuvXb8po6/5+N6dgGnanHdKHq345BorBfQuDPusSp6YWf32hMBErF0eTgXMkf2h0nlm97RSzLNneY5cTqjaIVvKZcgYsiqoQuBX5g2EQVmhTSoa//s4y/ibOb0fthDsrXILSd4= 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 1708978702682476.7236673121797; Mon, 26 Feb 2024 12:18:22 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rehPu-0001dm-W0; Mon, 26 Feb 2024 15:17:39 -0500 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 1rehPs-0001dK-KY for qemu-devel@nongnu.org; Mon, 26 Feb 2024 15:17:36 -0500 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rehPr-00080T-34 for qemu-devel@nongnu.org; Mon, 26 Feb 2024 15:17:36 -0500 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3bb9d54575cso2843902b6e.2 for ; Mon, 26 Feb 2024 12:17:34 -0800 (PST) Received: from taylor-ubuntu.austin.rr.com (068-203-008-061.res.spectrum.com. [68.203.8.61]) by smtp.gmail.com with ESMTPSA id by11-20020a056808340b00b003c1a4a9ad17sm330594oib.46.2024.02.26.12.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 12:17:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708978653; x=1709583453; 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=G8J7F2iE5kae+EJMR1Fj9GxIukzXTHmw7zGOIwbFMQA=; b=BE8twdb330PofWpkkN7hEK/zvyaZBgFRcswu9WsSXDR3J9zzF+DaHKruUAiQtTq/bY YkVVaWp5RpQU0OPdmdTMUzNqScyHEb0eLNnSdxe/xm7eOicrSfx9oSwP6IuTuyKD1GGW 5QXgPtdBe0xd9bYQKfkKEXX9m1MAxHnw/h2WGMehyEHARYKlxqVbOBEDc3E4CPpkX+hy z31RPtQ8ZGxENIP8qfwbkTBx71214ydmHg8N95OBUHiKuEXkwgawsSLl3TnCVhNlAY74 AB4eo9FJ5Gi586QC7jBWdq3vxn7Uw0ila+0FmTTVwgX8JO4E2f1gQ2+7aRNKtMMV7H6R kmKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708978653; x=1709583453; 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=G8J7F2iE5kae+EJMR1Fj9GxIukzXTHmw7zGOIwbFMQA=; b=AO3TZKz5MXwRpXA12wngs1I6JOd7dS/rhp+wXTpjeoPBxAMc3MN/wC8IKi7Wt6yuej O4aIrLSy2wofpvqwWsEx+ZoBecCg8wfelvdiwAZ3Gk3hFDN4+tz9DwE18ZzKju3+F39H IP/SkjcR5BZsWHXrGq6ZVOksVTqN09/BBcS88WyisfRvQ3mMfl3ngmrpbyLBWvYoji5R kPQJMOXKUjxw86mIUEJoeuK9URlECBVgGy21e05K/7ZjSue7echt3731fkSNEtzxTqfW 5GB5IM5dQ3XLvMA7YUuSWgMbs+mBpyVZsw/1JZuiRxYjkIUBl4PEeiVLRhgjrEecmS76 ZHQA== X-Gm-Message-State: AOJu0YxLpvwqRFbUEiiakfjN/P5yRQFS0bRAsNVgMUO37+8z/Z75YyWf fsCwb9qQwY0qdvZQUcNfOiwgnG7g1k4Vx6YUxHGqf1WsvrYvL1BjZ2NKoVHRO+E= X-Google-Smtp-Source: AGHT+IEF+Gf5eHD4D9fvOwUflsXd+8nXtTRdx8mW78HPwg4g0NWFhwKusFrCTpriaLNL/8rqcJIscg== X-Received: by 2002:a05:6808:17a6:b0:3c1:9b7b:5836 with SMTP id bg38-20020a05680817a600b003c19b7b5836mr256826oib.12.1708978652743; Mon, 26 Feb 2024 12:17:32 -0800 (PST) From: Taylor Simpson To: qemu-devel@nongnu.org Cc: bcain@quicinc.com, quic_mathbern@quicinc.com, sidneym@quicinc.com, quic_mliebel@quicinc.com, richard.henderson@linaro.org, philmd@linaro.org, ale@rev.ng, anjo@rev.ng, ltaylorsimpson@gmail.com Subject: [PATCH 5/9] Hexagon (tests/tcg/hexagon) Test HVX .new read from high half of pair Date: Mon, 26 Feb 2024 13:17:18 -0700 Message-Id: <20240226201722.391879-6-ltaylorsimpson@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226201722.391879-1-ltaylorsimpson@gmail.com> References: <20240226201722.391879-1-ltaylorsimpson@gmail.com> 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=2607:f8b0:4864:20::22b; envelope-from=ltaylorsimpson@gmail.com; helo=mail-oi1-x22b.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1708978703332100001 Make sure the decoding of HVX .new is correctly handling this case Signed-off-by: Taylor Simpson --- tests/tcg/hexagon/hvx_misc.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/tcg/hexagon/hvx_misc.c b/tests/tcg/hexagon/hvx_misc.c index b45170acd1..1fe14b5158 100644 --- a/tests/tcg/hexagon/hvx_misc.c +++ b/tests/tcg/hexagon/hvx_misc.c @@ -1,5 +1,5 @@ /* - * Copyright(c) 2021-2023 Qualcomm Innovation Center, Inc. All Rights Res= erved. + * Copyright(c) 2021-2024 Qualcomm Innovation Center, Inc. All Rights Res= erved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -231,6 +231,7 @@ static void test_masked_store(bool invert) static void test_new_value_store(void) { void *p0 =3D buffer0; + void *p1 =3D buffer1; void *pout =3D output; =20 asm("{\n\t" @@ -242,6 +243,19 @@ static void test_new_value_store(void) expect[0] =3D buffer0[0]; =20 check_output_w(__LINE__, 1); + + /* Test the .new read from the high half of a pair */ + asm("v7 =3D vmem(%0 + #0)\n\t" + "v12 =3D vmem(%1 + #0)\n\t" + "{\n\t" + " v5:4 =3D vcombine(v12, v7)\n\t" + " vmem(%2 + #0) =3D v5.new\n\t" + "}\n\t" + : : "r"(p0), "r"(p1), "r"(pout) : "v4", "v5", "v7", "v12", "memory= "); + + expect[0] =3D buffer1[0]; + + check_output_w(__LINE__, 1); } =20 static void test_max_temps() --=20 2.34.1