From patchwork Tue Apr 18 13:45:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 67931 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 22547380DBFA for ; Tue, 18 Apr 2023 13:51:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22547380DBFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825913; bh=/eo8WNYc6aDLebaDLjRcacYl0ayufQFTlAO9DiAugwE=; 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=ehSZh0Yl7sRHAMstbuBpVf7OMbD3Z/OVgrY/WDa4hUmxVlFqasWHN8Hg7xpt/Q+KU 6ELUMpuaBgzT/M4ncbatUuSkYtXUPQAlFES+GuOEgfJqUbiZBu0/MCEU5br9yzZXJt Xwmr2RgmQAt4Fmqu9jGclV33Pbk32MIKepspLxUE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2087.outbound.protection.outlook.com [40.107.105.87]) by sourceware.org (Postfix) with ESMTPS id 170AD3857715 for ; Tue, 18 Apr 2023 13:47:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 170AD3857715 Received: from DUZPR01CA0284.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::22) by AS8PR08MB8039.eurprd08.prod.outlook.com (2603:10a6:20b:549::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Tue, 18 Apr 2023 13:47:31 +0000 Received: from DBAEUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4b7:cafe::7b) by DUZPR01CA0284.outlook.office365.com (2603:10a6:10:4b7::22) 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:31 +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 DBAEUR03FT055.mail.protection.outlook.com (100.127.142.171) 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:31 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Tue, 18 Apr 2023 13:47:31 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2ff407388bc8d40a X-CR-MTA-TID: 64aa7808 Received: from 001ccfbc2b27.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0FD07722-0403-4483-9A62-A8A5169E2264.1; Tue, 18 Apr 2023 13:47:24 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 001ccfbc2b27.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e+l0orgbLKLq2J0qCUeawyrTi07qawmt+rEuyh+IENuWVRehwrFpCBk7Y/lRdEzq7v1Yd69teZkM81VXWrrvw43nI8+HUHEZ2OME9Ko2XF9aN0UfBlKc88RZ4SWHST8N1vwpdkyUG6vw9szxsC84ONauq6W72kHXSdhGBx70UfNFM/bfVTn3N1p/TbPJhudbgElkVImBENJrGul18TpmtHTqW3b2VAGuKOClaHfE5dt/d8ES46vYSpRSvv1zcuYBR4TPicZo2LGYC24TjQQLNBTW4TEkGa8/+IkUJnOL4RPzSoxNWLFDg5+RFYOgwdvt76IfT4bqbOrJXy+ukYne1Q== 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=/eo8WNYc6aDLebaDLjRcacYl0ayufQFTlAO9DiAugwE=; b=lTQmKBqSeA0SYnXkBUpCbnIYphC/lv23JNKpyzQBb0M0JF48VJC+hUUHUkLAo14k9rUM3Wcw5MB0tqazbCuEmZUb782ZFZs9gjsRWYYG0HLAV826D0K9VKNVnztgIDdz52c/sZYN4Tuv7mk5CK9sCQZfUg+N33OhtZyiqrW8lrH+Vbn2i6iC/KMkQVBS+II3AOKDPKUz/mQ+UsL1hDNEEj1Ei8guXGmw/62k48G+9F5/lAhzF6ohukLbatbMaOz+9r31qppyFjo45WCwF8C8dTFcKlZwxT8NdsfpFIkmKsSmzMjeA2vwNgGNbvzgi3V81jZiW5ezZqvtjCxg4YZHpw== 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 AM5PR0502CA0014.eurprd05.prod.outlook.com (2603:10a6:203:91::24) by AS8PR08MB6328.eurprd08.prod.outlook.com (2603:10a6:20b:33e::14) 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:12 +0000 Received: from AM7EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:91:cafe::4f) by AM5PR0502CA0014.outlook.office365.com (2603:10a6:203:91::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.46 via Frontend Transport; Tue, 18 Apr 2023 13:47:12 +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 AM7EUR03FT062.mail.protection.outlook.com (100.127.140.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.16 via Frontend Transport; Tue, 18 Apr 2023 13:47:12 +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:11 +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:11 +0000 To: , , , CC: Christophe Lyon Subject: [PATCH 06/22] arm: [MVE intrinsics] add unspec_based_mve_function_exact_insn Date: Tue, 18 Apr 2023 15:45:52 +0200 Message-ID: <20230418134608.244751-7-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: AM7EUR03FT062:EE_|AS8PR08MB6328:EE_|DBAEUR03FT055:EE_|AS8PR08MB8039:EE_ X-MS-Office365-Filtering-Correlation-Id: 16e517d3-56aa-412f-0861-08db40137529 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: 1LeVsjmP3sFx0J2Fa5XBzIUnNsTjawjHCxzNQeXp9x44TFTiz5wPOhxxuM4teB6RxjIrYVopU9eSxrDIibX6AU3HE5xOMm/Scj5ACIBIKxwH5NkbTwM91lZTOLw/Zklr3IMR10wTyExuWVCHfo0qI7fIqEnnPZ9wY83I2z6F6wS7NyI49J2ZH5upmEE/C/xktEccFrHqVj2ExOFwhcV3NyAH35cjHisiBFZz7PhLmupRiu82uh8XX6i/x3JaI3xr36yusK9zeGaZHWZJfEdB3REoK6se39LE61R3BCKorOPQRdilbZhvWdvWKf+YPinlySlwU6kMktkdtM6aixplDdBHThnGnONazlj9bUfmoMQFp4EQ7m8nCh/4xI5P4HwhgCmAszdm8L6YyKonelFdmKiIKDNwWDKpxTi2OORaa3ZV9cJ5pc0TodTnu7lFhVPHRfrOgRLKwmks0dQ9tkqzSgsldBKy7HY0y36NR1g2gLA/jUC31/aRgFODV859fNjNpeDTVpBp/d/hDbMBJ4tnw8aztPPjkP5AcqQO/ezC/aGYpxB2+4hMidP1DifRhzhJUHFWfyu6iV12kx9Rs4bTFBgl71z937qQDeynxEswAcmBaxTBdmsZXk/M7z4tWSnc6JH1qC0nvnwo+ilWqwRZc9uW3XbEdKTSGWR3lyKqE7QLXiPjK4QOwcqir5U/D8WLnl9oHDyxTAY3vBiaGuN2CA== 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)(346002)(376002)(136003)(396003)(39860400002)(451199021)(46966006)(36840700001)(186003)(8676002)(8936002)(7696005)(36756003)(26005)(1076003)(2906002)(44832011)(40480700001)(5660300002)(82310400005)(316002)(478600001)(86362001)(4326008)(70206006)(70586007)(6636002)(110136005)(82740400003)(81166007)(2616005)(6666004)(336012)(426003)(36860700001)(356005)(47076005)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6328 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 40884e71-31a1-4e7b-ccf5-08db401369e8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cD/f2H4lryKpQBAfTXsStyD0xakDJCZaOp+yx9gWy2rNQvsCH91iIvCSDf0jYpnuzfdWdT6N4ymzIZ2sTBx8ygpL3+StRiV+VSl6pLvpaZJN9eK6DWUwqIcFB/IsXyyFQKkBkmybIIlMDEj/VLuK4bwRyxGCT5MYFI/mKPnmKCC5niuhu9wzG8U+B1abJR52YrCZdhmtj2ousOc0GEvxAIiHes+FmGuvgJtG3Ca/x44k6vaBYD/A+kOyCqN5x1o6QgY66aEyW2mZf0FFzOJuMPp9fWF3aWCaJT9oAfpz3VZDMeHZla1JKUj6TTz+0fjQFz6KAtgKeRJ24AQTcnGjSAv5Q+GWK84RqkjZFQ1zAxnN8R6PJu5QTWtWSzrYixjkhi0FHhlhFxXGLowDweZn39BQCrEfH4HlA4HKFWm7XsrI0iehQI5rGGDCK5yr55VF3hm585ymx38USg8Nt7C04MxamDVuBBeMWP/8VWeWpXrop8K98UOBMftGB+L8RGkc1dIsa24fFP48jdO396pPqbt+gkxQK62nGyx2I6pKIfYa5n6RmcHW7QcXG9cdlO0pY3X+rdJCGUClG0kvWaPnP1fLztITK1TEknpFb4HxRZBBrhtZa2U1Jlw0l45riI9DgTwsVCOyDqKZd4lvFy5+rBSn34hfsuC7QmxPXGcFWjlYOVr/+z0MWXZ/l78Bv+mdlvTX0Ver9sZ+DcFwD20k9g== 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)(39860400002)(396003)(136003)(451199021)(40470700004)(36840700001)(46966006)(8676002)(8936002)(41300700001)(5660300002)(44832011)(81166007)(2906002)(4326008)(316002)(70206006)(70586007)(6636002)(426003)(110136005)(86362001)(478600001)(82740400003)(6666004)(7696005)(40460700003)(186003)(82310400005)(1076003)(36756003)(40480700001)(336012)(26005)(36860700001)(2616005)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:31.7080 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 16e517d3-56aa-412f-0861-08db40137529 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: DBAEUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8039 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Introduce a function that will be used to build intrinsics which use RTX codes for the non-predicated, no-mode version, and UNSPECS otherwise. 2022-09-08 Christophe Lyon gcc/ChangeLog: * config/arm/arm-mve-builtins-functions.h (class unspec_based_mve_function_base): New. (class unspec_based_mve_function_exact_insn): New. --- gcc/config/arm/arm-mve-builtins-functions.h | 186 ++++++++++++++++++++ 1 file changed, 186 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-functions.h b/gcc/config/arm/arm-mve-builtins-functions.h index dff01999bcd..6d992b270b0 100644 --- a/gcc/config/arm/arm-mve-builtins-functions.h +++ b/gcc/config/arm/arm-mve-builtins-functions.h @@ -39,6 +39,192 @@ public: } }; +/* An incomplete function_base for functions that have an associated + rtx_code for signed integers, unsigned integers and floating-point + values for the non-predicated, non-suffixed intrinsic, and unspec + codes, with separate codes for signed integers, unsigned integers + and floating-point values. The class simply records information + about the mapping for derived classes to use. */ +class unspec_based_mve_function_base : public function_base +{ +public: + CONSTEXPR unspec_based_mve_function_base (rtx_code code_for_sint, + rtx_code code_for_uint, + rtx_code code_for_fp, + int unspec_for_n_sint, + int unspec_for_n_uint, + int unspec_for_n_fp, + int unspec_for_m_sint, + int unspec_for_m_uint, + int unspec_for_m_fp, + int unspec_for_m_n_sint, + int unspec_for_m_n_uint, + int unspec_for_m_n_fp) + : m_code_for_sint (code_for_sint), + m_code_for_uint (code_for_uint), + m_code_for_fp (code_for_fp), + m_unspec_for_n_sint (unspec_for_n_sint), + m_unspec_for_n_uint (unspec_for_n_uint), + m_unspec_for_n_fp (unspec_for_n_fp), + m_unspec_for_m_sint (unspec_for_m_sint), + m_unspec_for_m_uint (unspec_for_m_uint), + m_unspec_for_m_fp (unspec_for_m_fp), + 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_n_fp (unspec_for_m_n_fp) + {} + + /* The rtx code to use for signed, unsigned integers and + floating-point values respectively. */ + rtx_code m_code_for_sint; + rtx_code m_code_for_uint; + rtx_code m_code_for_fp; + + /* 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_n_sint; + int m_unspec_for_n_uint; + int m_unspec_for_n_fp; + int m_unspec_for_m_sint; + int m_unspec_for_m_uint; + int m_unspec_for_m_fp; + int m_unspec_for_m_n_sint; + int m_unspec_for_m_n_uint; + int m_unspec_for_m_n_fp; +}; + +/* Map the function directly to CODE (UNSPEC, M) where M is the vector + mode associated with type suffix 0, except when there is no + predicate and no _n suffix, in which case we use the appropriate + rtx_code. This is useful when the basic operation is mapped to a + standard RTX code and all other versions use different unspecs. */ +class unspec_based_mve_function_exact_insn : public unspec_based_mve_function_base +{ +public: + CONSTEXPR unspec_based_mve_function_exact_insn (rtx_code code_for_sint, + rtx_code code_for_uint, + rtx_code code_for_fp, + int unspec_for_n_sint, + int unspec_for_n_uint, + int unspec_for_n_fp, + int unspec_for_m_sint, + int unspec_for_m_uint, + int unspec_for_m_fp, + int unspec_for_m_n_sint, + int unspec_for_m_n_uint, + int unspec_for_m_n_fp) + : unspec_based_mve_function_base (code_for_sint, + code_for_uint, + code_for_fp, + unspec_for_n_sint, + unspec_for_n_uint, + unspec_for_n_fp, + unspec_for_m_sint, + unspec_for_m_uint, + unspec_for_m_fp, + unspec_for_m_n_sint, + unspec_for_m_n_uint, + unspec_for_m_n_fp) + {} + + rtx + expand (function_expander &e) const override + { + /* No suffix, no predicate, use the right RTX code. */ + if ((e.mode_suffix_id != MODE_n) + && (e.pred == PRED_none)) + return e.map_to_rtx_codes (m_code_for_sint, m_code_for_uint, + m_code_for_fp); + + insn_code code; + switch (e.pred) + { + case PRED_none: + if (e.mode_suffix_id == MODE_n) + /* No predicate, _n suffix. */ + { + if (e.type_suffix (0).integer_p) + 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)); + else + code = code_for_mve_q_n_f (m_unspec_for_n_fp, e.vector_mode (0)); + + return e.use_exact_insn (code); + } + gcc_unreachable (); + break; + + case PRED_m: + switch (e.mode_suffix_id) + { + case MODE_none: + /* No suffix, "m" predicate. */ + if (e.type_suffix (0).integer_p) + 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)); + else + code = code_for_mve_q_m_f (m_unspec_for_m_fp, e.vector_mode (0)); + break; + + case MODE_n: + /* _n suffix, "m" predicate. */ + if (e.type_suffix (0).integer_p) + 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)); + else + code = code_for_mve_q_m_n_f (m_unspec_for_m_n_fp, 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).integer_p) + 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)); + else + code = code_for_mve_q_m_f (m_unspec_for_m_fp, e.vector_mode (0)); + break; + + case MODE_n: + /* _n suffix, "x" predicate. */ + if (e.type_suffix (0).integer_p) + 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)); + else + code = code_for_mve_q_m_n_f (m_unspec_for_m_n_fp, 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