| Message ID | Zg007Nqm7i6+fOXc@arm.com |
|---|---|
| Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org>
X-Original-To: patchwork@sourceware.org
Delivered-To: patchwork@sourceware.org
Received: from server2.sourceware.org (localhost [IPv6:::1])
by sourceware.org (Postfix) with ESMTP id 9832E384773E
for <patchwork@sourceware.org>; Wed, 3 Apr 2024 10:53:23 +0000 (GMT)
X-Original-To: binutils@sourceware.org
Delivered-To: binutils@sourceware.org
Received: from EUR01-VE1-obe.outbound.protection.outlook.com
(mail-ve1eur01on2058.outbound.protection.outlook.com [40.107.14.58])
by sourceware.org (Postfix) with ESMTPS id 27BCC3847718
for <binutils@sourceware.org>; Wed, 3 Apr 2024 10:52:53 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 27BCC3847718
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=arm.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 27BCC3847718
Authentication-Results: server2.sourceware.org;
arc=pass smtp.remote-ip=40.107.14.58
ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712141574; cv=pass;
b=C2WU7cmsVD1sVUl59CQuELaiK3O9b2GRW/uRbCD2ufP17S8ZJiRTLvW4XqyTIpfyzJtwO1KARSjQGS3ybrhZUhGnD4JLA/efma42zPQdYN+ZctbYKFDZROjOVc1XrTYcQKk2k0/eFlHqaPVk7g6XX5JDGz2Gi8ksQbSQKfiahi0=
ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key;
t=1712141574; c=relaxed/simple;
bh=zqoscrmtw7Hw18jaZKti6arjr06/t9DvwqXTZGTf5CI=;
h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID:
MIME-Version;
b=uIE+BKqEHFwyhVy94viR8ZKhqJFp60VgEWdEs50tupLhwlKqTERw9WsClAK33I+zzosm3hH1DinedG9/xgZ79EX2VM+NfLP0zJONP4ygAhfnslzknnQvy1Wi6EnUqHQSSyNyOSz8Oz1kDBYUDfqaPuJZd6XPaHzrH60jU6nzj40=
ARC-Authentication-Results: i=3; server2.sourceware.org
ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass;
b=Z50Ma6o/1Xgzc1cDNRn3emvLJi/v7HZ2IXIG/0cPxpMx6kkGfepYk/WLlhvN0V5rD0rjYSV4sWFnFcRh8lPFdgB4VILtA7mwv3LZDs8aWr7GzEeBpyhp/Wh4YuuTCbZYqzp82qunqOasCFYBUX6TuvumnrHXwfL9CoSG5YxTQaPJaqeCqJSFbsOGnD8TaOcbs2ZGijvGANsrIstd+cjI3p9v37s5VlZzjLehc623G2fUTe07TXacojKyPtmvd9zPWB0Zapk+Ame/NYS3OkXppg1ceveVg/t0PEuYP3aMysYVfH/p+EsuzoQ5pE2AUrsfiLRjcZXyMKsv7SRDIyg7HA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=JTcDrbajFAJI47irUXxpc4U49o+QmcXixw+g36grr/4=;
b=K77kl601BybYC4vX3v5G3ZiREfFAJufuvnXGhWipyc9I9tIvx+kSwy3APQhcmo7IFGIx4+HovrxPaeY/1u6d9vg4aRYoKq2v2bJSccpQX+YEMN/GFlycX412uziYONiVrC6bjVwPk8LkkkK5diH/ttzqa7ulUE0v/hvLyDJYXgUVjUfIn28BgDMeZ9OoYC4Ocz4rXIYnlxgjrQ2Edhw5ZygcwgGZyFHCVQeohU1SUGeQOgwKzMoJonSH3y2jYMiZExEe3onBbUx5SEvrs5e3N6sNWqfHJpGybx2Go9zpnrf1Ti/oiR54H9dklH02pMG1EJQp3gmRORu2J4qa7cqO4A==
ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is
63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com;
dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com;
dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0
oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com]
dmarc=[1,1,header.from=arm.com])
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com;
s=selector2-armh-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=JTcDrbajFAJI47irUXxpc4U49o+QmcXixw+g36grr/4=;
b=wLfD1h4RPK2QMM1pUwXlYMElsvQeZyjxQcr2jo7vb6eK9OavgO0k3Kde0WwIlAzcaokT3uUe1X2dPl5G7qXNhJZQ+v1V7qAg0MW11m5RllM8qe5gd4YWiDM6ay9/Y0wSaFgl3r8DmeuP/ZDhIPKZ0wFT8Wtf0a01BhAfjBfy+14=
Received: from DU7P195CA0003.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:54d::19)
by AS8PR08MB9816.eurprd08.prod.outlook.com (2603:10a6:20b:613::15) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr
2024 10:52:45 +0000
Received: from DB3PEPF0000885B.eurprd02.prod.outlook.com
(2603:10a6:10:54d:cafe::81) by DU7P195CA0003.outlook.office365.com
(2603:10a6:10:54d::19) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46 via Frontend
Transport; Wed, 3 Apr 2024 10:52:45 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123)
smtp.mailfrom=arm.com; dkim=pass (signature was verified)
header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com;
Received-SPF: Pass (protection.outlook.com: domain of arm.com designates
63.35.35.123 as permitted sender) receiver=protection.outlook.com;
client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com;
pr=C
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by
DB3PEPF0000885B.mail.protection.outlook.com (10.167.242.6) with
Microsoft
SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22
via Frontend Transport; Wed, 3 Apr 2024 10:52:45 +0000
Received: ("Tessian outbound 9b7417e2a8eb:v300");
Wed, 03 Apr 2024 10:52:45 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 8955c9b2fcf92ab4
X-CR-MTA-TID: 64aa7808
Received: from 46d1fa543e63.2
by 64aa7808-outbound-1.mta.getcheckrecipient.com id
4643BD0B-24A3-4AA2-A9F4-9207B3CE44C9.1;
Wed, 03 Apr 2024 10:52:38 +0000
Received: from EUR04-HE1-obe.outbound.protection.outlook.com
by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id
46d1fa543e63.2
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384);
Wed, 03 Apr 2024 10:52:38 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=K3zikz7I2aeR7YkKL0NE7B3CPQchDOq9kZ1slMPyYXSov78XvUmZIhS/2qwYLzfQFzxjXrsi0kCVqGOvlZKO/YCXwaPlxDaNlKsH+2bgw/9SfwhTT82jaapO9ALF3sMyGWlp85rm5q+KRdeAe/GAwHfs5cUBJqbKJzzPSEA1z+7UjdhmrIoW37rpAaV7Re6+k9sI8J9tCW+Vp+d+8QcFNDWZJ2+RfIGSUS7rXay5T9uKQHvKPuQgEd2WTx1gKOF9tr7ObS0ErRCPcEm8FYsOEs2qdYeRZa9De2N8FV7EynkdUYDfQtD1drSGjxWfhui/BxVFKLHoLr5JZOspAYjWLA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=JTcDrbajFAJI47irUXxpc4U49o+QmcXixw+g36grr/4=;
b=XmEhgG2ZHBOquw5aA54Vr6WLZaJb7ogX22i2UJZzFd0jrunXGLEDc90FPVYcv9+PozDPkAPoSXALHHRKDrCDEqFc4E4fTMsBnMMn7hIrYK7p6l2VVyrtysUIqKw06WCViP6EH1JzVyhV/WKO4GWBC8fwhFTfRogreQpJCznboROFGJwUEUCPFqD5BqU+FOSr8mp9IQClCv60Hwr8mPY5z0wnsnuwJJcuFkV0mOYKKl/nZAHDjhcszshfOnBV0Utdbs/c7hWU7vof3MDdOvcWGdOlpYNIdxQi7QiHBNbw+s+xxd2q6/9Y00SMecXEuJEb5cNULYYGgvg5c3TAKYFWIg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass
header.d=arm.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com;
s=selector2-armh-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=JTcDrbajFAJI47irUXxpc4U49o+QmcXixw+g36grr/4=;
b=wLfD1h4RPK2QMM1pUwXlYMElsvQeZyjxQcr2jo7vb6eK9OavgO0k3Kde0WwIlAzcaokT3uUe1X2dPl5G7qXNhJZQ+v1V7qAg0MW11m5RllM8qe5gd4YWiDM6ay9/Y0wSaFgl3r8DmeuP/ZDhIPKZ0wFT8Wtf0a01BhAfjBfy+14=
Received: from PAWPR08MB8958.eurprd08.prod.outlook.com (2603:10a6:102:33e::15)
by AM9PR08MB5907.eurprd08.prod.outlook.com (2603:10a6:20b:2da::12)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr
2024 10:52:31 +0000
Received: from PAWPR08MB8958.eurprd08.prod.outlook.com
([fe80::9561:db03:3f6c:5634]) by PAWPR08MB8958.eurprd08.prod.outlook.com
([fe80::9561:db03:3f6c:5634%5]) with mapi id 15.20.7409.042; Wed, 3 Apr 2024
10:52:31 +0000
Date: Wed, 3 Apr 2024 11:52:28 +0100
From: Alex Coplan <alex.coplan@arm.com>
To: binutils@sourceware.org
Cc: Nick Clifton <nickc@redhat.com>, Richard Earnshaw <rearnsha@arm.com>
Subject: [PATCH 0/3] arm: Fix encoding/disassembly of MVE vq[r]shr[u]n insns
Message-ID: <Zg007Nqm7i6+fOXc@arm.com>
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-ClientProxiedBy: LO4P265CA0200.GBRP265.PROD.OUTLOOK.COM
(2603:10a6:600:318::15) To PAWPR08MB8958.eurprd08.prod.outlook.com
(2603:10a6:102:33e::15)
MIME-Version: 1.0
X-MS-TrafficTypeDiagnostic:
PAWPR08MB8958:EE_|AM9PR08MB5907:EE_|DB3PEPF0000885B:EE_|AS8PR08MB9816:EE_
X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr
x-checkrecipientrouted: true
NoDisclaimer: true
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original:
fqDdJFT2XEy/xGILGZVBceHlUI/GhU3Hc9/xrTD/S99flWsqgH0aOVXc715RJd5n4xE/uGremLIXX2ZgH83lUykno7N9/oluzTErRCHIINYbQL7Z3vb14UMu6u1Mo6WOznZM501gCLep9xCDlSYFD//46qemgZ0MPXCL05w5jS82we0GAT3VFkTr2J5yj0LIqsm2kithDqPHsz8bbc1paCBgjPFdY/ZlmOTOz352PFuLOW7ytIA0B79cW+3xhihQf9HcCMQQ7jECd0oct2OR0W2PWjQXl+1iMCQXOVLnP90yR0BC6t1qGLfjMsG12A3f5hiQjVTt6Q+Zi04oLcpfPaXtWG98X6ZJwmnSVcNHmNAdzvX9LJTI4rWtYJvuGCAz9aGTbJe9ZlmOoJkQLSDYmUL9gUwix427SN2x0Keuk2fq6/30b9o5mUzvA0EFGzHX0A/gnJxIvoYCDJJzblUKdjrBfcTSPPlzoToxKKhd84xmlKKuc/nFPTiqSondV7WLe9NmZsQ1cRJ09LWbLPzvbXgRqZNvxYo1oiVS+qdXeaAXunRYjUgQ0n1oqTNQ5RKXiiRe2jggmXMHmZ4TyDjofTze7LyjhgWHLr++yRVGWn6thSVHlIBhg0DELQhm4V3NGELKYZnIWfQaDQpWlopQ18NAO7SJ6Kaa7CJTjinJKls=
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en;
SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAWPR08MB8958.eurprd08.prod.outlook.com;
PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT;
SFP:1102;
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5907
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped:
DB3PEPF0000885B.eurprd02.prod.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 2417a878-c9fb-4ae2-2586-08dc53cc31ca
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
0uwl84AITT5xHcLH2hUDNnMKhY2NvpaHNgmTCc/GwDUyXGGjvmrwKN91r536rMTta7YMNoK0lb7lb3scY56zJ2GHY4TpF1IoAfjH2cSaDPEzpRmocgQWxjEiGeTgvP8VnlCgRTyTH3rIJK6zAtEVOjyZNdASGMIWglii/P8EAMvWE8oNvjuCSmTlLiVE6qh1Tg6q3VFoln7Wht/cDHglmVNKR79OuaDfFtjE6zjmhwyMPzLrtj3KyOqcEttSz0nB9PX8LNO0X1eN4Miz6S877fHfeMS7g3ZNwVxe5aWUyFR7ACybvusb1bLDhvfXAGswyH9adJsDcT3J/jZicGtGmOzcSIafcsl7TVcGSPNmnlJYGKbXIxLDLNwKzDr7gUGX7oSHy8+oriC+JEh0f4Tyb0BRIFfoGF+UCkaFE9kVrTviBdnf9p+I1IVjEOameOamJPfPp/q2r/xBmt/N3cte8y4SPuI6hDgeT/bp0OnYNcBfrxmCt1TDLM4iqvYpgSm3ngcADlzsAJL+AktqVbMEauTBe0mcbbLZo3QcwgK6q7jxQOt4pn7WNKRHGoKFQz1zTQ/wbrPUg29c+kGj7tgFaGUIRP0lkqRxCKG1OCFMy3uKbl8sl48OdwouCkRgGMlZY/nRJH7nO4PuHF0/h0YHintbtG6ttX7i8PZxn5F9RPAruX3YDnl4rxj3m2wrXwTmL0nup7l7Zo4u8WFR8r+ob1HU6JjStkRr5ZsWzvsh4cb3BMcZGuR20FX005XGCI8R
X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:;
IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com;
PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE;
SFS:(13230031)(1800799015)(36860700004)(82310400014)(376005); DIR:OUT;
SFP:1101;
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 10:52:45.3533 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id:
2417a878-c9fb-4ae2-2586-08dc53cc31ca
X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:
TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123];
Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com]
X-MS-Exchange-CrossTenant-AuthSource:
DB3PEPF0000885B.eurprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9816
X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, FORGED_SPF_HELO, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_PASS,
SPF_NONE, TXREP,
UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: binutils@sourceware.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Binutils mailing list <binutils.sourceware.org>
List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>,
<mailto:binutils-request@sourceware.org?subject=unsubscribe>
List-Archive: <https://sourceware.org/pipermail/binutils/>
List-Post: <mailto:binutils@sourceware.org>
List-Help: <mailto:binutils-request@sourceware.org?subject=help>
List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>,
<mailto:binutils-request@sourceware.org?subject=subscribe>
Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org
|
| Series |
arm: Fix encoding/disassembly of MVE vq[r]shr[u]n insns
|
|
Message
Alex Coplan
April 3, 2024, 10:52 a.m. UTC
This patch series fixes the encoding of vqshr[u]n insns which are currently incorrectly encoded as the rounding vqrshr[u]n variants (i.e. with the LSB set). It also fixes the disassembly of both sets of insns (rounding and non-rounding) where we currently fail to properly decode the immediate. See patch 2/3 for a concrete of example of what goes wrong in both cases. The series is organised as follows: - 1/3 is a non-functional refactoring that should make 3/3 easier to review. - 2/3 fixes the encoding of the non-rounding vqshr[u]n insns. - 3/3 fixes the disassembly of the immediate for both sets of insns, updates an existing (incorrect) test, and adds a test for the non-rounding insns. Tested as a series on arm-none-eabi, no regressions. OK for trunk and backports? Thanks, Alex Alex Coplan (3): arm: Refactor condition for print_mve_shift_n arm: Fix encoding of MVE vqshr[u]n arm: Fix disassembly of MVE vq[r]shr[u]n gas/config/tc-arm.c | 8 +- gas/testsuite/gas/arm/mve-vqrshrn.d | 3616 +++++++++++++-------------- gas/testsuite/gas/arm/mve-vqshrn.d | 27 + gas/testsuite/gas/arm/mve-vqshrn.s | 40 + opcodes/arm-dis.c | 39 +- 5 files changed, 1908 insertions(+), 1822 deletions(-) create mode 100644 gas/testsuite/gas/arm/mve-vqshrn.d create mode 100644 gas/testsuite/gas/arm/mve-vqshrn.s
Comments
Hi Alex, > This patch series fixes the encoding of vqshr[u]n insns which are > currently incorrectly encoded as the rounding vqrshr[u]n variants > (i.e. with the LSB set). > > It also fixes the disassembly of both sets of insns (rounding and > non-rounding) where we currently fail to properly decode the immediate. > See patch 2/3 for a concrete of example of what goes wrong in both > cases. > > The series is organised as follows: > - 1/3 is a non-functional refactoring that should make 3/3 easier to > review. > - 2/3 fixes the encoding of the non-rounding vqshr[u]n insns. > - 3/3 fixes the disassembly of the immediate for both sets of insns, > updates an existing (incorrect) test, and adds a test for the > non-rounding insns. > > Tested as a series on arm-none-eabi, no regressions. OK for trunk and > backports? Patch series approved for mainline and backports. Please apply. Cheers Nick