From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2077.outbound.protection.outlook.com [40.107.6.77]) by sourceware.org (Postfix) with ESMTPS id D02453853564 for ; Wed, 10 May 2023 13:31:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D02453853564 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=/y/sOwHdeRBUJsV7E9xiXe66HcgDoASMkRbWvtu1UMM=; b=iT4Fj4m9HtjWPBl11ssJ9XH1NTO/P83CXuYlCOd84LIEoLcRC+TaZ+YFlHbLNeeI5KTLNzIVsFr0GGndJTMAhOTPlRpeFvfHuKNnonpo79FlTyp/rUoYZUA4/ymYK0B4C5CSSb2mRSI+Nmp0gmA3PHnm3eoXzPw/sH/KUyKEuI8= Received: from AM9P192CA0030.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:21d::35) by PAXPR08MB6590.eurprd08.prod.outlook.com (2603:10a6:102:152::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Wed, 10 May 2023 13:31:06 +0000 Received: from AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:21d:cafe::33) by AM9P192CA0030.outlook.office365.com (2603:10a6:20b:21d::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.19 via Frontend Transport; Wed, 10 May 2023 13:31:06 +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 AM7EUR03FT004.mail.protection.outlook.com (100.127.140.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.20 via Frontend Transport; Wed, 10 May 2023 13:31:06 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Wed, 10 May 2023 13:31:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b34c5f67819d248f X-CR-MTA-TID: 64aa7808 Received: from bc0c4d624d82.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 177CFB42-61F7-4585-9376-9566197F148A.1; Wed, 10 May 2023 13:30:58 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bc0c4d624d82.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 10 May 2023 13:30:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MvbtetZpBvG7ZRrGtBdS5SH7opXe5qYhleYZ1vQP/ETRNgPtiqGmNK67s10C8psmNcc5p70bz2aUDxEPCOpDLZIPoTTwktIC9tRvukishyn9ulunNa1WUcIgDeX62drFrrG0tVxKWbyGyd85OoNbzUhY3V0Mde2++4vhkPT3FREUMy0qzP6CGg981yfOodrNcN+RIBFSDXqPniwPTkBJKOgtkH1czYQTsltmxtmHVearArv/N512nb9iW4izI5VrB7MTK/Cp42Ahbs7cgDok3/2ZhyDIi0h70EUVWDnIO5xEM1+ltj+4/ojDnbZ3AohJ+H8uArWOhtFRyrqnCJQ66w== 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=/y/sOwHdeRBUJsV7E9xiXe66HcgDoASMkRbWvtu1UMM=; b=n4WmiXqOqhSZghjX1myCnHwfcJ2Ji54PizN7suwo0ALbS/l94+cLMhOmuCBqoisDqNPbwn6rSL55+mPF3ZH8LraIPDo+q371htUKhmVwmUEbH/2SQVVx+fdzTvUh66vuMnlJD3Hta8pLhkSrftnHD2vjxrGR1IYEiAZf0kL3jSz8jlM8+KVtG6nTlSWIIV2txDprAoPjPlBqF3Msqj7pRfDot+JZlGZuuAysSONnHG5ioy0w1laoulWLDUrDCPxX1JhYCvoQxJNENzAH3a+4EXUojPaAmXSwYkO2aVCsJIJgJ5JoL1mRhNH5OfieFWtJzrTEvHxmosjvZJCZUGWvcQ== 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=/y/sOwHdeRBUJsV7E9xiXe66HcgDoASMkRbWvtu1UMM=; b=iT4Fj4m9HtjWPBl11ssJ9XH1NTO/P83CXuYlCOd84LIEoLcRC+TaZ+YFlHbLNeeI5KTLNzIVsFr0GGndJTMAhOTPlRpeFvfHuKNnonpo79FlTyp/rUoYZUA4/ymYK0B4C5CSSb2mRSI+Nmp0gmA3PHnm3eoXzPw/sH/KUyKEuI8= Received: from AM8P190CA0003.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:219::8) by GV2PR08MB8319.eurprd08.prod.outlook.com (2603:10a6:150:b5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Wed, 10 May 2023 13:30:52 +0000 Received: from AM7EUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:219:cafe::40) by AM8P190CA0003.outlook.office365.com (2603:10a6:20b:219::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33 via Frontend Transport; Wed, 10 May 2023 13:30: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 AM7EUR03FT057.mail.protection.outlook.com (100.127.140.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6387.20 via Frontend Transport; Wed, 10 May 2023 13:30:51 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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; Wed, 10 May 2023 13:30:46 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 10 May 2023 13:30:46 +0000 Received: from e129018.arm.com (10.57.23.51) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Wed, 10 May 2023 13:30:46 +0000 From: Christophe Lyon To: , , , CC: Christophe Lyon Subject: [PATCH 13/20] arm: [MVE intrinsics] add unary_int32_acc shape Date: Wed, 10 May 2023 15:30:29 +0200 Message-ID: <20230510133036.596530-13-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230510133036.596530-1-christophe.lyon@arm.com> References: <20230510133036.596530-1-christophe.lyon@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT057:EE_|GV2PR08MB8319:EE_|AM7EUR03FT004:EE_|PAXPR08MB6590:EE_ X-MS-Office365-Filtering-Correlation-Id: a93b274f-2a8b-4a11-1b1b-08db515acef8 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: UFb1xiZ7MqRwfCksVXXw4rzqnd1eTQ8HVfckEbnZFYoxs7wrGOUDR8jkcSFklZd+2KM8ol43rgMy7JrSg4/BdN+rEWxH2cPALfPbW8GIDyJAdKbUu0pFAXk2V/cR5F9qil6mU3/rrj8qOPADdoGSxI2Gd+xW7QeXhiR1UOX6oTqMRigZIImx8qQBI+H48ZWNq7EaGKrvP/Nr/5g3RpSx+uhGs8Bvuecovcb9ZOjeCE3I1H/t81uPcpiZgYyAEw6h9Ar9d1CBgEBK48BJ76tmGfXkxFaou9zJj0Wskh/9UIIuOgs4OW9t3FzyWhWF9pEbDcH4mYa+QVqPpRTBCmcHgglvSktb+GLBcNrocvr6iE4rCdDRQP4HnoadKiS404afq8KW8GugkfgaFO7OUZj+0G7Xj/SPt3xKHTU9XQhN+hnfdmR/HLNI5Vggz0gIw8b40F9x91iup8SjngXtYCeB1VPdt/cUhqhow4MYqA5BhEEe/cpMPKlZ3+z8sHoZ77rdS1kDdANcG75cC7GYB/bC8gPwloAYBlfaSBvRPlnRLqTwc+fgLBkKVUSmDF1VDBRFllNrhfJ4Yk2M82m8eu7YKleAK8kIkVvD9wyMD3blhHOHBAN7TYu68OlGr9204i5Drrr1jJ5GmUCxhL3xPvcoEwleD4MnfOeBxJg+FT+b0NKOyh06qkJar3xveNft3bolUnv6mny2KMKVUYu8AtYVhg+Bdxek80KwJiYzsyume0I= 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)(396003)(39860400002)(346002)(376002)(136003)(451199021)(46966006)(40470700004)(36840700001)(40460700003)(426003)(336012)(4001150100001)(186003)(2616005)(2906002)(86362001)(36756003)(82310400005)(356005)(82740400003)(81166007)(36860700001)(47076005)(40480700001)(5660300002)(8936002)(8676002)(44832011)(70206006)(6636002)(70586007)(478600001)(4326008)(7696005)(6666004)(41300700001)(316002)(1076003)(26005)(110136005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8319 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4910f248-64ff-4887-c1c4-08db515ac65e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3dAABCxAmwQ/alijG632iKZX2eaUeb+ilGaV1mOay/7qH/41HDiGQ3hZdKPS9cJ5o2fxhyGEY02RuJvoqi17CNgP023kyLHNVDKVKd8aJZsH7o6thMRtCh8WatebsRdL2SBhglJgkIZKTbtUoC1ocqJSmqMz8j51uv2PpC+0Cwv/ODy3ZdpIpG9AcwgoBwB0XmrA+H7CXpqai2XCtrDmQhYlnqlTLBa8x0pHtAw+xlLDt1cXUIIpPUaLV53Ksk2cFBYb6yHYvLgYS38toTc7f9IKXBuSXnI5NGEefatsNvIJgDfP58oWcMFhVV87DHLZUL63GStTBWGFpRBDFiIBZWw5hPJmcgLalqDNXm4a8YkrXQKQ3OTuW32PIbFV2RdsfAxHa3aOFnMN1qYRUdynLI8kN2oioFnISaK1oVT1wHVBmmyc+mvihfwSQCMtycHCsxi7zzETmq27WHuMncwHReiEqeMTW19j5EMBWdUVobJxaPJX+gWzJSEOkn6CeeGsW7xjkO+RiBL/RGzjS8Wn1aS8Ex+MjvvDbVM7F5F7N/+/UFysrYLjZZTGJajFhlkuy+QQSbii+xGwgdNqCN4jGdEIEJEh+JoHlR2Ua22FmzMesDs2nYUKYTA9BGMKW/ECAE/ikjbpkNaD5dbKKpmXqmyg4k/sDGx3Wrz2fAQrbKiZDDQrxcmF3hbb/+LMymV0TP8mRjC0tEUVokGM5BxIgQ== 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)(136003)(39860400002)(346002)(396003)(376002)(451199021)(46966006)(40470700004)(36840700001)(6636002)(2616005)(4326008)(70206006)(86362001)(70586007)(2906002)(478600001)(44832011)(5660300002)(6666004)(7696005)(40460700003)(4001150100001)(1076003)(36756003)(81166007)(26005)(41300700001)(186003)(82310400005)(82740400003)(40480700001)(316002)(8936002)(8676002)(110136005)(336012)(426003)(36860700001)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2023 13:31:06.3705 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a93b274f-2a8b-4a11-1b1b-08db515acef8 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: AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6590 X-Spam-Status: No, score=-12.6 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 unary_int32_acc shape description. 2022-10-25 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-shapes.cc (unary_int32_acc): New. * config/arm/arm-mve-builtins-shapes.h (unary_int32_acc): New. --- gcc/config/arm/arm-mve-builtins-shapes.cc | 34 +++++++++++++++++++++++ gcc/config/arm/arm-mve-builtins-shapes.h | 1 + 2 files changed, 35 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index 0bd91b24147..bff1c3e843b 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -1121,6 +1121,40 @@ struct unary_int32_def : public overloaded_base<0> }; SHAPE (unary_int32) +/* [u]int32_t vfoo[_]([u]int32_t, _t) + + i.e. a version of "unary" which accumulates into scalar of type + int32_t or uint32_t depending on the signedness of the elements of + of input vector. + + Example: vaddvaq. + int32_t [__arm_]vaddvaq[_s16](int32_t a, int16x8_t b) + int32_t [__arm_]vaddvaq_p[_s16](int32_t a, int16x8_t b, mve_pred16_t p) */ +struct unary_int32_acc_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, "sx32,sx32,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_integer_immediate (0) + || (type = r.infer_vector_type (1)) == NUM_TYPE_SUFFIXES) + return error_mark_node; + + return r.resolve_to (r.mode_suffix_id, type); + } +}; +SHAPE (unary_int32_acc) + /* _t vfoo[_n]_t0(_t) Example: vdupq. diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h index f422550559e..fc1bacbd4da 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.h +++ b/gcc/config/arm/arm-mve-builtins-shapes.h @@ -55,6 +55,7 @@ namespace arm_mve extern const function_shape *const unary; extern const function_shape *const unary_convert; extern const function_shape *const unary_int32; + extern const function_shape *const unary_int32_acc; extern const function_shape *const unary_n; } /* end namespace arm_mve::shapes */ -- 2.34.1