From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2069.outbound.protection.outlook.com [40.107.20.69]) by sourceware.org (Postfix) with ESMTPS id 125333858D1E for ; Tue, 2 May 2023 16:32:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 125333858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=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=ljAQeSEE1ikym7AusBSO7LsDnEaCeBKfoFJyuyMxngw=; b=O4CzoTHYKgYHfZ6ueHBF6gZMAamDJnb0WUpU8pzLn/kbwqWl+9mAVmJzpzgnwEhLT/sk2TW5atD2b0hNJ7msU7GYUjdAmfbdgHXnJut3U5YX//LuAgiYXWPMqIoj0SC/MWhQaopV5otezzOqauJ3j+yHKwpaU5N2iVBGjcRsbV0= Received: from AS9PR05CA0019.eurprd05.prod.outlook.com (2603:10a6:20b:488::9) by DU0PR08MB9728.eurprd08.prod.outlook.com (2603:10a6:10:444::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.30; Tue, 2 May 2023 16:32:34 +0000 Received: from AM7EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:488:cafe::b4) by AS9PR05CA0019.outlook.office365.com (2603:10a6:20b:488::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31 via Frontend Transport; Tue, 2 May 2023 16:32:34 +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 AM7EUR03FT018.mail.protection.outlook.com (100.127.140.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.21 via Frontend Transport; Tue, 2 May 2023 16:32:34 +0000 Received: ("Tessian outbound 3570909035da:v136"); Tue, 02 May 2023 16:32:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b7e2500796012814 X-CR-MTA-TID: 64aa7808 Received: from c4835041344b.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8F6CB0A7-1045-4B32-80DB-5D5D0BC6EE69.1; Tue, 02 May 2023 16:32:28 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c4835041344b.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 02 May 2023 16:32:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IzwMOV2yNsZj3AypcWSRKtV0Zu7rz397Guo9w5zAb6wFJqB+GBay6aLFJIdb5HeCMvLjWesgdbMfa1qMuY9z75CW/oZlefqq2kF8dmUD3Yw0W5eposhWWHseNHIO2M9Z3ouqewkyWsTL16gUCmluybEev3GKUArDzzaSy7ufbmLcO+P6ZdEUwZ5mv0CEwfPZTGKYAgw/UvHOomiXz4PrM9vceks1erXbJD8ol036cHne8uuIhgYWIwMSxuN3eyQwE5S8Fj37dBx8jyP98ApqzrZTHtnBUDiKQpWVmDoOujpZMq45T8wRDgh+28aDOValkQb3iNbF6gXgigsCuE9Ulw== 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=ljAQeSEE1ikym7AusBSO7LsDnEaCeBKfoFJyuyMxngw=; b=InR3X544t+MG8hS1WyipXORSKGYV2JiP+95zNha8uMB64247FgOxMwHM4eD774tOBN3cGJMznSUHhLMNs6FHwSJ0bUR/fRlpXxGvzp2Q2PHriEzJ8219F45W2c13RkrhU5+l/NdSDVi0KvcjLUOERlpYofOLRSvHnXn1YTcm8rwK5ZA4lU7YBn/cH4YIhRw7q5PiR8Pr9//IQ2NTjpmD/CQpf/1S0cbwfy91+sMFwiAICahFroKu2VfbBDaM2I7Tn9BzL3ROQGxwdrMcGnsSaKL8VxKj4oRb+N9oT6YupxgAnY97/uzkbqB7Teu6on82kmmhOER/1JCCIlSGWeuqyQ== 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=ljAQeSEE1ikym7AusBSO7LsDnEaCeBKfoFJyuyMxngw=; b=O4CzoTHYKgYHfZ6ueHBF6gZMAamDJnb0WUpU8pzLn/kbwqWl+9mAVmJzpzgnwEhLT/sk2TW5atD2b0hNJ7msU7GYUjdAmfbdgHXnJut3U5YX//LuAgiYXWPMqIoj0SC/MWhQaopV5otezzOqauJ3j+yHKwpaU5N2iVBGjcRsbV0= Received: from PAXPR08MB6926.eurprd08.prod.outlook.com (2603:10a6:102:138::24) by AS2PR08MB9762.eurprd08.prod.outlook.com (2603:10a6:20b:605::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Tue, 2 May 2023 16:32:26 +0000 Received: from PAXPR08MB6926.eurprd08.prod.outlook.com ([fe80::db73:66ba:ae70:1ff1]) by PAXPR08MB6926.eurprd08.prod.outlook.com ([fe80::db73:66ba:ae70:1ff1%3]) with mapi id 15.20.6340.031; Tue, 2 May 2023 16:32:26 +0000 From: Kyrylo Tkachov To: Christophe Lyon , "gcc-patches@gcc.gnu.org" , Richard Earnshaw , Richard Sandiford CC: Christophe Lyon Subject: RE: [PATCH 09/22] arm: [MVE intrinsics] add binary shape Thread-Topic: [PATCH 09/22] arm: [MVE intrinsics] add binary shape Thread-Index: AQHZcfxOgzFqna9VSEG1GQQESkxhzK9HQ1jQ Date: Tue, 2 May 2023 16:32:26 +0000 Message-ID: References: <20230418134608.244751-1-christophe.lyon@arm.com> <20230418134608.244751-10-christophe.lyon@arm.com> In-Reply-To: <20230418134608.244751-10-christophe.lyon@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: PAXPR08MB6926:EE_|AS2PR08MB9762:EE_|AM7EUR03FT018:EE_|DU0PR08MB9728:EE_ X-MS-Office365-Filtering-Correlation-Id: e02d7cca-d7fe-4c3e-1899-08db4b2ad599 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: 6gpgdV3EsPt3Y2EAIZifjIsKBWwwAWqdc+dg+JbXyDK6jtO8MfYajEGcFGoKjopcD4FcJYehtTgYMmURU6tnOG9FTJ0YD15jgtfjzfQwpqnMC5Xxx5EiOXWGojqxcxsHgJOPDGc4UTfiJJdDHafM/ivT3KZRax1VCq5ox4nE910NJbv+2i17O9/3yum20ebT/Eog1e+iOcqjUnOYKqq2q5uvuyWHiueL4F4I5706S/y4x3n7ZgCF/Kn4R+FyoxuU6SfqpEcHlmnDVExRIuyQMLq4GXx4y5+oVwAkflO6WXWCTnaw+okaIRzddl6KmnLbaFZ12DhjcLM9wwMC5C/hlmfj6RuaSHDMd0kL0TuUpdzjKEUvb475+v5gIgP1U7PqhwpuyqacAQFxfsoN8uZF1SDbMAzIx+yoHPBtagC691IE1Y0AKoHVvnDmpeQFSe6Lhd13NDCQ1HZvmQh8oK/aPBS3K4+/8FD4B/R4oJ463PmK3jOzZGNrGXlLJIz7keI9DwHYhh69rz9FOWM0QJF7o6bYvVq9gNnKcjLDMd+DE+EjOr63PU2aMndHdOm3NDSblkkaXB5OlYunTif+0fxkL6ernsAxu1QKcRlXbGc6A5zxSpim1/I/dj7vA3wjmNFQ X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR08MB6926.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(366004)(39860400002)(376002)(136003)(396003)(451199021)(8676002)(8936002)(122000001)(55016003)(41300700001)(38070700005)(71200400001)(316002)(4326008)(66556008)(66946007)(33656002)(76116006)(64756008)(66446008)(86362001)(66476007)(6636002)(110136005)(38100700002)(478600001)(7696005)(2906002)(52536014)(5660300002)(26005)(53546011)(9686003)(6506007)(186003)(83380400001);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9762 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 30821fb7-2ce9-451c-438e-08db4b2ad0af X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LOTlMK6ydXw78QOI8+7E1rtpES4/3hQgng4SHghe/b1n30zsIlFWAoQ7wILVEvw3jYPM/V3YLrcAAI131GkdeF3ww5lJsa0VEUxT3z0vRqaTVQdxtcETIPEaf0+J1mylq8+f7TSZtqugrrAaH3wCrVlek2t42G/mU05OOY3btKWQi1T10qiHaTWPIvVDmcAEvgPBnZ9ndBnsAHu/jiRmauiDo6BY1gf0L/KnQOilrWDyqmZ3S+23bnPPZIqWDa1T1etQKddM5eABqpI8W7tIpmxp0FMlKZ6XKJqrJ8LQemEyKbXve5T2eNgeYjpJ/Ie58y6vr9ntbxpOXFhkN3DF5xYDWoSim0NeFVRBzoSwZcNdWseg3BgvG0gNwBM2rDtgJWD0qmVf1YVftphyZjGA+WJJ2AxvO11NUvnWHcavSBt0HKVkoK6g1+8DUjfTS4iY3OamM9USZ7K7CS/h8afBg0rCEZYixN5NlA+UKUxc6LvG4Iln580NKJpcou2iR5p6SRsbV8FYuE8sAzHl0rpPF24CX9Oo9A52AHbfUxVMGWqsUYyv6bUFi4eKqF9DD8mckZsVoojFWk1YM2pQJB64XV7uWBdpvfz/KlHeucMmK1es5USofGD/AD0zGAMl4p4UcbGHzQ4unYakgQmLlPT6TgiczFS1AXQAifo6zvEju2xE7nd8ssPWcNOb+g5zDB6KvkPsErUMlOuBHA51mhkUlL8vhXMD8fwD/1UCPCzCpIo= 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:(13230028)(4636009)(346002)(376002)(396003)(136003)(39860400002)(451199021)(46966006)(40470700004)(36840700001)(186003)(70206006)(70586007)(356005)(82740400003)(316002)(4326008)(6636002)(40460700003)(478600001)(7696005)(82310400005)(34020700004)(110136005)(33656002)(86362001)(40480700001)(55016003)(9686003)(26005)(6506007)(8676002)(8936002)(2906002)(53546011)(336012)(5660300002)(36860700001)(81166007)(47076005)(41300700001)(83380400001)(52536014);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2023 16:32:34.6722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e02d7cca-d7fe-4c3e-1899-08db4b2ad599 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: AM7EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9728 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > -----Original Message----- > From: Christophe Lyon > Sent: Tuesday, April 18, 2023 2:46 PM > To: gcc-patches@gcc.gnu.org; Kyrylo Tkachov ; > Richard Earnshaw ; Richard Sandiford > > Cc: Christophe Lyon > Subject: [PATCH 09/22] arm: [MVE intrinsics] add binary shape >=20 > This patch adds the binary shape description. Ok. Thanks, Kyrill >=20 > 2022-09-08 Christophe Lyon >=20 > gcc/ > * config/arm/arm-mve-builtins-shapes.cc (binary): New. > * config/arm/arm-mve-builtins-shapes.h (binary): New. > --- > gcc/config/arm/arm-mve-builtins-shapes.cc | 27 +++++++++++++++++++++++ > gcc/config/arm/arm-mve-builtins-shapes.h | 1 + > 2 files changed, 28 insertions(+) >=20 > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/a= rm- > mve-builtins-shapes.cc > index 033b304060a..e69faae4e2c 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.cc > +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc > @@ -338,6 +338,33 @@ struct overloaded_base : public function_shape > } > }; >=20 > +/* _t vfoo[_t0](_t, _t) > + > + i.e. the standard shape for binary operations that operate on > + uniform types. > + > + Example: vandq. > + int8x16_t [__arm_]vandq[_s8](int8x16_t a, int8x16_t b) > + int8x16_t [__arm_]vandq_m[_s8](int8x16_t inactive, int8x16_t a, int8x= 16_t > b, mve_pred16_t p) > + int8x16_t [__arm_]vandq_x[_s8](int8x16_t a, int8x16_t b, mve_pred16_t= p) > */ > +struct binary_def : public overloaded_base<0> > +{ > + void > + build (function_builder &b, const function_group_info &group, > + bool preserve_user_namespace) const override > + { > + b.add_overloaded_functions (group, MODE_none, > preserve_user_namespace); > + build_all (b, "v0,v0,v0", group, MODE_none, preserve_user_namespace)= ; > + } > + > + tree > + resolve (function_resolver &r) const override > + { > + return r.resolve_uniform (2); > + } > +}; > +SHAPE (binary) > + > /* _t vfoo[_t0](_t, _t) > _t vfoo[_n_t0](_t, _t) >=20 > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/ar= m- > mve-builtins-shapes.h > index 43798fdde57..b00ee5eb57a 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.h > +++ b/gcc/config/arm/arm-mve-builtins-shapes.h > @@ -34,6 +34,7 @@ namespace arm_mve > namespace shapes > { >=20 > + extern const function_shape *const binary; > extern const function_shape *const binary_opt_n; > extern const function_shape *const inherent; > extern const function_shape *const unary_convert; > -- > 2.34.1