From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2088.outbound.protection.outlook.com [40.107.105.88]) by sourceware.org (Postfix) with ESMTPS id A19613858C78 for ; Fri, 5 May 2023 08:40:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A19613858C78 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=vuV4cm930pgd0pay5drWqlVb3xUissuxr6m1DDyQiEM=; b=0SvHhNTXPNXypig3PeRPwWqfjAbCqpqoreqH//U7OkaVBw2AYwAsxD26UYw+27Wm0QZEy4XEtLrIDMYH1Sx9eqOKuLLC+xS7W4z1fQkPHTBUJbqgyocRFoamUAUaW1btQIZIzJZEmjSGWzRdmbjMPJIM2hZDDG0W6GxyHMIoIz4= Received: from DB6P192CA0024.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::34) by GV2PR08MB8511.eurprd08.prod.outlook.com (2603:10a6:150:b5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Fri, 5 May 2023 08:40:01 +0000 Received: from DBAEUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b8:cafe::ae) by DB6P192CA0024.outlook.office365.com (2603:10a6:4:b8::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:40:01 +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 DBAEUR03FT004.mail.protection.outlook.com (100.127.142.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:40:01 +0000 Received: ("Tessian outbound 945aec65ec65:v136"); Fri, 05 May 2023 08:40:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fe6fbed2742c0b5e X-CR-MTA-TID: 64aa7808 Received: from 55c6a483cb0e.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6ED600F4-9A12-48A4-AD6C-93474521618B.1; Fri, 05 May 2023 08:39:55 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 55c6a483cb0e.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 05 May 2023 08:39:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BTXzZDb1NrjQSaqGilpnIGJ7xp4jkwdKFjooDxVQdmDqxdcXegvVT/N0E2MP+MWiyNn+t97xfYkfyeAa84LTZV2yGqEEWA2sHVmSYPYVvlVEiXBHXqZ9Wi4KU3Gfwjlh5hvOtGwTrr8hK3VM9JE3UOmUmJGhZn+VIpZ8GvRd7djLp+QoxgcswIqVHJYbxXRbEktY7MX6zgplcztxoJRs37xjBJ1AcJTlcabHmWnKaN+2zkn05msf9rBEPon4lvla+IWXLujFAcz1VFeOJVuf9gARfYPh5DQldcynqql9318VdHiUTtI6BbFbLZLkdRftgf8/K+VQcdRDjiLdyDP6xw== 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=vuV4cm930pgd0pay5drWqlVb3xUissuxr6m1DDyQiEM=; b=EUpAJWDcC76AAPsy1eoPOoY7U9ellzA36lI3vBz63fIoR39/wGN88JVtWVhx0ADgYs6QJ0tLGDWzekEzpiHVpZ0ak7ZAJTcz0AEdr9ShB5I6CCPD8YK/z5AdDjyTfHSe4u5Co3kuuAqThBtixhqlpRd2l+lM2uVjOvraGwU02qfLTXj3l75b7lZcwFNngsVz1v2UundP2PBuZgGnAxDNMqQn/TGZZwGi41Dg6fKYyBWC45JFwFS72jOERLO+V9E7SNj61To9kqvWDccyCBHy8WctvN4Vtf1eX77aPQGTsrwIsCqcPFF9mMEQJSkmaUFReSRC8HQ4jpz1DvHRs5tjlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); 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=vuV4cm930pgd0pay5drWqlVb3xUissuxr6m1DDyQiEM=; b=0SvHhNTXPNXypig3PeRPwWqfjAbCqpqoreqH//U7OkaVBw2AYwAsxD26UYw+27Wm0QZEy4XEtLrIDMYH1Sx9eqOKuLLC+xS7W4z1fQkPHTBUJbqgyocRFoamUAUaW1btQIZIzJZEmjSGWzRdmbjMPJIM2hZDDG0W6GxyHMIoIz4= Received: from DU2PR04CA0299.eurprd04.prod.outlook.com (2603:10a6:10:28c::34) by DB9PR08MB9922.eurprd08.prod.outlook.com (2603:10a6:10:3d2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Fri, 5 May 2023 08:39:52 +0000 Received: from DBAEUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28c:cafe::ed) by DU2PR04CA0299.outlook.office365.com (2603:10a6:10:28c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:39:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT021.mail.protection.outlook.com (100.127.142.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6363.20 via Frontend Transport; Fri, 5 May 2023 08:39:52 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 5 May 2023 08:39:49 +0000 Received: from e129018.arm.com (10.57.22.112) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Fri, 5 May 2023 08:39:49 +0000 From: Christophe Lyon To: , , , CC: Christophe Lyon Subject: [PATCH 10/23] arm: [MVE intrinsics] add binary_lshift_r shape Date: Fri, 5 May 2023 10:39:17 +0200 Message-ID: <20230505083930.101210-10-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230505083930.101210-1-christophe.lyon@arm.com> References: <20230505083930.101210-1-christophe.lyon@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT021:EE_|DB9PR08MB9922:EE_|DBAEUR03FT004:EE_|GV2PR08MB8511:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b9c2d96-9054-4691-d76a-08db4d445125 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: sOaNV/Ppu+dayZl63VChRy7inc0Id4glNSNgUOuYVF8C5DA8EIfgEd80h9hy42UIhJXYFgWAxn4riAtlfrs8xRoH3XT++JBMHiWn5q/Xxjm6H3zeKedL73VU7Ak29rjgQNneeoHzLdIt87ky1cZyev3B41jSUlCoBgPEP8JlT7qPX6/U/GDwa8D+kVnykkeL2HIU2vtQAldvotct0wbKFChPwkmF3varREBSDZl5CEEbWnAOPObFoXRQStqrZy2B//PNAkKO9yWz4W8zJ25jbnN/PzqVGS/khzU8iHWl3LI8bFSI2q1TI3i+tp3wSYUwoRRqEpAcYAAIMgBR9dPPZDknevgRdYLb+G1aWHK+U5Fk1v3d/RoC1GQjKIEpWS8HF/KH0ZmoAHGKPDhgYZeim9l/JlXtYTon8gyPUjfCFujexjeSdFWho8Y9COWEx4vrC5dplEf9gK/LI7xzSy20uGjVlGu2kxZbq7GuvTz51W7+PIymFSvIQkELeRWCNQYLlqosEDUXbGrkQ8YhbXI6Hq8QRVE56aeGwAgC4X0NgH585qRoC0Y0JQBOPELNc4BE28xTS0NvwHslrAxtlcflWtPjgnIN/f0ii7F3frQVQCcoKPLjNSL/vqrGv/BkjZi1d/7ncsr6+h1jslkce+hlPaQ2asagkh7XE8hk6Py43H8hUp22//ZvZ1vi0nugPNrtpfIQyVacl2yYlImoEw1mABdlHrY/tLvYim2aqXNCTEhdBnPUhtgWyIeNz5Etxp3n9Li6KvTBIObTuWxohMqVoA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(346002)(376002)(39860400002)(451199021)(46966006)(40470700004)(36840700001)(40460700003)(81166007)(110136005)(36860700001)(186003)(356005)(44832011)(70586007)(6636002)(70206006)(8936002)(336012)(8676002)(41300700001)(36756003)(426003)(4326008)(316002)(2616005)(5660300002)(47076005)(86362001)(40480700001)(82740400003)(6666004)(2906002)(82310400005)(7696005)(478600001)(34020700004)(1076003)(26005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9922 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f16dcf70-224c-464f-c5cc-08db4d444b75 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WfLoX0ViLePLdEkW8dI6FPQkD7qx8JMOgEU+ywpS7jr+U2V8Jb0G2ashKzrW79H0Atm0fAQez1uVD4lmYBZvmPpWBGkXYjex9BaGGASNI4iCs6ZOHKgpCDYHrBJJ+nyU9w2BUU06dxZmEPtUc4dO6Q8rF2khtzl+TD0nWnWqWNm0S2d0QHXizNSr9lR65pxS2ZFkKTXzGSWJOojdn/0DSD2KHUoorZP7PKhLFQkmIs5UgBexKyezaYcGOXPPf5lI4leA0SC00tu93opyeehHgrsyL78o1xbzDWPf5RsWzqlEIuaPg0YZw4OxuLz+oOX0xcKsrZseyZig87W48Bq2JfZxt6v5ESDkT05j+rT6LdTjOrivDGQP6mHTOkhICC2eFD+PMq+kr08nU4j8oP5Sw6F4YCARktAmnfkD2FF2usOrZs4e+RDidHIGs3I6cdvSqSBtS16GNfGBORyUzGRrtPy3qxbuJkEmsXXgZZSVtjYoyZNd/J0pHf868EsPPiIhZj7a1gV4PCDh2J65TdmBu2KvGOITua5XGSgM7U5heojLv7efxu34VbyL79MvQ88n07Yee95p0G/+4d/R4ifgokCINfXyQG9oU5LAhv4w/Y0jBMs1hfz283aMWd65efJtM2eOt6aHCsq36W0wwticOuK8CMDRpq2YTfVJCV1qjR2ow+whxx/QD5knzLT2imxMjXd+A11KCgNjXbqDpfD6nE0gqnclFzyFr/oA4sVsoQM= 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)(39860400002)(346002)(396003)(136003)(376002)(451199021)(36840700001)(46966006)(40470700004)(426003)(47076005)(336012)(36860700001)(6636002)(86362001)(478600001)(70206006)(34020700004)(70586007)(7696005)(2906002)(2616005)(5660300002)(26005)(44832011)(186003)(40480700001)(110136005)(6666004)(36756003)(8676002)(40460700003)(8936002)(82740400003)(4326008)(81166007)(41300700001)(316002)(1076003)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 08:40:01.7450 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b9c2d96-9054-4691-d76a-08db4d445125 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: DBAEUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8511 X-Spam-Status: No, score=-12.4 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: This patch adds the binary_lshift_r shape description. 2022-09-08 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-shapes.cc (binary_lshift_r): New. * config/arm/arm-mve-builtins-shapes.h (binary_lshift_r): New. --- gcc/config/arm/arm-mve-builtins-shapes.cc | 41 +++++++++++++++++++++++ gcc/config/arm/arm-mve-builtins-shapes.h | 1 + 2 files changed, 42 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index e5093c3f29d..4ecb612ece5 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -576,6 +576,47 @@ struct binary_lshift_def : public overloaded_base<0> }; SHAPE (binary_lshift) +/* Used with the above form, but only for the MODE_r case which does + not always support the same set of predicates as MODE_none and + MODE_n. For vqshlq they are the same, but for vshlq they are not. + + _t vfoo_r[_t0](_t, int32_t) + + i.e. the standard shape for shift operations that operate on + vector types. + Example: vshlq. + int8x16_t [__arm_]vshlq_r[_s8](int8x16_t a, int32_t b) + int8x16_t [__arm_]vshlq_m_r[_s8](int8x16_t a, int32_t b, mve_pred16_t p) */ +struct binary_lshift_r_def : public overloaded_base<0> +{ + bool + explicit_mode_suffix_p (enum predication_index, enum mode_suffix_index) const override + { + return true; + } + + void + build (function_builder &b, const function_group_info &group, + bool preserve_user_namespace) const override + { + b.add_overloaded_functions (group, MODE_r, preserve_user_namespace); + build_all (b, "v0,v0,ss32", group, MODE_r, preserve_user_namespace, false, preds_m_or_none); + } + + tree + resolve (function_resolver &r) const override + { + unsigned int i, nargs; + type_suffix_index type; + if (!r.check_gp_argument (2, i, nargs) + || (type = r.infer_vector_type (0)) == NUM_TYPE_SUFFIXES) + return error_mark_node; + + return r.finish_opt_n_resolution (i, 0, type, TYPE_signed); + } +}; +SHAPE (binary_lshift_r) + /* xN_t vfoo[_t0](uint64_t, uint64_t) where there are N arguments in total. diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h index e472862ceef..25d9b60a670 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.h +++ b/gcc/config/arm/arm-mve-builtins-shapes.h @@ -36,6 +36,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_opt_n; extern const function_shape *const binary_orrq; extern const function_shape *const binary_round_lshift; -- 2.34.1