Message ID | 20250131171232.1018281-35-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 8D17D3857823 for <patchwork@sourceware.org>; Fri, 31 Jan 2025 17:52:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D17D3857823 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=GCNNYdSK X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on20702.outbound.protection.outlook.com [IPv6:2a01:111:f403:260d::702]) by sourceware.org (Postfix) with ESMTPS id B1A333858C52 for <gcc-patches@gcc.gnu.org>; Fri, 31 Jan 2025 17:14:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B1A333858C52 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 B1A333858C52 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260d::702 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738343660; cv=pass; b=SvYlPDS9yXOJ4UngKDofwMlq5P+se7vwejrqAc+DBb828SjpoyHxevAOLkUkLPgcTQJwYBdpoyXzimJ37iedEHpQxODFZ19/uCerw+jKcEBgUndIbsveeXBLzJtDGItVEd0VxeJkSKPq6PD6Guyz4BS8Fl5Lg+9cQQgnyLGRZi0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738343660; c=relaxed/simple; bh=AprHg6ulCs6hm/GQKvCTPI1MgSQJRL3l8Ua+tlAJqyw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ChQI4a2VUBEvcvyfEwN5qMg5UhGa/98zUJGwj2eH/QqtOyyM+bdadExWQ7NY4ay6KB3CX3QaVkri8EwQWpLSI2MOyPEw5P7MNSHH4RlvR6D3u92i8JnVoLgRDCLr/e0wuUe6wkhqB/hhNRLsbedWgf8dTZEz3hF4k1BBU1Z4a7g= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1A333858C52 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OrZH9QA0krPV/kiSusHKVYdbZpEOWDEiXKBGnBY2gN7ZNbQ7zdFL8JPpVG80x4KFvgRMrBEvxrsy3w9xdmIkPpVUV4BGX2EXTgLcenUzkPoxWuTi4gGIVVAEo1hW3+vxxEKMhHl++cdS9hWv2lEblYifnskf+zWfEV8CxRArZyYgJ2Zl2TECF/JeS1R8Kh3zRCkQAk9O40lC6ARniyzuszgG45fw/JqeBJpDHTIbtPWoinbFza3PdbdBg97DT0fRqVbhThXhCB5qAac6XXGGydyaTsY7NTzyWkbJzJp0M7dtYZPemxGAfMO1afWQ5/bivrh3YI+UzyJi0iMtaN8gCQ== 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=L5p46RLdG7cVwU8FJmMCvKUV/2MgKkjXIFyrOIB9pvg=; b=FfMXdfq+QmN1GwXHUMg0+oocyXz4NCvPd2whoMjsdd9vzk22Z+Q3uqyEGvjo5KZamL6GI1nUroz3WW8s/O/NqAor0WfwobzFRSpf2hqup+yNfEpfdzkuwhtwhLZlmot5H957FbWFf0yQZ+Een25Bu/uwcMunsuRO+8G2GXH9Aqfypcb5mHC5BqMctixoufV1RDfy/NmCny+/xxzKFVPDFg4MmSac9ywugjdQy74C27T8/JX0Cv/EFYcWkP0eFvy5tZJhZzIOqIgl3newWBcrcUB4XDDmN3n+V2VzlGghfgMhuhrQ1LMy/pBfYWQ/9r69p7zRTJpSNd6r4rJUxgOXiQ== 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=L5p46RLdG7cVwU8FJmMCvKUV/2MgKkjXIFyrOIB9pvg=; b=GCNNYdSKQ5Wkoqd9j5tV5/deLvlLoLWTseJcp+E0/rqfAwzkc2aDPCbSTI+Eccl4kbbVe6GLSp4CCM2m02XnWvShLFJO+c9JTrMyi4V6WjrwSsXZeeeuaTPG1FoN6PSbTrfKyQym67ohY6rLNZNj88RCVqsH9I86q5KTxS+ZQ6Gmnza4mgZUZ9Rhqqy8TES3p+n4Vt/L6xRvKcYr6Er7OvZbIvpG77EAYm9CEXklv6lcVCWXW+cQ5n2YBSpLLDuBV4KbgBXVNO39O4P5Nz0v2SO1jqBP+nXmzbw3COoIlHmj9RRpYFaVYa0FD0YfWQBgGUENCVcMzKBUUaeK6Ua1CA== 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:06 +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:06 +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 33/61] Testsuite: Fix insn-*.c tests from trunk Thread-Topic: [PATCH 33/61] Testsuite: Fix insn-*.c tests from trunk Thread-Index: AQHbdAN2txx3ZQJI9U23cHwTAAi5Lw== Date: Fri, 31 Jan 2025 17:13:36 +0000 Message-ID: <20250131171232.1018281-35-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: c52b6377-95df-4635-f633-08dd421aab1b 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?Nt++qNOItAb4hIlvLf7R9emthH?= =?iso-8859-1?q?XL/YLfVY1VkZsjZWRVgBBWQufA6L1Cft04tcddrbBYP5JPbb1r6ejrpWLz4a?= =?iso-8859-1?q?UETJxqiEDnNkDEmXN1gI238qabednjzZd5bj1QlmH6vq1pqxj3kvB9g743Mq?= =?iso-8859-1?q?Dq5tBJHZidzrU0O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84daimVcA8pqtXNB4?= =?iso-8859-1?q?Gq4xbQsGVTbzqsN7jqpyvIk36USaGNPD/hciPE/2L4fcvCs7FltPExrCvPMu?= =?iso-8859-1?q?EOo/tJXY296t5yMI+QkR4lVi2Nzhl0xm4pJV5O3R8dVwjjW8aU6KhhRbSEaD?= =?iso-8859-1?q?253TRhj8ESrDWSgKzUQfLyskhs8h+4hC0Sh68AK+hxGe+lhKj/KomyM95bpr?= =?iso-8859-1?q?zxIrAolH4uIz0AGRcfy/73N4+qGK71t/GhmVMBxXjftU7+PbPZfGrTaCx7hY?= =?iso-8859-1?q?60bX6fdpq6xyomsPyK2nzBQsJt5O2u3VNcGNOfSeuS94li651oCZsXojRXeU?= =?iso-8859-1?q?zy1Esr+03N1dvy2cokx/bjONiQ0/5uYWg8JKb6/jimluOatV5dWcUURIg1Ca?= =?iso-8859-1?q?dU?= 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?4W2amfWvyyQNuUv+IEjNnyj?= =?iso-8859-1?q?IBK6vl2VAy70Hecn9G8pkxWYMMkAr9Zm0WiLCZmyb9TBvCQRFVRklSGTYUuw?= =?iso-8859-1?q?j1D77YdNBfvpbvMVC60cohxFk1FSxaCWREAGrGFcTzzeVrptPNzrjy15Dfuq?= =?iso-8859-1?q?7mcRGm8bpn16rITuHU+E4l2bKdWqZ8eIa/6pHnTuw169FEL4Ap7vvg4xFQhg?= =?iso-8859-1?q?aZb/uH+74ifGrqc9GwUxfFgUDA2DulEEIx6vlucsdRBgNMcmny0kWXykVxK7?= =?iso-8859-1?q?1enOcOVrgPoamQtMjUEbFW9l14arjtvCMf9N0TiwJIuX82EZGRbQeqYcU3FS?= =?iso-8859-1?q?QDL19c9qsttMnUc72Zb0JLtJYB3KJUFdywg3oJlRUnOUg0fQHX3oFRdQRPYK?= =?iso-8859-1?q?YwABEemQghFpj2gjrMGBVt82VyzJFSDWdi7Uj8HJydxLBIMytO6hoP8i+UTl?= =?iso-8859-1?q?JHrHqUK5yCxtJ7mCNjopGQ8pEH6NM6e7fw0L57itrKzxHk4RUFCccie5KBv4?= =?iso-8859-1?q?4yNJ70/9+D8/9FZxDxt+6GOfji2cTRi0vb+P4XIjRs5fSvVWykgQjffp39YE?= =?iso-8859-1?q?cMrdN1URE6HLcSK8Y6Bm5pF/3uQ0gXeLXvwyYrT8f9u3xBCAP9SY0UVO/HCP?= =?iso-8859-1?q?D39tJ4hUXk4lfiMh0SmxiuUhp+MDzJlTKjCep9tied3yvRBThwjPRkRFnOO7?= =?iso-8859-1?q?XendSYWBLMPdzTona35bmUR6swUFCLhNDQAIOGfFsT40WiX88K8w92jZteEl?= =?iso-8859-1?q?VDIh43AQa/Y1ApxhkiCGZstq891/aL1om31L7d4l2Xj1K/rQIvtRfdGvFKl/?= =?iso-8859-1?q?Mys2AYSDiTHvcldQtwUFkpH94ewXuPJkBqZOvlr97YTlxkW3+ojPaX9rdQFg?= =?iso-8859-1?q?uzJjG5Wmu+yLgLemjCdAwII+A3pEeGG0xAfNRuhEC+8Caw4eNlOL4a4fWhEW?= =?iso-8859-1?q?BZBCWBi+aiOi3VqTDUs0pskQdFFJfy48RfAPoa7bcAntatWPwz8E/YDKOFjE?= =?iso-8859-1?q?fbPi9CkqUKBsCogvh8guZWcsoFuH9j6rhV2Sz1qK+4ne9WjtOLK6J3l2Fkpw?= =?iso-8859-1?q?Y33ZRMjr5P/+t0nypX5LnzsaUqifUC2KQzg53vbqCsL/2OwUwEdeQq5zcA8S?= =?iso-8859-1?q?m5CYqvRy0TsrSdMZpSy8EAUbZKJBlTpgLDtUpFXmnuFldVRbB/qguW4r1Yl/?= =?iso-8859-1?q?PcLoNSwitznkc8I4ogcNqgmQ9qXoAHXkHawlZP3KicoouBaQyb4EVB1fWBRi?= =?iso-8859-1?q?TMWMF7V6Uk/gQ4UNIsZVdArmwlrNFzGUtxlaUtjwQ7jESHOtKnGUF6NXszur?= =?iso-8859-1?q?xOxER6ZkodAdpMZ84iSrOl50Lo7z/hf/LbnYBmZmTBw0z7pC5MOVuyIe3fU2?= =?iso-8859-1?q?J8Dq8SyAPJiMwyTd0TZpTLwJ13i2j9UogJ+MDBL38ZiiT8xG0pTRL/Uy/1Wj?= =?iso-8859-1?q?so5tTPmIqQmvghoRiHnHmXzhvyk2OGONXBJW1waGoPlvVd0Ly4cymBZ1QgBx?= =?iso-8859-1?q?ksBi2FfMaE4TisghWqMmQjuNPLenx2ZKoI4fSbU56Nan/ZUDCuDXPML7Ty3W?= =?iso-8859-1?q?yvfYV491UNmVru9phxOkxbkidqXH5d1BuQwXcrKNSVtQidT3Elhhb+HyhRlP?= =?iso-8859-1?q?Z/1q3lNllJp4quifrcnS6Y0GbGIzzIo9nTr6TkXm25qJgJxOP4DPCF39iX0I?= =?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: c52b6377-95df-4635-f633-08dd421aab1b X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2025 17:13:36.5407 (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: IA9J/AzNLPgNOF+dZYT21DPNY5B0UKYiKje2dnsvs8llHaPvU83LDBafYgrnujs/Uj5CkkuH7Fdf6UKypNreUpQVeA2hj7JvQM/lOsOX39o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR09MB6367 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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> Ensure micromips test does not get confused about library support. Ensure insn-casesi.c and insn-tablejump.c can be executed. Move the micromips/mips16 selection into the file as per function attributes so that there is no requirement on having a full micromips or mips16 runtime to execute the test. gcc/testsuite/ * gcc.target/mips/insn-tablejump.c: Force o32 ABI as we do not really support n32/n64 microMIPS. Require micromips support but not the command line option. * gcc.target/mips/insn-casesi.c: Require mips16 support but not the command line option. Cherry-picked e7aaf244857638adeb9d1eb5207dbe2842cbe81d 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.target/mips/insn-casesi.c | 6 +++--- gcc/testsuite/gcc.target/mips/insn-tablejump.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/testsuite/gcc.target/mips/insn-casesi.c b/gcc/testsuite/gcc.target/mips/insn-casesi.c index 2b4c9f21986..03d13070460 100644 --- a/gcc/testsuite/gcc.target/mips/insn-casesi.c +++ b/gcc/testsuite/gcc.target/mips/insn-casesi.c @@ -1,7 +1,7 @@ /* { dg-do run } */ -/* { dg-options "-mips16 -mcode-readable=yes" } */ +/* { dg-options "(-mips16) -mabi=32 -mcode-readable=yes" } */ -int __attribute__ ((noinline)) +MIPS16 int __attribute__ ((noinline)) frob (int i) { switch (i) @@ -22,7 +22,7 @@ frob (int i) return i; } -int +MIPS16 int main (int argc, char **argv) { asm ("" : "+r" (argc)); diff --git a/gcc/testsuite/gcc.target/mips/insn-tablejump.c b/gcc/testsuite/gcc.target/mips/insn-tablejump.c index ecba154b9e0..271108a3ed6 100644 --- a/gcc/testsuite/gcc.target/mips/insn-tablejump.c +++ b/gcc/testsuite/gcc.target/mips/insn-tablejump.c @@ -1,7 +1,7 @@ /* { dg-do run } */ -/* { dg-options "-mmicromips" } */ +/* { dg-options "(-mmicromips) -mabi=32" } */ -int __attribute__ ((noinline)) +MICROMIPS int __attribute__ ((noinline)) frob (int i) { switch (i) @@ -22,7 +22,7 @@ frob (int i) return i; } -int +MICROMIPS int main (int argc, char **argv) { asm ("" : "+r" (argc));