From patchwork Tue Apr 18 13:46:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 84859 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2867919vqo; Tue, 18 Apr 2023 06:53:41 -0700 (PDT) X-Google-Smtp-Source: AKy350YU6t3LZHa5FY51YEXjPt1u7UXfpGb8E4N7f9zl/5GV8a7rSbv4aq9LYpdhUjge71q0uT0v X-Received: by 2002:a17:907:294f:b0:94a:6b4b:6b52 with SMTP id et15-20020a170907294f00b0094a6b4b6b52mr9071995ejc.76.1681826021174; Tue, 18 Apr 2023 06:53:41 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gg36-20020a17090689a400b0094f107677eesi7302858ejc.500.2023.04.18.06.53.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:53:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=LuQWcVaB; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6153A3854146 for ; Tue, 18 Apr 2023 13:50:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6153A3854146 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825826; bh=3wZ9A7A7WbfhhNiyJaPB92YALP/if7DucmmPyP72XZI=; h=To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=LuQWcVaB4BojBku8jiAHUQHKeUCeihdwtKPXovASUCYwsO9dVvKJXSJjVgSmV+BoY IxFRGRBRv+7scK4X1jbMNY3g/W7H1enETNg9wZL0Q9LrTxNIyX5+tu8Yk5LxIU5wmH 1yaAiLkMCuC2QiGVxXxZz9fXOb9W4uGuRQ+og6II= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2081.outbound.protection.outlook.com [40.107.6.81]) by sourceware.org (Postfix) with ESMTPS id 99D93385802F for ; Tue, 18 Apr 2023 13:47:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99D93385802F Received: from AM6P194CA0032.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::45) by GV1PR08MB7851.eurprd08.prod.outlook.com (2603:10a6:150:5e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 13:47:39 +0000 Received: from AM7EUR03FT058.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::fe) by AM6P194CA0032.outlook.office365.com (2603:10a6:209:90::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.47 via Frontend Transport; Tue, 18 Apr 2023 13:47:39 +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 AM7EUR03FT058.mail.protection.outlook.com (100.127.140.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:39 +0000 Received: ("Tessian outbound 3570909035da:v136"); Tue, 18 Apr 2023 13:47:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6dc3884fa0c47019 X-CR-MTA-TID: 64aa7808 Received: from d6f1863f5910.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8FC12A04-B859-42D0-B806-47D1A4BB459A.1; Tue, 18 Apr 2023 13:47:30 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d6f1863f5910.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MissoOCGDTfMl+yF8gVlhEB9OFEsjsHrCZYnCt1amJZST6CkVn5DXzEHj0mR1RwG1qZv6dbzoVYXtwy/JwF9QBsL6tXXzdgnOI113IMN0RxIt0uTG1yhTlnlv7yknGO7j9xiI5BtMPMPY7uTI2MveGQ5c9nJEVxEjUCe29zB4KOotZZFj3AiBlbhNnva/4qASSRGCxJ0q00vV8R6oIaWe8bkzgu0AuI291mXRjBw4290Z3rWcEzoT8A8RUCQMhlT3SqAjCYuQAsWBphk9MRcnS+BPQ4i0sUM4eje0PoBbmzLss9sl5pb3+nRQ5qAOnrmAqOLflj/alPykIU9t11Vsg== 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=3wZ9A7A7WbfhhNiyJaPB92YALP/if7DucmmPyP72XZI=; b=I5OAujUEjTSrRt3F2dtX0ztgyk21qJxxydOUSKNO4wO4DOjbL7pRNyhy4hK6LysCyduxjKXq/x6sGsBGNniRXE97MavC2Cx4J4MXQSWFlB8wA/3zvjcUZDv8InLBUThdrojPM7tutIoRD07/NlgiLuG5fAhqU+FTSeLc+5ptH/BJIn0SJ/SKmWHEcDWKVdlvoUKwBNi6tE7Zt/Woz8J05bf48BGZ75Ps8DYMCX1ytiS0DpTmyExwVmONphtviGuo2gqpy7qc3gjBimkA5O5dBHK4sZIu4YZq529urtJraEK1iy9VPS5aKIs2YQknGJqUSMbo412eBi2AjnEHQp871w== 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 Received: from AS8PR04CA0121.eurprd04.prod.outlook.com (2603:10a6:20b:127::6) by AM8PR08MB6500.eurprd08.prod.outlook.com (2603:10a6:20b:361::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20; Tue, 18 Apr 2023 13:47:25 +0000 Received: from AM7EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::47) by AS8PR04CA0121.outlook.office365.com (2603:10a6:20b:127::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.47 via Frontend Transport; Tue, 18 Apr 2023 13:47:25 +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 AM7EUR03FT060.mail.protection.outlook.com (100.127.140.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:25 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 18 Apr 2023 13:47:22 +0000 Received: from e129018.arm.com (10.57.54.117) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Tue, 18 Apr 2023 13:47:22 +0000 To: , , , CC: Christophe Lyon Subject: [PATCH 15/22] arm: [MVE intrinsics] add create shape Date: Tue, 18 Apr 2023 15:46:01 +0200 Message-ID: <20230418134608.244751-16-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418134608.244751-1-christophe.lyon@arm.com> References: <20230418134608.244751-1-christophe.lyon@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT060:EE_|AM8PR08MB6500:EE_|AM7EUR03FT058:EE_|GV1PR08MB7851:EE_ X-MS-Office365-Filtering-Correlation-Id: fd5c474e-1a74-4890-bbd1-08db401379aa 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: mNDWF9hZ9dZOysjFoW6azRxYpm3hRIRFDpTCvaz0xvf0mFyKaMlyC6GiJmIIbmu2NlOFpfwZtQVjsgn4s9oNb9LUbArTbmMAaR6I75JrzvQ9HxUYaFFceZKNwlStOqgTXyez5DM3j4jK1TEdKmVb7MCUur54DUoMZi6ops9ZPSRVSBpGYSaWwwRSGGoaSu9t6KO/eVLJBs0lG87G1iZ1ETLGmCfNFs8slTpf4aGkF2IO0IHa8qjnTznzKUPQJzHRyghBkVeJe/q5vXU8Vm9RXs6oliHAyfcYpSvUOVibAtcUw41DafCO4DleX72Vbq5Gc/GEOsem8SJE0iczWgopodHkaRDdZgM/Ma5Q3D6pNqI+lzDOEu7kbUSYqYlwc0Q0/cPb4QOxAIOMggFQ5p1Dfxq+L+gKbhAVF/7GXvYW4AszwedNrmakJzVfn3ff9VQjNYeTsmG1kX8vNsL/ZvxxtuLqxRlNEwlLyjOKkHlN1nZkdntboU1AS9TPhLtVSRAEh9ERICunMklYU1Oo9c8661vJ1Vg+zwJisAa3x0dKDytm3YJSRLWxfk1VQWU6RPjrtcPUJN2yy+q32xYxEA+VFE13ml9JhwSAYBcKdsR0pkwRLeO4c+Z6Uql/PhMx66hO22HrRzdui+OOQQEBeu+r//pMl/EuWFv6+pGQY4j9w93Z1lBdqQRHaD6n0nIiTSgreuugTYCSD0B8elVIeeHvhw== 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)(346002)(39860400002)(376002)(396003)(451199021)(46966006)(36840700001)(6636002)(110136005)(4326008)(316002)(70586007)(70206006)(478600001)(7696005)(6666004)(40480700001)(82310400005)(8936002)(8676002)(5660300002)(41300700001)(2906002)(44832011)(81166007)(356005)(82740400003)(86362001)(36756003)(426003)(336012)(2616005)(1076003)(26005)(186003)(36860700001)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6500 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT058.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 09b64ff2-053b-485e-75f4-08db40137147 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3wC6dkCZVg6kHc2JRAABOCWtLa/ZIvNwYTdW6K3Neqj9m306XVAXDn9gegPPAFbHP3lRQS9kQOz/h3t1EMVaoC4tKy6xxYcdKp4EnyWI8eub7M0QMBC6e/EnG+V5TV4Ahu0so81fwo8Pqs+Qu2xp7SeLE9SSbo9B3meRLRJkvyrd3gVt1zh7BnUscgLhF+Tjd5+I5tuDWlq/jJqHacERuqQrsZHfL8P/lx69DaRIVwZGsYVnxOvn+7rYDShBVuaGVYnLIIhA/AWnCCnMfM7ykxGsDH/LOT/+VTAcl7Ouro2qta0B4rkypl0QwpuyLCU9TkZrA9qUXJL+edwRQKiiIuXq/StfBtlbLwCWWCDvdeDpD89JMVWRelXGgCxZM0OS0Lgt1G6SfWCnC2DqZHcxt1gJy4ck90aS9b8OsxXB4Kwh0+KgjCWib+XI19zbDBMgBaxzGWekn6iMDfufMQhVYbxxoqHUpfSiec7xKWD8CWgYS5DrhSOAMkl1y1Oj+SekNlKsKjfSeqFqVqJEHDHoiWWxV8h00XKyz3h/Jqvhie3nQWGQNzIkja53Yp8r7GQmDtmz10ZovJhKuB/3mk13sFEiBOT1vAi7NO9Br0kjVTwWo36YWzKu5mtqgDm41pp32EKnUs6oW55NhAp9hi7OKnO90BPPNBrDRkWioSBgIwMvdMtpN6Xyq3SIgQC9eeIERYKPAipSUxYgfb3jaHC0xw== 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)(136003)(396003)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(40480700001)(40460700003)(70206006)(70586007)(4326008)(110136005)(82740400003)(478600001)(316002)(8676002)(5660300002)(44832011)(8936002)(6636002)(81166007)(41300700001)(186003)(2616005)(426003)(336012)(47076005)(36860700001)(6666004)(7696005)(26005)(1076003)(82310400005)(2906002)(86362001)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:39.2220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fd5c474e-1a74-4890-bbd1-08db401379aa 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: AM7EUR03FT058.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7851 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763522401861089613?= X-GMAIL-MSGID: =?utf-8?q?1763522401861089613?= This patch adds the create shape description. 2022-09-08 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-shapes.cc (create): New. * config/arm/arm-mve-builtins-shapes.h: (create): New. --- gcc/config/arm/arm-mve-builtins-shapes.cc | 22 ++++++++++++++++++++++ gcc/config/arm/arm-mve-builtins-shapes.h | 1 + 2 files changed, 23 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index 83410bbc51a..e4a42005852 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -458,6 +458,28 @@ struct binary_orrq_def : public overloaded_base<0> }; SHAPE (binary_orrq) +/* xN_t vfoo[_t0](uint64_t, uint64_t) + + where there are N arguments in total. + Example: vcreateq. + int16x8_t [__arm_]vcreateq_s16(uint64_t a, uint64_t b) */ +struct create_def : public nonoverloaded_base +{ + void + build (function_builder &b, const function_group_info &group, + bool preserve_user_namespace) const override + { + build_all (b, "v0,su64,su64", group, MODE_none, preserve_user_namespace); + } + + tree + resolve (function_resolver &r) const override + { + return r.resolve_uniform (0, 2); + } +}; +SHAPE (create) + /* [xN]_t vfoo_t0(). Example: vuninitializedq. diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h index 618b3226050..3305d12877a 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_opt_n; extern const function_shape *const binary_orrq; + extern const function_shape *const create; extern const function_shape *const inherent; extern const function_shape *const unary_convert;