From patchwork Fri May 5 08:39:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 90352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp244426vqo; Fri, 5 May 2023 01:44:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YN5GKeHnwFhC39arXJKUPtRY085SzmsqBS3W2B280+4bihzqeqWBYQlMw3qsAFm4lu2ya X-Received: by 2002:aa7:c7da:0:b0:50b:5211:446f with SMTP id o26-20020aa7c7da000000b0050b5211446fmr721694eds.6.1683276272794; Fri, 05 May 2023 01:44:32 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d13-20020aa7d68d000000b0050c3b8fb2easi1119106edr.634.2023.05.05.01.44.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 01:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=M8blothU; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 670493881D04 for ; Fri, 5 May 2023 08:42:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 670493881D04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683276128; bh=EBVO3GKpNe4uphTFCwJe5RqRp5UR0uc2rEiNIAUD+Ik=; 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=M8blothU/BNi9ZDTgvvpStLayHzCnYh8xDcAttIk5o0CH5Eeiz2hDahlmixGpWe3u 8noi+7aC20Ox3HY5bD8SMXN/prlNMTwfT63C1B0qQQS+QR7tHPlfmBjjVvrcgHlaIN tNeWZ2aGg1hmLJsEAOW6CeeZ30a82r8vDfjXFS1M= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2042.outbound.protection.outlook.com [40.107.7.42]) by sourceware.org (Postfix) with ESMTPS id 6534C3858C54 for ; Fri, 5 May 2023 08:40:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6534C3858C54 Received: from DB9PR05CA0019.eurprd05.prod.outlook.com (2603:10a6:10:1da::24) by AS2PR08MB10376.eurprd08.prod.outlook.com (2603:10a6:20b:545::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.21; Fri, 5 May 2023 08:40:03 +0000 Received: from DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1da:cafe::4b) by DB9PR05CA0019.outlook.office365.com (2603:10a6:10:1da::24) 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:03 +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 DBAEUR03FT054.mail.protection.outlook.com (100.127.142.218) 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:03 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Fri, 05 May 2023 08:40:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5d4d62cc90cbd475 X-CR-MTA-TID: 64aa7808 Received: from ffd2c134a7bc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 902C7FDA-0D6D-4BBD-AFCE-E23D626D0B80.1; Fri, 05 May 2023 08:39:56 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ffd2c134a7bc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 05 May 2023 08:39:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eCnXIMtaKa+T1F0avVfOO8aMF236OhM2oBCW7wcCPqYalgXK7TgQYRZxC0AehHeFiPj+2Zh7AeN+Y5tHFWrxe8rvgd73IQNJZJVt9PrnHNSmXgESuzzjC+HHShbm12x0EEIfO2O+hgdlzsp1RChzkXe0pARvI7+Eb+LXXKmPNrxqybUzHy52UOiwh3MrRCJz8DSJLGPOxogel1joDFtxZ3JiNpcPIE1/g71lHUfNAeqc8+fkGs6MeXrt9R31ns3qA1Ok80rO/l0iHTyz9b7L8h0CUh+FDMC51h8Oyqw25yCaCwvtLZiZWs6e3Q12lFVXsiuWD1zR9OY6xdGQ3iLqsA== 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=EBVO3GKpNe4uphTFCwJe5RqRp5UR0uc2rEiNIAUD+Ik=; b=MNzrlrOlX/8oRG3nkUW/+XZiasuDLHNpNHJDLT/Xi0RUZDU8vUAThE7kyEnnztWGUAA05OSkYCC3CxW386WceBHMcvWWxNHPgCV7Dmi+f6WU+p4x6/ZKJXh9naqEKxseOXse4Yd48FB4TUtRpvROGG3wqxuqDSJSEftQeVRm4laBNDty29ITnNvGMA4caOWbVt0vRF0wLVwN2hDv+tFy7knO21R2R3eMxOdDfFq/FtUqHOw3xLfgjZCNaYjhl4mHFNG5CDewy0pN+DIgnYDi9RtfNohJjM8NGFCktoygJJXnNMJlBodq4lv4EcOzDjhV2U6lW+vn8U0No1JnJh2Pwg== 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 AS9PR07CA0007.eurprd07.prod.outlook.com (2603:10a6:20b:46c::15) by PAWPR08MB8887.eurprd08.prod.outlook.com (2603:10a6:102:33b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27; Fri, 5 May 2023 08:39:55 +0000 Received: from AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:46c:cafe::b3) by AS9PR07CA0007.outlook.office365.com (2603:10a6:20b:46c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.12 via Frontend Transport; Fri, 5 May 2023 08:39:55 +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 AM7EUR03FT024.mail.protection.outlook.com (100.127.140.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:39:55 +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; Fri, 5 May 2023 08:39:50 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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; Fri, 5 May 2023 08:39:50 +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 To: , , , CC: Christophe Lyon Subject: [PATCH 11/23] arm: [MVE intrinsics] add unspec_mve_function_exact_insn_vshl Date: Fri, 5 May 2023 10:39:18 +0200 Message-ID: <20230505083930.101210-11-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 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT024:EE_|PAWPR08MB8887:EE_|DBAEUR03FT054:EE_|AS2PR08MB10376:EE_ X-MS-Office365-Filtering-Correlation-Id: 74037439-ed42-4da3-90f0-08db4d445219 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: tx4v4U4M8NYTTvXf85q3mqdI8UppLNcOpAytKGqPWfY5ZvAXyZZ0ANIGd16JNCyYnJQi1RmeR8KHePCjRZKwUdPipjHiKZ/ZeLFtGc8qGNRFWx1KsKqfjt7Sn5CXcTagaYxOvtplkaqapBOJWgYX/PhPcCv4BGza7wUocpA6W8zZjVevwDZaL8vfOLOo0QNV/kYCmPC5599Qap+C79GmTa+bVg/KRZjlkiiVIypLUgBb0M/V2bqfse7IUwh65+PrpaweKO0dRJuto8oGBjh3oAYWAeoKWtKOP9DCS5ORBYd+A9yozHYJfOBxwsijkYj7cVmhfiFF7y/i598BVHjogjufjK2WwRU4bcFKLWd3v9qCWTgq/pFotuUf6c9vFkzTwPiMPxkVF6raGIm74tYgREBlrome7WBhoSNJycVT4YyvZUUHIbZ6ekH+Ay/rAjVtfelz7B2saOOG0pGsosbSz6DwjTbzZ7I9NkU7F5LgQcrEsSoVNXbv6VDL3tDtCKgL21is8luMZCzs5HH0fq8lKyHMoVqiWTLPEu6jHVjaJ4qWSHg57z9VtI2k2c0Zpmf1urdg5ZAvVpTiiyz/kHsOeJW18Br9TFijRn31QhszEhD3R14C05d6j2ZE6dYj6wddiGx1AvLgTGY4Xa1b9iaWt4aIszoq2LPgP3LHOUGQsc0it78Ps27WhZLBLzDS5FfBAOMUtS7YWEU6zjuFO7qq18MmmIFJV/bRxnqiARrbGAa2UrtRA7HMT4wLdtIUvv6+IEqvrKn/CKe/ml/Uwoujzg== 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)(376002)(39860400002)(346002)(396003)(136003)(451199021)(40470700004)(36840700001)(46966006)(40480700001)(36756003)(6636002)(4326008)(316002)(2906002)(86362001)(5660300002)(44832011)(8676002)(8936002)(110136005)(41300700001)(356005)(81166007)(40460700003)(36860700001)(70586007)(70206006)(82740400003)(478600001)(7696005)(6666004)(82310400005)(34020700004)(336012)(426003)(2616005)(1076003)(186003)(26005)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB8887 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 30f7fbae-c215-4291-423f-08db4d444d4a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rQguo7qx8O3tZD1j2C6CJtfHTawbDWzLct+YJHavqbnfhL5XPnIkM38KG7BKhwZ4ViZ7yzXn7+RO7LhjxWZveBWFmY1JdcT1PzijuYb6SznR/Itl40Fs96HquMKL6AZbkr79LuzNOynPNnyashdX5BlXNqV9yMbIPn3XkG3ToCZEkFt6kq2c9pabdS21g0j4E5Mxc1INAYlWwyizouAXwPSyeX8K7BJNT33B3IjyX1VvBOAUxPN2VcXIDdbavTmsxC+IZ59X9K2jgNCf3A4+sAeT3VFsHL+yy+YiaiK9AtddeS06JX8PWYCO95p7NYFBquxkj/ob2/WptcH3byhZEEKyq10DK0+7M2r/KG3H6WyTF1hlXtjycek7dKFK2WEnPT1BeLRV4P0miWxqe71TDWcwAhMZqI51OetobV/jv/m+g3VDZnqnZr60+eGeikfalL3HNaarUQXQTgrdqx71MNa91R8jmRqXkZsWB0whsIQCJnGnwjGgC8SObopWb4dLAoAYD8ocW9TEdNBkehAAh1NuwqvZ6ESzwA4OcxC0+BIwkwK7y2iDEo7FLGNRmIX5PMolX2bILidku7UGtFjIYu0xlWyGPBqjYzeK+IqVoDyCUndZixCowUIEz3S0W67kHo50vWUA9I8QDO7DIG2o72akxx/9nK2ZgA6LksaEW412DdierJAX5O7b24LOAEURnhswMSiRThnhf+Qb4m6urbNpLPQexGfV4bvCp0t4Rd0= 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)(136003)(39860400002)(346002)(396003)(451199021)(40470700004)(36840700001)(46966006)(70586007)(40460700003)(316002)(6636002)(70206006)(4326008)(47076005)(2616005)(426003)(336012)(478600001)(6666004)(1076003)(36756003)(86362001)(26005)(40480700001)(82310400005)(186003)(110136005)(7696005)(82740400003)(81166007)(34020700004)(36860700001)(44832011)(5660300002)(41300700001)(2906002)(8936002)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 08:40:03.3579 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74037439-ed42-4da3-90f0-08db4d445219 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: DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB10376 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?1765043100952746275?= X-GMAIL-MSGID: =?utf-8?q?1765043100952746275?= Introduce a function that will be used to build vshl intrinsics. They are special because they have to handle MODE_r. 2022-09-08 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-functions.h (class unspec_mve_function_exact_insn_vshl): New. --- gcc/config/arm/arm-mve-builtins-functions.h | 150 ++++++++++++++++++++ 1 file changed, 150 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-functions.h b/gcc/config/arm/arm-mve-builtins-functions.h index 5abf913d182..533fd1159c6 100644 --- a/gcc/config/arm/arm-mve-builtins-functions.h +++ b/gcc/config/arm/arm-mve-builtins-functions.h @@ -376,6 +376,156 @@ public: } }; +/* Map the function directly to CODE (UNSPEC, M) for vshl-like + builtins. The difference with unspec_mve_function_exact_insn is + that this function handles MODE_r and the related unspecs.. */ +class unspec_mve_function_exact_insn_vshl : public function_base +{ +public: + CONSTEXPR unspec_mve_function_exact_insn_vshl (int unspec_for_sint, + int unspec_for_uint, + int unspec_for_n_sint, + int unspec_for_n_uint, + int unspec_for_m_sint, + int unspec_for_m_uint, + int unspec_for_m_n_sint, + int unspec_for_m_n_uint, + int unspec_for_m_r_sint, + int unspec_for_m_r_uint, + int unspec_for_r_sint, + int unspec_for_r_uint) + : m_unspec_for_sint (unspec_for_sint), + m_unspec_for_uint (unspec_for_uint), + m_unspec_for_n_sint (unspec_for_n_sint), + m_unspec_for_n_uint (unspec_for_n_uint), + m_unspec_for_m_sint (unspec_for_m_sint), + m_unspec_for_m_uint (unspec_for_m_uint), + m_unspec_for_m_n_sint (unspec_for_m_n_sint), + m_unspec_for_m_n_uint (unspec_for_m_n_uint), + m_unspec_for_m_r_sint (unspec_for_m_r_sint), + m_unspec_for_m_r_uint (unspec_for_m_r_uint), + m_unspec_for_r_sint (unspec_for_r_sint), + m_unspec_for_r_uint (unspec_for_r_uint) + {} + + /* The unspec code associated with signed-integer, unsigned-integer + and floating-point operations respectively. It covers the cases + with the _n suffix, and/or the _m predicate. */ + int m_unspec_for_sint; + int m_unspec_for_uint; + int m_unspec_for_n_sint; + int m_unspec_for_n_uint; + int m_unspec_for_m_sint; + int m_unspec_for_m_uint; + int m_unspec_for_m_n_sint; + int m_unspec_for_m_n_uint; + int m_unspec_for_m_r_sint; + int m_unspec_for_m_r_uint; + int m_unspec_for_r_sint; + int m_unspec_for_r_uint; + + rtx + expand (function_expander &e) const override + { + insn_code code; + switch (e.pred) + { + case PRED_none: + switch (e.mode_suffix_id) + { + case MODE_none: + /* No predicate, no suffix. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q (m_unspec_for_uint, m_unspec_for_uint, e.vector_mode (0)); + else + code = code_for_mve_q (m_unspec_for_sint, m_unspec_for_sint, e.vector_mode (0)); + break; + + case MODE_n: + /* No predicate, _n suffix. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_n (m_unspec_for_n_uint, m_unspec_for_n_uint, e.vector_mode (0)); + else + code = code_for_mve_q_n (m_unspec_for_n_sint, m_unspec_for_n_sint, e.vector_mode (0)); + break; + + case MODE_r: + /* No predicate, _r suffix. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_r (m_unspec_for_r_uint, m_unspec_for_r_uint, e.vector_mode (0)); + else + code = code_for_mve_q_r (m_unspec_for_r_sint, m_unspec_for_r_sint, e.vector_mode (0)); + break; + + default: + gcc_unreachable (); + } + return e.use_exact_insn (code); + + case PRED_m: + switch (e.mode_suffix_id) + { + case MODE_none: + /* No suffix, "m" predicate. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_m (m_unspec_for_m_uint, m_unspec_for_m_uint, e.vector_mode (0)); + else + code = code_for_mve_q_m (m_unspec_for_m_sint, m_unspec_for_m_sint, e.vector_mode (0)); + break; + + case MODE_n: + /* _n suffix, "m" predicate. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_m_n (m_unspec_for_m_n_uint, m_unspec_for_m_n_uint, e.vector_mode (0)); + else + code = code_for_mve_q_m_n (m_unspec_for_m_n_sint, m_unspec_for_m_n_sint, e.vector_mode (0)); + break; + + case MODE_r: + /* _r suffix, "m" predicate. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_m_r (m_unspec_for_m_r_uint, m_unspec_for_m_r_uint, e.vector_mode (0)); + else + code = code_for_mve_q_m_r (m_unspec_for_m_r_sint, m_unspec_for_m_r_sint, e.vector_mode (0)); + break; + + default: + gcc_unreachable (); + } + return e.use_cond_insn (code, 0); + + case PRED_x: + switch (e.mode_suffix_id) + { + case MODE_none: + /* No suffix, "x" predicate. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_m (m_unspec_for_m_uint, m_unspec_for_m_uint, e.vector_mode (0)); + else + code = code_for_mve_q_m (m_unspec_for_m_sint, m_unspec_for_m_sint, e.vector_mode (0)); + break; + + case MODE_n: + /* _n suffix, "x" predicate. */ + if (e.type_suffix (0).unsigned_p) + code = code_for_mve_q_m_n (m_unspec_for_m_n_uint, m_unspec_for_m_n_uint, e.vector_mode (0)); + else + code = code_for_mve_q_m_n (m_unspec_for_m_n_sint, m_unspec_for_m_n_sint, e.vector_mode (0)); + break; + + default: + gcc_unreachable (); + } + return e.use_pred_x_insn (code); + + default: + gcc_unreachable (); + } + + gcc_unreachable (); + } +}; + } /* end namespace arm_mve */ /* Declare the global function base NAME, creating it from an instance