From patchwork Mon Jul 15 05:58:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 812598 Delivered-To: patch@linaro.org Received: by 2002:adf:fac3:0:b0:367:895a:4699 with SMTP id a3csp1658889wrs; Sun, 14 Jul 2024 22:59:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVLwDDC/v1Dm9Ajm0BUe9jlaPPiPHDyQLPsdjJwNXo0aNwRfGk+wctkijADmMww+8UxstvIfegjGH2kI21JsdWS X-Google-Smtp-Source: AGHT+IFwmhas9Ssh5nkEN7Cmqv8f22Tnecm6R5J6WphNYykmqemmJ+Eu5rFdjzg4nLAE3ifqrG7A X-Received: by 2002:a05:6214:1c83:b0:6b2:a467:88e with SMTP id 6a1803df08f44-6b61bcded0dmr242260106d6.24.1721023150554; Sun, 14 Jul 2024 22:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721023150; cv=none; d=google.com; s=arc-20160816; b=KIa9vCoaskjqoal4TNrB+7b3bGLIS2vgAYi6IQRQLLwSOPsPl1166LWal8cdDBVUI6 ujkmfIRvu8lXSWedrwEyuZze9gXNmo3vI5fdWuPw7PclDB5ZpM0zsT8+seGAknjg841O mhNyLZ+ofGfSn949ieDdu3+ozWMCVHGAjqalz9+ZmtX9nOuGpG33mhCla4pHu1s/oXY1 9lU3aZ86UECaY+0KP5ULsRrfPm7H880mA3cFWHPmHNbDGa3zdItbPxe5XmZYeY6D1nls EU8TplS9szWSZEpDo/gUYKCYFwvJooM68zUpIZCtqxVTFIYxwBccgkSpTQZU4+Yzj6C1 8A6Q== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=Pue76RGo+eYbbGlezzj03dyKjEEGEgCD+K39biRfB54=; fh=jImhQggepTc+gijd+EhmRav1iZOkW+2GGOLPeg0CJfo=; b=fPNAZdEr5C8ZpSeOjtDBMPTSt2vaFyWFcb0Qqx3eqbaRQRZiNNo6IoShO/JmBv5EUr M8kfWtvFyfLEQkUgvBuTUGmCijuaZ4xXdFO3oyS6DN0ALHbh9wmpvY9j+6AbqJ1D4u/7 Zf7oQSAsSUEqhcNbOGSp2I7Wi/HBL7jifW9ToSpedH9UeVCZrR/z8TTloSk/BM1fMbPW R1G8/otOa+r2Kdp5iGcHpGnLpoTrc2GL+P5Hx+6yuFC6s5HrzCb+UPOqbcPPWigbroyp D5+I26VJhKlcajheGYe5y8xZwkwu3Iu+nWttzs0DfRnL7KEe6tHKcjg7uWQUyNZLSjW3 aG6g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IjnF4rmJ; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6b761a3bedbsi45196426d6.438.2024.07.14.22.59.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jul 2024 22:59:10 -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=IjnF4rmJ; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTEjI-0004Rb-9n; Mon, 15 Jul 2024 01:58:32 -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 1sTEjG-0004Q1-I2 for qemu-devel@nongnu.org; Mon, 15 Jul 2024 01:58:30 -0400 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sTEjF-0008SG-4M for qemu-devel@nongnu.org; Mon, 15 Jul 2024 01:58:30 -0400 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5c694d5c5adso1879434eaf.3 for ; Sun, 14 Jul 2024 22:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721023107; x=1721627907; 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=Pue76RGo+eYbbGlezzj03dyKjEEGEgCD+K39biRfB54=; b=IjnF4rmJsYXNSX/DdQL21SaJ5S/P0t3BSzQ/mSpdIw8SKOFy/KL9Cu4GyVyKgpSvY8 2qIuWSoetNbS+7UheWdEQypjFFqJuqYKx6wJwXF5eXDCDraFc1Y9++BOom1vZ1THWdu7 WkbaDvLkbPrWGGFMMieChCHsLUGoHE2eVRRl9Yw5BUiFAh2aRI88x1fAiwnA2H3/Puge ftLni9vtLMoWQ6iyWd4wfklhy3FergsvXS7WZmISo5rU8lxNNzopSDqdL9IjySXZjAtN NBd/SHukiClp0oS9niijU3VyhDiWuY0mCrO8RENtkUM2kpXSsR574ntJAC6FTm3H/Ete 7AcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721023107; x=1721627907; 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=Pue76RGo+eYbbGlezzj03dyKjEEGEgCD+K39biRfB54=; b=aiecCsdjZ6UhiLpsUN5rD3np1zqCOdcOaie6hcoIl3ZY43sCnkqCKuOZW89Hfqlh7A 5Et+C2WA9Ue/EV+du5KpxzBQqznKJg9lIF+k0SHSIS24PPyiQLsEFbKfHmZJ2qJl56/d y7u3+7QIjc4L413ZzwyTZfxbzJ4tH8+fk1fbTvR5ZWzXUkrAdGUr1CJrzmX6QRPk+vtt xj4vhMzT1FUQrKu+mTUHPczp3kplpKttPN84LAnyP9je97KGvsmfNR637dBTsiLUjRLG eUYjoxtvZORMVA2kAC5ZJbtX+t7Bj/PeyRsdS8jJikRGOiVK9F11ko5T4pKGBguDS1Lq HTgg== X-Gm-Message-State: AOJu0YxB32sAelABzvjyGuEo1529ulWngfW5qQ81pOpuDFkGHQRkxaEy 803XLswBFBv9nPYJaVuVMlF7hUtckLFKtNPN3i+wBncTUVAnpbdpmiWeBouUlcZZjcUtWkgds22 ULfdsXA== X-Received: by 2002:a05:6359:7399:b0:1a6:b034:b381 with SMTP id e5c5f4694b2df-1aade08fba6mr1381209655d.3.1721023107299; Sun, 14 Jul 2024 22:58:27 -0700 (PDT) Received: from stoup.. ([203.56.128.103]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2cacd419af7sm5463589a91.25.2024.07.14.22.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 22:58:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: danikhan632@git.sr.ht, qemu-arm@nongnu.org Subject: [PATCH 0/3] target/arm: Fixes for SME FMOPA (#2373) Date: Mon, 15 Jul 2024 15:58:17 +1000 Message-ID: <20240715055820.319035-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2a.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 Hi Daniyal, Your fix for sme_fmopa_s is correct, but not the FZ16 fix. We represent FZ16 with a separate float_status structure, so all that is needed is to use that. Thanks for the test cases. I cleaned them up a little, and wired them into the Makefile. r~ Supercedes: 172090222034.13953.16888708708822922098-0@git.sr.ht Daniyal Khan (2): target/arm: Use float_status copy in sme_fmopa_s tests/tcg/aarch64: Add test cases for SME FMOPA (widening) Richard Henderson (1): target/arm: Use FPST_F16 for SME FMOPA (widening) target/arm/tcg/sme_helper.c | 2 +- target/arm/tcg/translate-sme.c | 12 ++++-- tests/tcg/aarch64/sme-fmopa-1.c | 63 +++++++++++++++++++++++++++++++ tests/tcg/aarch64/sme-fmopa-2.c | 51 +++++++++++++++++++++++++ tests/tcg/aarch64/sme-fmopa-3.c | 58 ++++++++++++++++++++++++++++ tests/tcg/aarch64/Makefile.target | 5 ++- 6 files changed, 184 insertions(+), 7 deletions(-) create mode 100644 tests/tcg/aarch64/sme-fmopa-1.c create mode 100644 tests/tcg/aarch64/sme-fmopa-2.c create mode 100644 tests/tcg/aarch64/sme-fmopa-3.c