Message ID | 20250131171232.1018281-39-aleksandar.rakic@htecgroup.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.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 1F12F385770D for <patchwork@sourceware.org>; Fri, 31 Jan 2025 17:58:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F12F385770D Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=htecgroup.com header.i=@htecgroup.com header.a=rsa-sha256 header.s=selector1 header.b=HraLKOTY X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2070f.outbound.protection.outlook.com [IPv6:2a01:111:f403:260c::70f]) by sourceware.org (Postfix) with ESMTPS id 0643D3858416 for <gcc-patches@gcc.gnu.org>; Fri, 31 Jan 2025 17:14:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0643D3858416 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=htecgroup.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=htecgroup.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0643D3858416 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260c::70f ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738343682; cv=pass; b=D9u9HEmlf/c7PHycVZ23CkDHeknxDQ66AjumHlTGWzpvw5XrbzrSMfYPY6pwDdmcxHy83632aXFXUCvIyrkSdp11vK/n0UlANrLBP+5Hfeko3uWQn7UZsVirncC4c2JL9BMlhqfhZWlvHP9Zhpv/HvfSppkOD8hvBlVhNBAJMJE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738343682; c=relaxed/simple; bh=CehlbhSZCZDFZ61fki3EG8k4zcK/Azh0qQn5XjDREGI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Pk6PmNDbI+K4mRcKNoczNjChCviUSHcZEMhsfEpvhYGXPqUfwEqXLvtfOH/MtGC4u1zqrYC0yGlrqOTTRwfAfdX4L7mbPoBwAc+zZoudPs+vAdHt/IdMu2dlmdAOqz2FsRHpFLbpEB8em7inrSVDdhsuhJLZv0vhIqYUKmsg0lE= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0643D3858416 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IbbAJwSOQ5Laa07te1kqEgRGhPxkZlo3uCiyS6gZbs+wKkEQU7cVnHU9oTh9csmfrtBhBlYcic/PB7kRAFcRchNywOt7rxsTEQ+YuBCO2g31/4tuvZsG2HQWU45WeUtPd6iuwdjVtZlVT7ufXgDsUeR8h16UXaUH7We5OwiUI+sFHCP6eEaahU6a398JohbyHgkDNcJHtyIO0LsyKw2IoH0oFu3LgcbbAgsj4s0+7n7awQ201aFktOPHsmkphnq2wUJQ2yCK7/oqvjc+hVNz6XV3vSiPKYE6ms7PrhUS20duJf/7EOvpvX+VLCOn1G0k6UqlIZiWpGc0XWM1Witgcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=6DL+NGhX5fd2EhSws4L1zFkRWZiKemYb73skidAR4mA=; b=nuRWC9cxNQyatCLnhWOaQGqz58uKJE2/N1SeesiIui48lPBMTBKr3Drl7jjc478XmTM83SqvhBu+8uSQ+r0Ekgt6w+q8tgcVnT2McHdoFHQr2aSQPSu8W2hn0xVDz/WRK/4QwnpmXD4r/Oy2tn/50PVZEVmR2QOMxJxJrhKefv/mUxZPmlpWQUGr/DNejEwvn7zFV6sV9jOeAvQsMB5SGVqu0j+hKf0qV4x94iACe/xQY+PnCFY4wICsQHhSz6ksc7O35cHbsXc9CzHmcIfcl/NfQ3uVUn4SWVEfv9Ix9Sia9ftVZbF7XMNvfWZ0G1148uEUsdFD8bcdCFz/H4HtWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=htecgroup.com; dmarc=pass action=none header.from=htecgroup.com; dkim=pass header.d=htecgroup.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=htecgroup.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6DL+NGhX5fd2EhSws4L1zFkRWZiKemYb73skidAR4mA=; b=HraLKOTYi+W/AKHDqvXIyVKpX3uKmaHZMLGfYpjfP74dOzTL0JluENyroQc2SJUTAvYe9wfqpddp7qwDZ/18ZUywpAnFYOKpatRPNVX3tlrpjyibG2VkDwTN9MmVJUqNGyRoVvOLWjBq6fnH6VQ8+JvE3N5XvUjisI/2x5rs0Yq8qy2RK1OHgPAyRIBHY2UFzJmly4JHm8oy5zBOfoeozLlCKpXHNZlOwFJ6nnbresPpXydJGToD1qOy05iI/7soqVvAkaWl/6fVj6QZrw1SNiJcCEkMWQ1mHkoGJH8t0vkfqCnyqrg6shcLYhcdaY726Af6cJDmLrgDwE+xY+xZcw== Received: from PA4PR09MB4864.eurprd09.prod.outlook.com (2603:10a6:102:ed::17) by AS2PR09MB6367.eurprd09.prod.outlook.com (2603:10a6:20b:59d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.21; Fri, 31 Jan 2025 17:14:07 +0000 Received: from PA4PR09MB4864.eurprd09.prod.outlook.com ([fe80::a02b:9d5c:eca5:e024]) by PA4PR09MB4864.eurprd09.prod.outlook.com ([fe80::a02b:9d5c:eca5:e024%6]) with mapi id 15.20.8398.020; Fri, 31 Jan 2025 17:14:07 +0000 From: Aleksandar Rakic <aleksandar.rakic@htecgroup.com> To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> CC: Djordje Todorovic <Djordje.Todorovic@htecgroup.com>, "cfu@mips.com" <cfu@mips.com>, Matthew Fortune <matthew.fortune@imgtec.com>, Faraz Shahbazker <fshahbazker@wavecomp.com>, Aleksandar Rakic <aleksandar.rakic@htecgroup.com> Subject: [PATCH 37/61] Testsuite: Skip tests making calls to variables Thread-Topic: [PATCH 37/61] Testsuite: Skip tests making calls to variables Thread-Index: AQHbdAN49erJJxEVaES7SYM+O188nw== Date: Fri, 31 Jan 2025 17:13:38 +0000 Message-ID: <20250131171232.1018281-39-aleksandar.rakic@htecgroup.com> References: <20250131171232.1018281-1-aleksandar.rakic@htecgroup.com> In-Reply-To: <20250131171232.1018281-1-aleksandar.rakic@htecgroup.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=htecgroup.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4PR09MB4864:EE_|AS2PR09MB6367:EE_ x-ms-office365-filtering-correlation-id: 79dbf354-d7fd-4c99-ead6-08dd421aabbf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?460Z96PSgL+f9Od78ZUps73JYz?= =?iso-8859-1?q?XrmSlGbIdNtVc0cKsf8tBvxQrMwKvetyPinkFUKzV693/9iZCyHnEdrhLLPm?= =?iso-8859-1?q?O6TkUl0tS3u1oedp6zaD/hZEYot9lofCb9QMzb+zS/mxBr8dMmdtyTOK01Uj?= =?iso-8859-1?q?EmVdIwUWP7RytfH0dHafRYa+/FGTMy0jLHBKJ+m/apB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-1?q?F4OGOLaSQk/Z6+kfJsR7TChKxMDuyWzHUeuJW6qdm7ONfnU3BIYDo5IhlVBf?= =?iso-8859-1?q?DgNFvQ1PG1fWOH7S7AHWtedaKFX14pyI4sKGkObaTH56e+pD4ZOUUCFYzXpj?= =?iso-8859-1?q?1IuTx6ra0HuznGy4Cruw0TgEw9zJcMf49xFQJ8XAAQT7rO7OCo/Z71tBJgyh?= =?iso-8859-1?q?Yg7Ut2gS4FC3/kN1eWing5l/oKrFqiYnRiVkbpuNUxdnNLIatN2qtYdpJu17?= =?iso-8859-1?q?QTV3HXKRhTJY6PmPq/8X/HLO3kJShC0x9RE95bvKgzyoM1deizViYJeVfWEV?= =?iso-8859-1?q?uTQLwyXzPTjVjIXgki0U12R8oMFQAcSig7PP9L7Wo3MjeA0SAo+AWmpL6iER?= =?iso-8859-1?q?4gRwG1apEx5XMpyy0b6F9OwoQ2IUyxJCyBSHB5AuyoHDM/sr7j5VFYmzvPDJ?= =?iso-8859-1?q?16GVMM?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR09MB4864.eurprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?mfrBPyBAVn0xxuXYPO6EsFd?= =?iso-8859-1?q?a02d/yB9urnlKngQ+P3iyU+aYkVE6LbHyW723QB4GHFODf2OsZhE70n0fYG3?= =?iso-8859-1?q?gfCbpmlm8zH4WQjfGBiyM7jlcWOKJv0CClinZdFLIvol5LBGKo8eFlzdrdvl?= =?iso-8859-1?q?jDb71HMsxzPt36qOB1fmqyaXhtim6nvbK3C0Jhu+AsEjuGkuUVHNNOqvxYtX?= =?iso-8859-1?q?dShaCnwfH0JYToRpb/NF+346N5jAsNZUuH8OQ3gHZoKGZycUFCO0B0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so-8859-1?q?5ODt4gjQ4wo0roP0OJJOblkiAGL+tADKPTG06QrcBakNB7eNwSE8N25RgPEs?= =?iso-8859-1?q?uwf68SmMHZTs9pH2QFpnIyqFDPoy1S+6qPJSDObatgG2yhFS8hwsQfgj8SUf?= =?iso-8859-1?q?tthF+Ranzr761am7fqaTjn9tzxuTzWVWQf3fkni8comB4P23spfHB77FraXX?= =?iso-8859-1?q?wMvTzREbAdWG8phgkhtsFIXWgN2B2SlIietKRwUuJ5YByj0MaDhDT41/pLzT?= =?iso-8859-1?q?dyZhm88CbUlQUJ1QFoWDpn5aQwGYNcMMsjfTHwCw9Gr3KuRLYHncOEsRZKc1?= =?iso-8859-1?q?dk+W+/TrzL3bTYYNtjEdq6K8wDhqwzmr7/1AuV0rVx9CSenDlfq5g1azSzmj?= =?iso-8859-1?q?YFQkPH9wg4L4DnNErQlesCfkRy9PEQhIbYy5C/iJFSc4Ny5UE1EDxQBVMC75?= =?iso-8859-1?q?iEmb5yV942bwbDQpUgCUhhhhS/7WHXb7rH94lM1HtXN1QfYmGrmVJ+5vBVY9?= =?iso-8859-1?q?+jRrPfpxLF2BLufGbsWdr82mlYARl9OAGvqXLdoFFccOrzo4bTc0YyBU9Okw?= =?iso-8859-1?q?=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: htecgroup.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4PR09MB4864.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79dbf354-d7fd-4c99-ead6-08dd421aabbf X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2025 17:13:38.4910 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9f85665b-7efd-4776-9dfe-b6bfda2565ee X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IoRLFD4UyoNabUChaa4LxzM4bj2jTB7kR/dxIQlew1VBuGbphStdAiRn392C2G69QStisvcvo3dC7qRIENLTOCcM76BwAtmeBhlMA9gWyh8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR09MB6367 X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
Improve Mips target
|
|
Commit Message
Aleksandar Rakic
Jan. 31, 2025, 5:13 p.m. UTC
From: Matthew Fortune <matthew.fortune@imgtec.com> The compressed MIPS ISAs (microMIPS and MIPS16) require the LSB of an address to indicate which ISA to execute. The non-conformant patterns used in these tests cannot set the ISA mode bit and may attempt to directly call the variable which triggers an error from the assembler about calling a different ISA mode. gcc/testsuite/ * gcc.c-torture/compile/20020129-1.c: Skip for MIPS16/microMIPS. * gcc.c-torture/compile/pr37433-1.c: Likewise. * gcc.c-torture/compile/pr37433.c: Likewise. * lib/target-supports.exp (check_effective_target_mips_compressed): New function. Cherry-picked 97f2d5c6403c0cb8b65e059349ec18ffc9505bfd from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune <matthew.fortune@imgtec.com> Signed-off-by: Faraz Shahbazker <fshahbazker@wavecomp.com> Signed-off-by: Aleksandar Rakic <aleksandar.rakic@htecgroup.com> --- gcc/testsuite/gcc.c-torture/compile/20020129-1.c | 5 +++++ gcc/testsuite/gcc.c-torture/compile/pr37433-1.c | 5 +++++ gcc/testsuite/gcc.c-torture/compile/pr37433.c | 5 +++++ gcc/testsuite/lib/target-supports.exp | 10 ++++++++++ 4 files changed, 25 insertions(+)
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020129-1.c b/gcc/testsuite/gcc.c-torture/compile/20020129-1.c index c14ac07655e..d06bcb0976d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20020129-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20020129-1.c @@ -2,6 +2,11 @@ /* { dg-require-effective-target indirect_calls } */ +/* MIPS compressed ISAs require the LSB of an address to indicate which + ISA mode to use. This test cannot do that and raises an assembler + warning (binutils 2.29 onwards) of a branch to a different ISA. */ +/* { dg-skip-if "" { mips_compressed } } */ + typedef struct { long long a[10]; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37433-1.c b/gcc/testsuite/gcc.c-torture/compile/pr37433-1.c index 48a57b637d7..5948b3d740a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr37433-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr37433-1.c @@ -1,5 +1,10 @@ /* { dg-require-effective-target indirect_calls } */ +/* MIPS compressed ISAs require the LSB of an address to indicate which + ISA mode to use. This test cannot do that and raises an assembler + warning (binutils 2.29 onwards) of a branch to a different ISA. */ +/* { dg-skip-if "" { mips_compressed } } */ + void regex_subst(void) { const void *subst = ""; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37433.c b/gcc/testsuite/gcc.c-torture/compile/pr37433.c index 95d168afa2f..69e622132af 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr37433.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr37433.c @@ -1,5 +1,10 @@ /* { dg-require-effective-target indirect_calls } */ + +/* MIPS compressed ISAs require the LSB of an address to indicate which + ISA mode to use. This test cannot do that and raises an assembler + warning (binutils 2.29 onwards) of a branch to a different ISA. */ +/* { dg-skip-if "" { mips_compressed } } */ int regex_subst(void) { const void *subst = ""; diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index fd58682cae3..4f005c5a7d2 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1514,6 +1514,16 @@ proc check_effective_target_mips64 { } { }] } +# Return true if the target is using a compressed MIPS ISA. + +proc check_effective_target_mips_compressed { } { + return [check_no_compiler_messages mips_compressed assembly { + #if !defined (__mips_micromips) && !defined (__mips16) + #error !__mips_micromips && !__mips16 + #endif + }] +} + # Return true if the target is a MIPS target that does not produce # MIPS16 code.