From patchwork Mon Nov 28 14:13:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stamatis Markianos-Wright X-Patchwork-Id: 26794 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5697505wrr; Mon, 28 Nov 2022 06:13:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5prCEmc5ki90Re2Aqt1eTaWmBhpFdCgtKBw2hbR+Yjp5Yxh3zXscYnIiypb5/sQxelYyo7 X-Received: by 2002:a17:906:5f85:b0:7bc:6bb7:41c1 with SMTP id a5-20020a1709065f8500b007bc6bb741c1mr14458162eju.353.1669644823350; Mon, 28 Nov 2022 06:13:43 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id wu9-20020a170906eec900b007adfe2889efsi9031992ejb.607.2022.11.28.06.13.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 06:13:43 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.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=@sourceware.org header.s=default header.b=U4dcq+1C; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B08203845195 for ; Mon, 28 Nov 2022 14:13:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B08203845195 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669644821; bh=jEdxam0VGASNONXpETUUbwmldVBqlbw4gWaYDI1O4Js=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=U4dcq+1CMAN0RBTIgQmoPyoERsIYDXFgOtn12NdtFWW8hEyCV7cFjaWFMtSxZDmYH 4ur9EGi+tCVWuj6h/5fvSDiLJobd4XxgYY18o5WHVupx2DA40mqsIdWABgMH24/2lh xtXpdH6xIsop5/jPVb9fLJsTexhESRNuV9GJ3/Iw= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2044.outbound.protection.outlook.com [40.107.20.44]) by sourceware.org (Postfix) with ESMTPS id 790AE384EF5D for ; Mon, 28 Nov 2022 14:13:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 790AE384EF5D ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W/LSqoups5diJuBejzO2lKnI2B0zZEitt/wGzF5RmMv145MsnXxsJgpobRFU3txTbkwEvjOnzECyoYbiaz9stJqdnW8woDpj6mq/RbS4U489MmgpLl1eOhW2Pd+YPNVmXX7knAK/5FpXjoFYNI7FQx2dJNt8pBox1QHqy/D8ePTRw0ZHDmh7rfY1rPBsYkShSbj+lhXnshnkEzWmT/6Mrsqz8dkdLr27IDhsSNRwnLyNtZvsAOD/qlz4Q/J2sdZntGSaKW4DWqqXv025mA76hNboHYrI4WGc6HCL+E952etFupAAx29oG0vHK0In+usvO5Ts1UAv4HO6J/XeCLqyXQ== 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=jEdxam0VGASNONXpETUUbwmldVBqlbw4gWaYDI1O4Js=; b=KarDa3EPjpK+h43F0dhlcDqFfRN0AZ24nMds17BqPxEIkfkUiRm8kKI3kLCwoU+ASzCpPZQzkdXSdPvfTX9uPvLMNGsbuWQcEGlvc6zX82Gktvzy3QVeoSIZlnyRNV8QioZ2lHSukXvw4JLv+/iyAX98USdboEuFE7T6wJvo4rQ5pFlQ34ayAQw9VwernvbB/WRYjHmVOva9rupdCt8NHpXHtgVgEs/NzhQqkO7/2RNGZwIImShJld2UZ9lJkCaJCRH1egqXnGxrn3dzJ3sz8vXiMPYESQyLCVy0y4FiPixaXYL/0TI1wFVjnJ+FO5X7+6KG9yYidqYsr5bGz1lI0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Received: from DB9PR08MB6507.eurprd08.prod.outlook.com (2603:10a6:10:25a::6) by AS8PR08MB6343.eurprd08.prod.outlook.com (2603:10a6:20b:337::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Mon, 28 Nov 2022 14:13:27 +0000 Received: from DB9PR08MB6507.eurprd08.prod.outlook.com ([fe80::a98d:81cd:e426:fd21]) by DB9PR08MB6507.eurprd08.prod.outlook.com ([fe80::a98d:81cd:e426:fd21%8]) with mapi id 15.20.5880.008; Mon, 28 Nov 2022 14:13:27 +0000 Message-ID: <67cc7870-f49c-08ed-afb3-e83f4378095a@arm.com> Date: Mon, 28 Nov 2022 14:13:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: binutils@sourceware.org Subject: [PATCH 1/2] gas: arm: Fix a further IT-predicated vcvt issue in the presense of MVE vcvtn X-ClientProxiedBy: LO4P302CA0015.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c2::11) To DB9PR08MB6507.eurprd08.prod.outlook.com (2603:10a6:10:25a::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR08MB6507:EE_|AS8PR08MB6343:EE_ X-MS-Office365-Filtering-Correlation-Id: 479f526d-65e1-46b4-f9ad-08dad14ab7e6 NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4YL+sFr5o3IShSkN9WYQkomNsI8XDIfoSWk/yiFsjXCO0mNURdZ7rvgpg/xnkxlNoSlxc7B8QC/CbatP6idHx8UcLQGvbPU3pkKpLnAENF43lOO+Fxu8jegGbTQK8Nw8jqrIiOakR8jSPMTF+kJxrcXoQVaVieMMl9s9ZUSomNuVxT2aQ8V9KRiB18JvgoHHk6fKeP2yRlk/Hz4rt+1NntkZwiRT+KAVRONCjEVQQZOi11JFNt/iogbf2cmPsZYqj75RUNGGoihIdWVEzq/TvDaqxA71/m6TiIAD3glBsfufuE2Ynr7IF1zk6FvdPOQT5Jbh2Ke8wVWXSuijOr/s8/hxb1+ILN54LtNL2Zke/hXM5MWIlGYc6aVWr/qWX3YSIJ+5nDvtNE+h4qe762YMlk5HyttCFgqduHvK5scj6376RI5gdNRbWUVbOLuODLsCpZhxASY1MWjGQhYBu5JmrnpnOPOHJguyS6OJpzET6skwvrm384U1mYkmjdFjnxHl/jFh3HBOO3cZz/vET6fE/jo9VQqpel0GJDIsPPcP36en7gDze4rpHqPX/ibIBBamzgiBC/GgfuWDJDR28C2e2fNymJeGbTzSiHomZme7VtIr6wjTlfkYsKr8/TAA0zQX6mttdqr1MPhkFHnfAGYfvno4eBvu5FdQwQMT29aZDvuJUK/X9yNR7VVntlorfu1ITU4vp+mJQboNqAezhYCZ1ASbQVlxwu8+owI6nSVsC9YApUWLdKuvpOdrcZKBS8BPOviFl7srM1TFqWmEaj4p1A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6507.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39850400004)(376002)(396003)(136003)(366004)(346002)(451199015)(36756003)(6486002)(6666004)(6512007)(478600001)(6506007)(966005)(33964004)(38100700002)(26005)(41300700001)(8676002)(66476007)(66556008)(66946007)(86362001)(31696002)(6916009)(316002)(8936002)(5660300002)(235185007)(186003)(2616005)(31686004)(83380400001)(2906002)(17423001)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?c5FUwXyAvUkFvxylJPrXmW0Biub6?= =?utf-8?q?8sGDjajXbptK8/eqsTitEwZp1DKxXcDMH55tkKqSUy2thzoew4Smec3wnxWlwm7z/?= =?utf-8?q?cmhmJSAFsgOTa/P043NbqRlakjiNXX/n2T3MhyKLnlRm6qmfRExfz6z4qDRDt/LWI?= =?utf-8?q?0xlIPmRz5NduveqNUSU+Ry1VM8/Ri3a0iDPmRH5gIW4FMmbNzR3VVzYBxSNjhF2/G?= =?utf-8?q?gC1ryQiz0STPw/yReN+FDcoqzM0QTW3q08AeCCZpYmBEFOdVrAVco6hbHjlYIXpH9?= =?utf-8?q?z9N7AHHkcMSKZhN7gm592bzrbW/XxxTl2DemrJQRUj+iXpkCJkA7rowMbPfkaTa3T?= =?utf-8?q?RE/AE9SPkTGWoyweA2pBOAC6XhospqgrZNiuJodKWVm6Si1rft0Mkh2Dm9tJ6+sgD?= =?utf-8?q?yfxQ8xwdXVYXaUelFEHU7kdNYCU84w1VB2crwOk2Veyq0ObsWR1WxTbxXCNU6bkbf?= =?utf-8?q?SmJrUw+UVIbfzw3V8aDLGtXrXI2l26MV4shs+UAbtr4mzr4CP0OX5in28FaCxvbcv?= =?utf-8?q?4iPXZ1jqZ29hKM4ufLXcFeAlV3KDFAgYILu2eyL+84KU5b9QInp0IgU2G+EcvRrI8?= =?utf-8?q?4t6QCtAHm7FPYD1/5BNOXpjp4vr34VkFQiNiSkhORvrgctGrwAzV43/LW5oPxwmLL?= =?utf-8?q?5PztWCGIzsEyBTV89EmxMjjQSGng/kWmVwfvadfcdYtv9ucBpU3uVI2qZb2j8dB2y?= =?utf-8?q?1MlsCaKbzJHcH30n/spGXfp48w4C/uPZmgYzosPEE7sbHslRJxPBOTfuG3OKXbXJn?= =?utf-8?q?klJ9H97PXIW76ziC4DHjJ7lhsBafnHyHkJq1ziKvejDLcceEQpgbxs3NZkd5YCWbD?= =?utf-8?q?IJ086SLvPnhsa5Ntj36nphNq/Hxks3my7cNmBXVY7JnGyMZ2X8uaDjME/3qZMJ5Nu?= =?utf-8?q?LioxL8L9zFCdkoCaEaZ58FLovItj4TT5uKUYT+RPE/VN+BjdWCyyCEyLtj6O7Awqd?= =?utf-8?q?8w/DZlfPnu+D5xtlFpsyNBsRTt+E1kS/bCht6CcFHH3NPhm4uYZz19i8ADHTZ1HMt?= =?utf-8?q?s/GLZClm49Jrdf3YbuVUyM0x3mQf55XLCS2EXpFDu5KVcQgFP2BiwzMDLj7qxj+J/?= =?utf-8?q?MYbiX9gCIGBefxkOcZrqGs9pNU7vxSpvuQv+WtA0DWVa6qu9we5jV50MZf4FnBzKh?= =?utf-8?q?uy8hSuNN++opMZxUy2bRim/JthZsxDTWEuM3/GxDjHMQqnwsexKwZfBmeZnbYRFLb?= =?utf-8?q?q5lhW/Ne5tg5XUu4ot3juLtdVxPC9LLK52qVzfwoCk6A/SAVj6vrMu6+aeDY0aLfE?= =?utf-8?q?YMnWre3F+NWsukaSjkKxaeH3EusQe6Fjvxp66FxkLw0GYz/gswJ2ho51PmhCwhfX/?= =?utf-8?q?WCOoQIqZC/7p35dmEHRZoWWfRFSrI+028E6irFvIUChY1fIdKVFBuNy7wkOt2wCGh?= =?utf-8?q?OnUk0ONxDZsUjZzEnBBt9GtOpJUKvpg8A/ERpRr7DjG17Pnbq9RVQOTJlWI/dQJuP?= =?utf-8?q?7fRzyfz2rBU+z6EXy0tMyfNVG96K3Hrt3TXJjA1SShZvgUcwg2R9tJ8y+3nQ8vGMs?= =?utf-8?q?WVY8SZX9J6H53dFcGH20gNSHZrjPN3sYBQ=3D=3D?= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 479f526d-65e1-46b4-f9ad-08dad14ab7e6 X-MS-Exchange-CrossTenant-AuthSource: DB9PR08MB6507.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2022 14:13:27.3092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CgbfnJmLxz7QA9c4Ab8wyi5ZTKqBrE2ku4lliGu5li6KWZ8uQ3vx62XtpLDLGobcv2qA1ko01ThRk7BvG9bAMYg4G+MNzxDRFN/0P7vQ/G0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6343 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Stam Markianos-Wright via Binutils From: Stamatis Markianos-Wright Reply-To: Stam Markianos-Wright Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750749490325985762?= X-GMAIL-MSGID: =?utf-8?q?1750749490325985762?= Previously we had experienced issues with assembling a "VCVTNE" instruction in the presence of the MVE architecture extension, because it could be interpreted both as: * The base instruction VCVT + NE for IT predication when inside an IT block. * The MVE instruction VCVTN + E in the Else of a VPT block. Given a C reproducer of: ``` int test_function(float value) {   int ret_val = 10;   if (value != 0.0)   {     ret_val = (int) value;   }   return ret_val; } ``` GCC generates a VCVTNE instruction based on the `truncsisf2_vfp` pattern, which will look like: `vcvtne.s32.f32 s-reg, s-reg` This still triggers an error due to being misidentified as "vcvtn+e" Similar errors were found with other type combinations and instruction patterns (these have all been added to the testing of this patch). This class of errors was previously worked around by: https://sourceware.org/pipermail/binutils/2020-August/112728.html which addressed this by looking at the operand types, however, that isn't adequate to cover all the extra cases that have been found.  Instead, we add some special-casing logic earlier when the instructions are parsed that is conditional on whether we are in a VPT block or not, when the instruction is parsed. gas/ChangeLog:     * config/tc-arm.c (opcode_lookup): Add special vcvtn handling.     * testsuite/gas/arm/mve-vcvtne-it-bad.l: Add further testing.     * testsuite/gas/arm/mve-vcvtne-it-bad.s: Likewise.     * testsuite/gas/arm/mve-vcvtne-it.d: Likewise.     * testsuite/gas/arm/mve-vcvtne-it.s: Likewise. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 2e6d175482efe4bc58a2e277bd2cc4c48f9e1863..25506241f29cdb0db169bb7801604ea4e356989c 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -19143,16 +19143,6 @@ do_neon_cvt_1 (enum neon_cvt_mode mode) return; } - if ((rs == NS_FD || rs == NS_QQI) && mode == neon_cvt_mode_n - && ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext)) - { - /* We are dealing with vcvt with the 'ne' condition. */ - inst.cond = 0x1; - inst.instruction = N_MNEM_vcvt; - do_neon_cvt_1 (neon_cvt_mode_z); - return; - } - /* VFP rather than Neon conversions. */ if (flavour >= neon_cvt_flavour_first_fp) { @@ -22748,6 +22738,23 @@ opcode_lookup (char **str) cond = (const struct asm_cond *) str_hash_find_n (arm_vcond_hsh, affix, 1); opcode = (const struct asm_opcode *) str_hash_find_n (arm_ops_hsh, base, affix - base); + + /* A known edge case is a conflict between an 'e' as a suffix for an + Else of a VPT predication block and an 'ne' suffix for an IT block. + If we detect that edge case here and we are not in a VPT VECTOR_PRED + block, reset opcode and cond, so that the 'ne' case can be detected + in the next section for 2-character conditional suffixes. + An example where this is a problem is between the MVE 'vcvtn' and the + non-MVE 'vcvt' instructions. */ + if (cond && opcode + && cond->template_name[0] == 'e' + && opcode->template_name[affix - base - 1] == 'n' + && now_pred.type != VECTOR_PRED) + { + opcode = NULL; + cond = NULL; + } + /* If this opcode can not be vector predicated then don't accept it with a vector predication code. */ if (opcode && !opcode->mayBeVecPred) diff --git a/gas/testsuite/gas/arm/mve-vcvtne-it-bad.l b/gas/testsuite/gas/arm/mve-vcvtne-it-bad.l index 8765ae0d6912e322ecabfb215f5401327fa97cbe..ca57a38537c62926f43119c1e9abd9dbaf549a1b 100644 --- a/gas/testsuite/gas/arm/mve-vcvtne-it-bad.l +++ b/gas/testsuite/gas/arm/mve-vcvtne-it-bad.l @@ -1,2 +1,17 @@ [^:]*: Assembler messages: [^:]*:3: Error: thumb conditional instruction should be in IT block -- `vcvtne.s32.f64 s13,d8' +[^:]*:4: Error: thumb conditional instruction should be in IT block -- `vcvtne.u32.f64 s13,d8' +[^:]*:5: Error: thumb conditional instruction should be in IT block -- `vcvtne.s32.f32 s13,s8' +[^:]*:6: Error: thumb conditional instruction should be in IT block -- `vcvtne.u32.f32 s13,s8' +[^:]*:7: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +[^:]*:7: Error: thumb conditional instruction should be in IT block -- `vcvtne.s32.f16 s13,s8' +[^:]*:8: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +[^:]*:8: Error: thumb conditional instruction should be in IT block -- `vcvtne.u32.f16 s13,s8' +[^:]*:9: Error: thumb conditional instruction should be in IT block -- `vcvtne.f64.s32 d13,s8' +[^:]*:10: Error: thumb conditional instruction should be in IT block -- `vcvtne.f64.u32 d13,s8' +[^:]*:11: Error: thumb conditional instruction should be in IT block -- `vcvtne.f32.s32 s13,s8' +[^:]*:12: Error: thumb conditional instruction should be in IT block -- `vcvtne.f32.u32 s13,s8' +[^:]*:13: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +[^:]*:13: Error: thumb conditional instruction should be in IT block -- `vcvtne.f16.s32 s13,s8' +[^:]*:14: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +[^:]*:14: Error: thumb conditional instruction should be in IT block -- `vcvtne.f16.u32 s13,s8' diff --git a/gas/testsuite/gas/arm/mve-vcvtne-it-bad.s b/gas/testsuite/gas/arm/mve-vcvtne-it-bad.s index e4c1b99906536c3c6cc8334e98d84cd170c19d76..b7d83f6fe0dfd4140b6cc11cf748d43787e932ba 100644 --- a/gas/testsuite/gas/arm/mve-vcvtne-it-bad.s +++ b/gas/testsuite/gas/arm/mve-vcvtne-it-bad.s @@ -1,3 +1,14 @@ .syntax unified .text vcvtne.s32.f64 s13, d8 +vcvtne.u32.f64 s13, d8 +vcvtne.s32.f32 s13, s8 +vcvtne.u32.f32 s13, s8 +vcvtne.s32.f16 s13, s8 +vcvtne.u32.f16 s13, s8 +vcvtne.f64.s32 d13, s8 +vcvtne.f64.u32 d13, s8 +vcvtne.f32.s32 s13, s8 +vcvtne.f32.u32 s13, s8 +vcvtne.f16.s32 s13, s8 +vcvtne.f16.u32 s13, s8 diff --git a/gas/testsuite/gas/arm/mve-vcvtne-it.d b/gas/testsuite/gas/arm/mve-vcvtne-it.d index 2bc069a77e5a46d83dd42d658b2d79a53e9da593..27e45753c6497fec85ee194e9ebae4a3fdbeee0f 100644 --- a/gas/testsuite/gas/arm/mve-vcvtne-it.d +++ b/gas/testsuite/gas/arm/mve-vcvtne-it.d @@ -1,10 +1,31 @@ # name: Armv8.1-M Mainline vcvt instruction in it block (with MVE) # as: -march=armv8.1-m.main+mve.fp+fp.dp +#warning: [^:]*: Assembler messages: +#warning: [^:]*:10: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +#warning: [^:]*:11: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +#warning: [^:]*:19: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE +#warning: [^:]*:20: Warning: ARMv8.2 scalar fp16 instruction cannot be conditional, the behaviour is UNPREDICTABLE # objdump: -dr --prefix-addresses --show-raw-insn -marmv8.1-m.main .*: +file format .*arm.* Disassembly of section .text: -^[^>]*> bf18[ ]+it[ ]+ne +^[^>]*> bf1c[ ]+itt[ ]+ne ^[^>]*> eefd 6bc8[ ]+vcvtne.s32.f64[ ]+s13, d8 +^[^>]*> eefc 6bc8[ ]+vcvtne.u32.f64[ ]+s13, d8 +^[^>]*> bf1c[ ]+itt[ ]+ne +^[^>]*> eefd 6ac4[ ]+vcvtne.s32.f32[ ]+s13, s8 +^[^>]*> eefc 6ac4[ ]+vcvtne.u32.f32[ ]+s13, s8 +^[^>]*> bf1c[ ]+itt[ ]+ne +^[^>]*> eefd 69c4[ ]+vcvtne.s32.f16[ ]+s13, s8.* +^[^>]*> eefc 69c4[ ]+vcvtne.u32.f16[ ]+s13, s8.* +^[^>]*> bf1c[ ]+itt[ ]+ne +^[^>]*> eeb8 dbc4[ ]+vcvtne.f64.s32[ ]+d13, s8 +^[^>]*> eeb8 db44[ ]+vcvtne.f64.u32[ ]+d13, s8 +^[^>]*> bf1c[ ]+itt[ ]+ne +^[^>]*> eef8 6ac4[ ]+vcvtne.f32.s32[ ]+s13, s8 +^[^>]*> eef8 6a44[ ]+vcvtne.f32.u32[ ]+s13, s8 +^[^>]*> bf1c[ ]+itt[ ]+ne +^[^>]*> eef8 69c4[ ]+vcvtne.f16.s32[ ]+s13, s8.* +^[^>]*> eef8 6944[ ]+vcvtne.f16.u32[ ]+s13, s8.* #pass diff --git a/gas/testsuite/gas/arm/mve-vcvtne-it.s b/gas/testsuite/gas/arm/mve-vcvtne-it.s index a9f260681283c3c68bace0abaa6754a4cab9c62f..e8be576c2960fc6c2cf3582604c436561099d046 100644 --- a/gas/testsuite/gas/arm/mve-vcvtne-it.s +++ b/gas/testsuite/gas/arm/mve-vcvtne-it.s @@ -1,4 +1,20 @@ .syntax unified .text -it ne +itt ne vcvtne.s32.f64 s13, d8 +vcvtne.u32.f64 s13, d8 +itt ne +vcvtne.s32.f32 s13, s8 +vcvtne.u32.f32 s13, s8 +itt ne +vcvtne.s32.f16 s13, s8 +vcvtne.u32.f16 s13, s8 +itt ne +vcvtne.f64.s32 d13, s8 +vcvtne.f64.u32 d13, s8 +itt ne +vcvtne.f32.s32 s13, s8 +vcvtne.f32.u32 s13, s8 +itt ne +vcvtne.f16.s32 s13, s8 +vcvtne.f16.u32 s13, s8