From patchwork Tue Apr 18 13:46:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 84852 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2865636vqo; Tue, 18 Apr 2023 06:49:51 -0700 (PDT) X-Google-Smtp-Source: AKy350btR1x2D8N8R8XnvfTeem7vYuQh0sVA0cecDwPuWbsDI6HWeQIrY6TPCvqErXlgZpa4w5fz X-Received: by 2002:a17:906:4d50:b0:94e:f8fe:78c with SMTP id b16-20020a1709064d5000b0094ef8fe078cmr9721136ejv.72.1681825791662; Tue, 18 Apr 2023 06:49:51 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id vf13-20020a170907238d00b0094f282eac9dsi6287476ejb.19.2023.04.18.06.49.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:49:51 -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=lewMHtMq; 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 2DB9D385ED7A for ; Tue, 18 Apr 2023 13:48:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DB9D385ED7A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825725; bh=kS6MvqdlofvhJT3/J8IqvNwoPw8ZO03um6AbA6v5s/w=; 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=lewMHtMqFTgecN71q3QJcrWri/M+SpbrfsXLVsSXi1pAPhISUwJ2BufNE/pGpM6En cu411gn9IiNnDBeG6ZhszANC0kEBrj+P8GzUjqNKvAYwTpq0Kr1e4j5fZ+mRal+PA1 xUl0h2w4RG1TzbOGEAgIagZdrpAa0T7Ws6ORZo1E= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2080.outbound.protection.outlook.com [40.107.15.80]) by sourceware.org (Postfix) with ESMTPS id 84DAC385734D for ; Tue, 18 Apr 2023 13:47:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84DAC385734D Received: from DU2PR04CA0323.eurprd04.prod.outlook.com (2603:10a6:10:2b5::28) by PAVPR08MB9038.eurprd08.prod.outlook.com (2603:10a6:102:32d::9) 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:33 +0000 Received: from DBAEUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b5:cafe::26) by DU2PR04CA0323.outlook.office365.com (2603:10a6:10:2b5::28) 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:33 +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 DBAEUR03FT018.mail.protection.outlook.com (100.127.142.74) 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:33 +0000 Received: ("Tessian outbound 8b05220b4215:v136"); Tue, 18 Apr 2023 13:47:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 040e7ea423979a3a X-CR-MTA-TID: 64aa7808 Received: from 77db1c37c802.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8EF41C98-7267-432D-8513-F73ECE8FEDDD.1; Tue, 18 Apr 2023 13:47:26 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 77db1c37c802.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WZQ/iqQhCFO2dx7szTFZnqRkOcSqdHoyX7rvqFtz9aXWIJ8rSmx51buCdjNfTI0xA1RtZxobDPdT4GqX/gUDN6+yeD9iM0h6jdkwNUPJiX5IVvgSxwONGV2Np0+4e+jIcuqbNwdX8mDoAbLCBpn4vUk6BuqVC715QSYeul2Msd1I+t/MNUMpU/6Ra/mcfKyN3WCF/ox6Kin0eE6nJgUJo7wTIE0V0rxYyepsRNR0ML6UVgzloyeQuSJ0R2bCfjxoQVWfS1thdYkvBiDubjUyOxx0KPj1jpK7ahBw2ty+fyiDFpralrhj4VVqTeT4rJvZU9CGwimijNinBTFrB/Yhdw== 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=kS6MvqdlofvhJT3/J8IqvNwoPw8ZO03um6AbA6v5s/w=; b=AT8ufVdQn65JAY1QKx/bP0N3VDUoYthosIA3Rcp/t9WSlx/l3R6l4Jk13VXZSRfb8gZt0rTS/fGwsF0p8Jbchj0upuc3fWy6Z5WprvK2Q7gBAsJyP/7iWOw/sYl1jAha/fsi1BbVMk48OZQjkbKH3hZXzLh+7L9ySnC8vTo8bIbe7+Ryhb0e6cOJ8g6+sicKUBsuyEyDa38N/DIbTVSTknz/wWfDmwn1KpM3UuCWZ3Ct/J5Sn/5ZVf27g60KBXS1zMamjWpIsa4OKqPK4QZ6++wetTVQ75pILTnxRyeRDygIYHOuu7HLljKl9L+e42Ds8Qo6OAM6q/8EGxdX7qkF/Q== 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 AS8PR04CA0130.eurprd04.prod.outlook.com (2603:10a6:20b:127::15) by PAXPR08MB7550.eurprd08.prod.outlook.com (2603:10a6:102:24d::6) 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:24 +0000 Received: from AM7EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::39) by AS8PR04CA0130.outlook.office365.com (2603:10a6:20b:127::15) 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:24 +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:24 +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:21 +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:20 +0000 To: , , , CC: Christophe Lyon Subject: [PATCH 14/22] arm: [MVE intrinsics] add unspec_mve_function_exact_insn Date: Tue, 18 Apr 2023 15:46:00 +0200 Message-ID: <20230418134608.244751-15-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_|PAXPR08MB7550:EE_|DBAEUR03FT018:EE_|PAVPR08MB9038:EE_ X-MS-Office365-Filtering-Correlation-Id: 63c6a410-8023-4c63-72d9-08db40137605 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: Upma8UEEdP6BejnjFA3NjHRhKr3Dppf57EZpUroTukNRauL+JdDZqCjb2luq2gF4J6gnwHR3JlMXdlT7+Fu7oLYrNor3HYKKba0lBbTVpYlhvCDnUQBccN8lo4AbKI3lwsvCcYWnIo+6nJA3G95zKNlTmjUtnC4V5A/5tE85MFV7NeUgMOehWpEZtG6jymrXoXBIVm1AqllUtUsgpwCxp50ZPmJ9kRLLdCCMflLlD53v8BU+57j2IH6GDTIlBBnJRWfs4AOvZJmGFGZgaq1Qglj3SRaAJT7gmYZei6eEgU4BdhiukrExi6M9KLZkPbJNe+pgMfQioQWvrxYDqucPUBQ4YoVTGUqvzBHh2HB4ETgyNMW3JEfYXhIKW+ECt4Dq3h2NCui2HMqNRwN+JgSvZDAHEK1fGLVfnwWoz+4QJ4k/Ua2Cw7/fSUkrZE9YIXvBmd8zg/iPDUhhwP4XVeSiefFZx8z2S29IbWk8IIFXS8wW0EU8Z1R7JRzK0ztx+wlC62AUfd8u/Lr8gMVc9iJ4mfNrcMXO7IZLR4i9uI6Q+qIVIKQrZIluUzsIDbn50/gixxBR/dEWNGTmCC7m22pdEIjZ/YXSXAc+aMZ7pcD7BfDcNbTUZxSrp46QwRZTeq21bNOy43HbQwiVItlN4U12t8s4lJmdlbLmjabbgwuQgkKVSnhLCBivJ1WkJi9ic3akd/6iaeA5r00wVfIjj82Y8Q== 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)(136003)(346002)(376002)(451199021)(36840700001)(46966006)(316002)(82740400003)(110136005)(6636002)(81166007)(356005)(186003)(41300700001)(86362001)(70586007)(70206006)(40480700001)(4326008)(26005)(1076003)(36860700001)(2616005)(5660300002)(478600001)(8936002)(8676002)(47076005)(6666004)(82310400005)(36756003)(7696005)(44832011)(426003)(336012)(2906002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7550 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: da3e4359-a989-41bd-4498-08db401370b1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mzgDJHpqRYseAEVw8HPSuWDx1pzS2ydshl0q3eOKk2Unszkzd0s8R7RzTe7gMC2l2pcN5uI+LC6CmM5QHzzctfn9Nb7AeG5Ybu9mLVA01rdQOUhW1txp+m8maTZZ4iWfBxCuznbkHCUUjcWSRKmbz9GafrPu6qNsk3dz9H+TxavWoEW73qugCei3HKJGf/3TKfSA39L5riKUl616Bzkf7C4LG1kAOfSTBM0ZpP8F6LkGTSQWXrB/8f+0D421FA9A47A4V03NEFtZcTc4VTGxYJViHh/Ssdp31bT+0HkpxNaKAbcl/0UODa0zBRsdxJDI+TWR6Z5syQBTQnRHo9aKWSYduSeB145ePtil4sdJHlfW/euOqS/EFZDybp0fO0dhmtmByh+ww+Eqc9Tl5S/J11XD070Eo7TRpEVHM8FOWlwl/A+x9aWqn6yjHbYf0Ke+W3wBkt1/dJYJ5blCLlOxujd9YtQa3ktXCWE4dEL4SKXZyE2iqcAj7qJWF4mG/AYmCgDCNzzG90MUPZi4+vGQUAl6ZxfTiEdllxKzijHxcHNUMvnxsbP7UtI8KwBIbzY1D7TcqJac3SUQopktwJjPPgMFmqeTF3k8tV8qLkU5lUXIzM0LdGZAlidz82UMeQ1p3KsLPthVfVD7T/+uwOBw7ZRkku11qk3sVMF7iFrtcK2o7gNgHgfcJetBr6gRCit0WjuOPZQJdEepQhYpAWZaQA== 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)(39860400002)(136003)(376002)(396003)(451199021)(36840700001)(40470700004)(46966006)(336012)(426003)(82310400005)(110136005)(40480700001)(82740400003)(47076005)(2906002)(6636002)(44832011)(5660300002)(316002)(41300700001)(8676002)(70206006)(70586007)(81166007)(8936002)(478600001)(4326008)(86362001)(7696005)(36860700001)(36756003)(40460700003)(6666004)(186003)(1076003)(26005)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:33.1682 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63c6a410-8023-4c63-72d9-08db40137605 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: DBAEUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9038 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?1763522161233498982?= X-GMAIL-MSGID: =?utf-8?q?1763522161233498982?= Introduce a function that will be used to build intrinsics which use UNSPECS for the versions. 2022-09-08 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-functions.h (class unspec_mve_function_exact_insn): New. --- gcc/config/arm/arm-mve-builtins-functions.h | 151 ++++++++++++++++++++ 1 file changed, 151 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-functions.h b/gcc/config/arm/arm-mve-builtins-functions.h index 6d992b270b0..5abf913d182 100644 --- a/gcc/config/arm/arm-mve-builtins-functions.h +++ b/gcc/config/arm/arm-mve-builtins-functions.h @@ -225,6 +225,157 @@ public: } }; +/* Map the function directly to CODE (UNSPEC, M) where M is the vector + mode associated with type suffix 0. */ +class unspec_mve_function_exact_insn : public function_base +{ +public: + CONSTEXPR unspec_mve_function_exact_insn (int unspec_for_sint, + int unspec_for_uint, + int unspec_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_unspec_for_sint (unspec_for_sint), + m_unspec_for_uint (unspec_for_uint), + m_unspec_for_fp (unspec_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 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_fp; + 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; + + 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).integer_p) + 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)); + else + code = code_for_mve_q_f (m_unspec_for_fp, e.vector_mode (0)); + break; + + case 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)); + 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).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