Message ID | 20230828043243.2243555-1-yunqiang.su@cipunited.com |
---|---|
State | New |
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 884F0385840E for <patchwork@sourceware.org>; Mon, 28 Aug 2023 04:33:39 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2133.outbound.protection.outlook.com [40.107.255.133]) by sourceware.org (Postfix) with ESMTPS id 1CBA03858D33 for <binutils@sourceware.org>; Mon, 28 Aug 2023 04:33:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1CBA03858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cipunited.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jTzHmKVCBAGQEHR9CpiIHRwO+rl6p5QVehZn+DAS8sqNZnb0t1o3Tk9yyzYKGqxaEfuuCyizTiRJ5nGp0oMMo4p3qWuYJPQQixuJK1FmXu/mOkSagmvVvTVfPy57T3S6HcSgtNEXN48aBAKtOaENT0TsXTkoy23r3JQgMjcSCxeVK36clB4X+fT9ieaGHGPzj4hlnX1jw+SE8f5hGPDDExnK9BDNc9tXsDVWYAs9xs64vPS/Kt1ZUNXMH+eDhs59fNBn+1lx8RF6BVMekNeLAPC5/I3v8rHXGEN/4GbPmJ4u1tpAqdkfZ+nK97zr+5ebCA0IUmNeR2ZzdJLEvxjxQA== 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=nRqhyExmuGaCfCAuWXzaoD2PnGzi62v8Ip0m1QO8Osw=; b=hrhRV0gw4wQ11afu/gyrhVGyejmG9p+uYwv9HuXFopKA5ZWYgE59IbXgo/U8d5dkH3cR13eImJ4iP8Gooj7Ddkq+65k5XpgZdeIg3dujWkOXSEY0TXbN54rvZ1XCsl3zd9uUYLPaTGgWIm/drqmCkdzVEEgtFVdDZOHumLf/JCvGGYfTxdiovt3KhmmqGBNdzLXyPfYHOD/UoaBOiYlwWoFuLRg/f+fQqgpoLEn+Z1i82JdxxQ3mtq+w58M3d8hwBaQ4ZIOshRrQaNInPN4UuIL17U2yDiScR+d4s9NS8QkpXMdGHe0F/4FihPjN6kx1vQFvvRmG15Z2nIV2M2rHEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cipunited.com; dmarc=pass action=none header.from=cipunited.com; dkim=pass header.d=cipunited.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cipunited.onmicrosoft.com; s=selector1-cipunited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nRqhyExmuGaCfCAuWXzaoD2PnGzi62v8Ip0m1QO8Osw=; b=n98Vtw7r6ubu97CsxaP36vJeQU+aXUbMHLCxiP9NA/9rPkpCdDVb/UyW9xWhYgec7JAFDXgGHdc65l24i26ZstdYnTPvzB9i7OUSgXG4hzIMKnb26V8D4ukV8OLemsDTdSAuVudxkR1wouULx7QsrSXseNXqdYhPfbmsD5zpRYM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cipunited.com; Received: from TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) by SEZPR04MB7245.apcprd04.prod.outlook.com (2603:1096:101:188::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Mon, 28 Aug 2023 04:33:11 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735%3]) with mapi id 15.20.6699.034; Mon, 28 Aug 2023 04:33:11 +0000 From: YunQiang Su <yunqiang.su@cipunited.com> To: macro@orcam.me.uk Cc: binutils@sourceware.org, YunQiang Su <yunqiang.su@cipunited.com> Subject: [PATCH] GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples Date: Mon, 28 Aug 2023 00:32:43 -0400 Message-Id: <20230828043243.2243555-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0183.apcprd01.prod.exchangelabs.com (2603:1096:4:189::16) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|SEZPR04MB7245:EE_ X-MS-Office365-Filtering-Correlation-Id: df9dc355-4615-4f26-0aff-08dba77fe283 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +tMdYQ7Gz2pXNar/caav4mS/h7VQ4xC5LKNCZiKqZxe1cUzvCBFgiSil58ISGc5F6ovSLoDf/XwY+VdsKndY4tHvZFF21vpv9WkGXU99lqNaNEIH3+HHHTDgkAwSz0keKClm9diCB7tdiXfoSFB3/YQqu5hKy7wdJ8g/M6jEjXVhrjpyIMGfamwEtibUrqzQ1dNNZR9bD7OakI54uE4wB/MfndkRlDo3eFr847Y7SA3pPVjJhlnehSDXaQN3TGnL+y6CD/YaO8rnF4C1ziUfNDAjdJ99Qy2nv6/Krvjp5n3o2VF+ob2nxLKA+HzNQJKLh94su+l7+INDRcdCwM50TBukJHPd2QRCuXU8iaHlfa0k5TqimegjhBeX2TE7Rf2r/Z6RjAsxtXOo+rpIS7sZpzrMuAXtt/ivxaW0LpObV3RpBNoAptnYVgOmI/GmUbsd7eJ8gNFJqAZNAr7bHLGxUI+wvnEwVJA7B4tTdQJPtlb0hf+1pgSJ+RYD/woQC9RIbg46Nk89s3suxX1rhYMCnUt22M5w10KUGtV/X75QdKXUwSIBgyumIwrpkb55S/39Fha4yKKp020dHQkAt8xQsRCwQ0llO3PMceXEMvrZPz+jgVPtrezM8kDh507OEwjo X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB6117.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(136003)(346002)(39830400003)(366004)(451199024)(1800799009)(186009)(478600001)(83380400001)(26005)(1076003)(6486002)(2616005)(6512007)(107886003)(52116002)(6506007)(6666004)(86362001)(5660300002)(316002)(6916009)(36756003)(38350700002)(4326008)(38100700002)(66556008)(66476007)(41300700001)(8936002)(8676002)(66946007)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xBz1mdvEHVDUwWMXNsQwFiw7zJEhNyCO41avvSopM/k/ppinmSzTyr4MpqE/erfhDzP2sj1DDvvRdddCM58EyqxiNvXtXD4w0XADsbxlBSAhETWrgyZrk7LJXJGS4yupmyqn1zdCx6igu2jvY1gUv06vHo2S/GJbHZHvDJIM18cnJzhBDf/2Zux9nTTrt2Zl5mQ67HMWJkpkZ1FmePSZu3LfMA3U+NGIyhisZixsJGbvmJJevUDpewTZJ5VBpUDPodRJySZAu/A463tFfeu4oC6h2msNsa/JRhD5+zZBdjBhLvQ+hEe/YwSRAeMnYKT+vRNXFl+T5G6tKEuYti2u4jjUWGAtOBcVDJIfeAeRO5gljbiyVV8H0zllR6AUO3Jd4EVRVs0TTMWFCwP9EJn+frRc2+mrqpC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KZjQK/5awoYG/vyduRr7wBsjuc08MrM13FusXBDx/pFu8TZkK+vyokwdxjyWFS7xDSrOuUnRXf1mPejo4oe+EkDWPVzJ9uFkRl4lqrWQrK/4l8eXc8Z/fRg4A== X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: df9dc355-4615-4f26-0aff-08dba77fe283 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2023 04:33:10.9996 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e31cf5b5-ee69-4d5f-9c69-edeeda2458c0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: F2wQcEaYp1mpEe/R3WoNAXWrVVeGHu7r6MTP7wID9w8k3gsB9PyddFlx95Xnsmo7Tjy6d32743NtpnLlx9G2QItX4Ha9+E+9f588KxU762I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB7245 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham 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 Sender: "Binutils" <binutils-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Testing passed |
Commit Message
YunQiang Su
Aug. 28, 2023, 4:32 a.m. UTC
When gas is configured with --target=mipsisa32r2el-elf, module-defer-warn2 will fail: /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.s: Assembler messages: /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.s:2: Error: `gp=64' used with a 32-bit processor extra regexps in /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.l starting with "^.*:2: .*: `fp=64' used with a 32-bit.*$" EOF from dump.out FAIL: mips module-defer-warn2 The reason is that fp64 is allowed for mips32r2 and onward, so the error message `Error: `fp=64' used with a 32-bit fpu` won't emit. --- gas/testsuite/gas/mips/module-defer-warn2.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, 28 Aug 2023, YunQiang Su wrote: > When gas is configured with --target=mipsisa32r2el-elf, module-defer-warn2 > will fail: > > /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.s: Assembler messages: > /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.s:2: Error: `gp=64' used with a 32-bit processor > extra regexps in /binutils-gdb/gas/testsuite/gas/mips/module-defer-warn2.l starting with "^.*:2: .*: `fp=64' used with a 32-bit.*$" > EOF from dump.out > FAIL: mips module-defer-warn2 > > The reason is that fp64 is allowed for mips32r2 and onward, so > the error message `Error: `fp=64' used with a 32-bit fpu` won't emit. It has to be a set of separate tests then, because the very purpose of the test is to verify all the error messages required are there. Making any optional will defeat the purpose of the test and weaken coverage. It seems to me that the best course of action will be converting the test to the .d format first, which gives more control, and then split it into two, using #skip/#noskip tags as appropriate to select the right one for the respective targets. Maciej
diff --git a/gas/testsuite/gas/mips/module-defer-warn2.l b/gas/testsuite/gas/mips/module-defer-warn2.l index bd37c299434..95ceb647b94 100644 --- a/gas/testsuite/gas/mips/module-defer-warn2.l +++ b/gas/testsuite/gas/mips/module-defer-warn2.l @@ -1,3 +1,3 @@ .*: Assembler messages: .*:2: Error: `gp=64' used with a 32-bit.* -.*:2: .*: `fp=64' used with a 32-bit.* +#?.*:2: .*: `fp=64' used with a 32-bit.*