From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2049.outbound.protection.outlook.com [40.107.7.49]) by sourceware.org (Postfix) with ESMTPS id 39BCD385770B for ; Tue, 9 May 2023 13:50:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 39BCD385770B 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=zhovTmGmqr5Q3SrbzQTxJiJqIvIkFfB1ZXVynNrc1s4=; b=GFLgm7xgMvb1MttCa56zxq903dE7/LUkU2wFu5wrM7TTU5NBRKrJqIdO9cQM5TfvEbANwruOovHD8WebAKhvCaoNaLKhej6eW6mwf6za+KiGoukMmuXm1Ki6sEtdsp1+1e+IqpXlR5ILAxawC2kICzDKntvcA3f/Dyz6oZVsaCw= Received: from DB7PR05CA0038.eurprd05.prod.outlook.com (2603:10a6:10:2e::15) by PA4PR08MB6303.eurprd08.prod.outlook.com (2603:10a6:102:e5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Tue, 9 May 2023 13:50:16 +0000 Received: from DBAEUR03FT050.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::75) by DB7PR05CA0038.outlook.office365.com (2603:10a6:10:2e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33 via Frontend Transport; Tue, 9 May 2023 13:50:16 +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 DBAEUR03FT050.mail.protection.outlook.com (100.127.142.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18 via Frontend Transport; Tue, 9 May 2023 13:50:16 +0000 Received: ("Tessian outbound 5bb4c51d5a1f:v136"); Tue, 09 May 2023 13:50:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1164042ba490871d X-CR-MTA-TID: 64aa7808 Received: from f5e3a4be06a5.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2C1F889B-30DB-401D-B213-85DA4BFEBDC4.1; Tue, 09 May 2023 13:50:08 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f5e3a4be06a5.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 09 May 2023 13:50:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dlcwpSCFel5EsoT11/BpZqcxNf2/LyYGpfGo13EsN8yPls6KkmReQjHpNY4O4H+SBc5Noy6BnNFLqvFVgE3jbDa8UeoAfKSCic9b+OOth3x16W7rXtptE121mHznw5Niv4Vx4/f5RbBkUHXX/XW1ep8hpQsvSOXFrQHas9vPACi3+23roIde5kb/nqdnrpbJLvzpePwuSmNfSJOtRJn0kckn2VKaVcb3oar/YXhj4lkPN++ktYu6v0NPyGQ7td39KeHJCeiWrK4+oBAD8czPYxc1OOj0bpnbcnkDEw9BMFQVkrj2W5mEPM+c1AO1tSNSImKra64xBRLNht6Swtwz7Q== 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=zhovTmGmqr5Q3SrbzQTxJiJqIvIkFfB1ZXVynNrc1s4=; b=Lh51ZfR4YsqjS8mU578IrojxhAWHcyLGGXSxd7RiXJT+H5Kh5CvNdQhSUmre9nKCGdiwNKTJtr2s9aAaHrP7mcMkJ9VsjOVFJYJPwXfU5prD9EqP9GGh60SyOq8HVg73fVhKBa0RsxhuQ0KhUfpgSrvOgDbvAk2sEYZKQE/SS63//w67oW57vBDADkumCP1U23Si1mFHfELUVFioBi7xs90zMM28nw1wtHbKiXw0m82gauT/77GK00aeROk8zF5h/Cric8x7nuL66ZsEY9QqRToTyjd6zx9Bc5e3TFF5Bl1NxSIBsBLScrY/csxW4HK5tYkHbGjS2TCCuUeMI1uqDw== 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=zhovTmGmqr5Q3SrbzQTxJiJqIvIkFfB1ZXVynNrc1s4=; b=GFLgm7xgMvb1MttCa56zxq903dE7/LUkU2wFu5wrM7TTU5NBRKrJqIdO9cQM5TfvEbANwruOovHD8WebAKhvCaoNaLKhej6eW6mwf6za+KiGoukMmuXm1Ki6sEtdsp1+1e+IqpXlR5ILAxawC2kICzDKntvcA3f/Dyz6oZVsaCw= Received: from PAXPR08MB6926.eurprd08.prod.outlook.com (2603:10a6:102:138::24) by AS8PR08MB6646.eurprd08.prod.outlook.com (2603:10a6:20b:350::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Tue, 9 May 2023 13:50:06 +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.6363.032; Tue, 9 May 2023 13:50:06 +0000 From: Kyrylo Tkachov To: Christophe Lyon , "gcc-patches@gcc.gnu.org" , Richard Earnshaw , Richard Sandiford CC: Christophe Lyon Subject: RE: [PATCH 01/16] arm: [MVE intrinsics] add binary_maxvminv shape Thread-Topic: [PATCH 01/16] arm: [MVE intrinsics] add binary_maxvminv shape Thread-Index: AQHZgnCPiTSgCxsE6UaIWuBExUecuq9R9PQg Date: Tue, 9 May 2023 13:50:05 +0000 Message-ID: References: <20230509121937.206183-1-christophe.lyon@arm.com> In-Reply-To: <20230509121937.206183-1-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_|AS8PR08MB6646:EE_|DBAEUR03FT050:EE_|PA4PR08MB6303:EE_ X-MS-Office365-Filtering-Correlation-Id: fc13f817-0dfa-4afa-f57c-08db5094522b 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: t/OpUIjssr/sqkASig1puV1oSXm6+EMekHAsWxD4IwKM7sE59j/gygGWHnUtJbOdsg6bBJHjgOSd+4b50cpBVY3ei8WgqF+mUdZJ3m7kxGqhr6R/BWHYbf72n3w9HI86kIGjI0xed0D6ERT1l6rR+p0QWYxIKt1sBhLdWWNOOiXhDNRSZtM6zXCzIAFWhecg81zL38Vpeo+6MaZDBAwNLzFP4fmtxIRdm1WF7UWgPPyMmzHOCx2bXX0H5q3oh/cH60oIIVgqE/fFcoj5y14qSyhXHxKnP+C619MhI5K+fgkhBBlPJXgY9PjG3mPM+QjEEL9smGMDHpW3dz8VmQBqOshIh5dB8LKAJIZHEtbH9n4iGQJBgwci707A1NUpImpMslbKTwYhKauKkoeT/lfmgTT4UnnlM+3bJ0QXzZyFVq4Zs+t6yWtRJJB5e6WjQlnz7kk9epa9jSLWJQKxZeMpTQEU2URXBBxPZ99l1Vab/kUbrahvI7BUTl+wgmzdzCoUBqdpsxF64nswtc9QdbDiykbEYeK3FB7P5D6AhMd0kMhfPIj/bKAkQHi0LYqFco9y6UnFLEWNlK8FwJZHp8ffR/guL/gmE3XchBedUiBudUWS6nsQ898RZ6xQGKjt4uvl 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)(366004)(136003)(396003)(39860400002)(376002)(346002)(451199021)(86362001)(110136005)(38070700005)(316002)(8676002)(7696005)(66446008)(66476007)(64756008)(41300700001)(76116006)(66946007)(71200400001)(66556008)(4326008)(6636002)(8936002)(5660300002)(478600001)(52536014)(9686003)(53546011)(33656002)(26005)(6506007)(2906002)(186003)(122000001)(38100700002)(55016003)(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: AS8PR08MB6646 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: DBAEUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7e71e62b-1f2f-4cdb-c557-08db50944baf X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3rqgsXwcXFAQ7T1x4qfLyel0eiUZBpqiAJQwlj1iYb7eqsu0yczKQA3wylrh4RwkUXnVY8jy6++rxx1SkcCPLOW0kn6DmsV0Ke7tpCxa4+CSjy2uf0o9sTjKsDsIJzxzFVFHzEm8EIQDYBjIQomAhkuUDDCLARxFpL865AVOUm9bCUkFiLtNcmYeEyB9CZjko5UujW6feD2rn/xXdRwuiIz++xSO8Q8giCqTkHtN/+tMgPIBhEOWd/I9Icg3N+WVNJfoJcJchzEwCQwBJOxq2VyMENf7w+lUdgPNe4WA4C0gX0BQg1Sj37cvIpZmK8EV8YaQbBqt3k+GTUPnBv3dLC5Ah1KlBCQzwSYgx63mLqWLRubY2bEanqLO1JDFsVvDa1GMoiuDbFBLXRPs5/VFLse7mlzq6y9xYLBjXZ2qxdGBUw9bCub3eId02m0gDPIHoy/tKc1gAU5P6WzlbHPfM5YhT48XdCzvVFmIcC7pe4+4ioICmlBvZdEYwcWr0POce4JgoxBt+JIfaV4Fz8dIB/k5cIMiTYn/YuU/FH13r9rV4LFef45wxTBTsADkXacHz5JTMgA0x9/Ag01BlUjjro0d80Ev1F0RGi5RIkLFDyjPAe12YecsN35kHusMVhfgIsf8OncCgBOjVL+IRWPEmiq8a8g3PzEQIhalwKyVUMgvE04vf0ZVQvGA+Svn20AI90miqPGCN009R/39UYj9rg== 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)(376002)(396003)(39860400002)(346002)(136003)(451199021)(40470700004)(46966006)(36840700001)(40460700003)(6636002)(4326008)(70586007)(478600001)(7696005)(70206006)(316002)(110136005)(86362001)(33656002)(47076005)(83380400001)(53546011)(6506007)(36860700001)(9686003)(26005)(336012)(2906002)(8936002)(5660300002)(52536014)(41300700001)(8676002)(82310400005)(55016003)(40480700001)(82740400003)(186003)(81166007)(356005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2023 13:50:16.6895 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc13f817-0dfa-4afa-f57c-08db5094522b 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: DBAEUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6303 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: Hi Christophe, > -----Original Message----- > From: Christophe Lyon > Sent: Tuesday, May 9, 2023 1:19 PM > To: gcc-patches@gcc.gnu.org; Kyrylo Tkachov ; > Richard Earnshaw ; Richard Sandiford > > Cc: Christophe Lyon > Subject: [PATCH 01/16] arm: [MVE intrinsics] add binary_maxvminv shape >=20 > This patch adds the binary_maxvminv shape description. This patch series is fairly mechanical (that's not to say simple!) and in l= ine with the other series in this area. You obviously know what you're doing here so I'm comfortable approving it. I did have a look at the patches individually and with the comment on patch= 06/16 addressed this series is ok for trunk. Thanks, Kyrill >=20 > 2022-09-08 Christophe Lyon >=20 > gcc/ > * config/arm/arm-mve-builtins-shapes.cc (binary_maxvminv): New. > * config/arm/arm-mve-builtins-shapes.h (binary_maxvminv): New. > --- > gcc/config/arm/arm-mve-builtins-shapes.cc | 30 +++++++++++++++++++++++ > gcc/config/arm/arm-mve-builtins-shapes.h | 1 + > 2 files changed, 31 insertions(+) >=20 > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/a= rm- > mve-builtins-shapes.cc > index 1d43b8871bf..19c3c47a20e 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.cc > +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc > @@ -401,6 +401,36 @@ struct binary_rshift_def : public > overloaded_base<0> > }; > SHAPE (binary_rshift) >=20 > +/* _t vfoo[_](_t, _t) > + > + Example: vmaxvq. > + int8_t [__arm_]vmaxvq[_s8](int8_t a, int8x16_t b) > + int8_t [__arm_]vmaxvq_p[_s8](int8_t a, int8x16_t b, mve_pred16_t p) = */ > +struct binary_maxvminv_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, "s0,s0,v0", group, MODE_none, preserve_user_namespace)= ; > + } > + > + tree > + resolve (function_resolver &r) const override > + { > + unsigned int i, nargs; > + type_suffix_index type; > + if (!r.check_gp_argument (2, i, nargs) > + || !r.require_derived_scalar_type (0, r.SAME_TYPE_CLASS) > + || (type =3D r.infer_vector_type (1)) =3D=3D NUM_TYPE_SUFFIXES) > + return error_mark_node; > + > + return r.resolve_to (r.mode_suffix_id, type); > + } > +}; > +SHAPE (binary_maxvminv) > + > /* _t vfoo[_t0](_t, _t) >=20 > Example: vmovnbq. > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/ar= m- > mve-builtins-shapes.h > index dd2597dc6f5..9debf1d8733 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.h > +++ b/gcc/config/arm/arm-mve-builtins-shapes.h > @@ -37,6 +37,7 @@ namespace arm_mve > extern const function_shape *const binary; > extern const function_shape *const binary_lshift; > extern const function_shape *const binary_lshift_r; > + extern const function_shape *const binary_maxvminv; > extern const function_shape *const binary_move_narrow; > extern const function_shape *const binary_move_narrow_unsigned; > extern const function_shape *const binary_opt_n; > -- > 2.34.1