From patchwork Mon Nov 7 12:23:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 81049 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp983702qge; Mon, 7 Nov 2016 04:24:10 -0800 (PST) X-Received: by 10.98.150.206 with SMTP id s75mr13259157pfk.155.1478521450624; Mon, 07 Nov 2016 04:24:10 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id hk10si25820006pac.297.2016.11.07.04.24.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 04:24:10 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-return-94374-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of binutils-return-94374-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-94374-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:cc :subject:content-type; q=dns; s=default; b=iUN+eT5jtsPkT1bcXKLjz t/x1/g6RQrnQKLNI6ET1eKpdmH29cnFlNrBVDA1FmvOlR/BM7RbmiNu+CsHyy2yN 414D84/7Mg+wcJalxveiSXQl61kxrOdanpQ9tnGLGW4RxkjVTr8sV6R/m987FRQU +j9fPnzkPYXekj2lVEpg8M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:cc :subject:content-type; s=default; bh=LlAAiUyel+C3lTA4I9XOWfum6pE =; b=uqmIPjV7hGm9cxjtPHhbzn6HcG/QoC4hCBLRMVENcsC1rbpP28m+g6peZKL zJ2pZY7XalrO7Dj3NAld7QdgTffos6kQ/b4cP0cyaMycfl/mnf5dyZ2wasNZRuC/ HFacYgOI/e7wG20+XQD6REq3phJqg0muoX+pPps4XkHznhWk= Received: (qmail 47050 invoked by alias); 7 Nov 2016 12:23:56 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 47018 invoked by uid 89); 7 Nov 2016 12:23:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=UD:l, lor, H*r:15.1.679, H*r:sk:mail-he X-HELO: EUR01-HE1-obe.outbound.protection.outlook.com Received: from mail-he1eur01on0075.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) (104.47.0.75) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Nov 2016 12:23:42 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; Received: from [10.2.206.73] (217.140.96.140) by AM4PR0802MB2148.eurprd08.prod.outlook.com (10.172.217.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Mon, 7 Nov 2016 12:23:39 +0000 Message-ID: <58207247.9060302@arm.com> Date: Mon, 7 Nov 2016 12:23:35 +0000 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Binutils CC: Subject: [PATCH][AArch64] Fix feature dependencies for +simd and +crypto X-ClientProxiedBy: DB5PR01CA0061.eurprd01.prod.exchangelabs.com (10.163.24.29) To AM4PR0802MB2148.eurprd08.prod.outlook.com (10.172.217.10) X-MS-Office365-Filtering-Correlation-Id: 65b4c09c-be5e-4782-57cd-08d40708e7ab X-Microsoft-Exchange-Diagnostics: 1; AM4PR0802MB2148; 2:KHKkLiR2WVyDjr2fuumHs5cRBOo1E3MvzGpQ6ZVlFVw76vlYMhVGC2Z1tusw04FFUF61kYtWVjNodr/Ba9323kEsZaBIb3I94ZAVzN7/q79j0m2hnKGBBLiPrUMBBUOD7/qz/rgWVaUBqcAPi1Fo+XqPvkjQOjEV2asklxM3a4DHIis7bwWCdfgLBAiRlkl/I+aM8YGbNfFE3gwaaykt/Q==; 3:WU88KWR4jIAZs152epPCtasm8pBSZSqXGsZ7gGO0cveNskxlswLiWGC3oToSNCTEyyTB2HDqs5GSzdBvRE9trS5vwN1HMGGO8EuSYaYH9zxpFplzebnk6NUWGQ51e3ZDOuL03uwHStWcJh/ZhAJzOQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0802MB2148; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0802MB2148; 25:8y8x+HI4+K5NyldemUhkxYzrfGVtU8JjkYTFTw1hvxJB9tpFciMSBmcIphHC8a4VxjVFBqcK6tMt0iIbN128rflL5eMlEWAa51XBtwd5eVncSJ2ondfMxZh8EOTSLUHpILdpLB4sO5CSjqa2NP+yKzb88Pe/k/d9ioOSaaVMpJ3THckObpL+nECErWhtN6x7U6bC3WjJDl3S0ArZY6bYlggvspoRL279XzyD9MF1o4sttGjbbE45lNG8CpOThnsTj0XKTG/duw5gWkIK4ro+HYwM1cPrabNCenGO2llcMP4qdqw5o1qM61Ce2V16YwfE3yIdXSkhRu0CtuIDFBrl3qmuiRVtm386+ruDksmVULCy8F7UxyPsQ+iEsdTzVH8v54IXqc6CreqwCTF123he9t+rFaIMEvOK76+gi9JsauaPd0luVtYefmOSDSKDMQSh+BSdiCvn4j/xFRkAYTSZnRQCoWxy8/RMlQmhraSpE/bFVFEqrHwPwJP2qWwlWpt8HcwlXVOetbBfO9HFKmzMWIMqfCeo6+RpJ3e85nq8HZRJvhrtQGL3d8Kx9iRHDum1uz1xZGuhJXlJLVGiKzqFgELfUlROIBUS9TAXtlmc+2v9oXR6GrhFUkqxlXhEhSJLhjiX6OZYVlX2Eutly0Oq+3q2TBQmn+vCYf3XlInaEcxmrD3Yp0bBFgxsu0V51s3CEiKcTmi3w/MtQqhbR6rYJoMCnVm7heYDB7w21/kDLJnyODB2H96BNncsKndj6yHJhH+rub6sLVeN4EoyITS347IzLQoQMmiosvbj3i9onBh4Ey2oTnppcUmVbiGPH8U8kf2XYXuw/rJW0EMZCQt7sA== X-Microsoft-Exchange-Diagnostics: 1; AM4PR0802MB2148; 31:xztat7Z8psJ76viRBy1YiT7YMgOvtZgr3b5cY+1pf9BCEgU0j9dNojLkyfHMGvvE7NXA492sIpzbxLgOSwDCToJ9HiKBvCHzNAtSGjIZN+c9CASgtq2kk96E0VmfASCJiVj8ZTySma6/iuI1uycMF2C22/CzdcUXGEGa8Nk77brdds1WKQA6rseRcyV2u/azi/9JRCrUGNZsyqfJhjPpMlWv6apC/gA1Y47EhqgcmA+J6vEHNUsZr9EzVYw40C4yztlx2mwMEgICippNRu/v90kF+7zFwppZduvcEXok0qM=; 20:iFFQfgGeQIDNaE9IAiAcmH/7zuXyn5iHnqd0B/efTaSNhseN5bOUcaZlmi0gwjBlZplPXNUxplD8sJ8QT1ExzuL3K7fHqbWhGRMkki/xxphfKUjY/LSZ6OckOw2swg7z8lD4XGHp35SfBnfg1kYbMYWNHe/BX5v5TMRAd6mp0dI= NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415321)(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:AM4PR0802MB2148; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0802MB2148; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0802MB2148; 4:rC1QUn3UprDPTL/OYmq/EmsHDEYamGyvg1ZTLbqriRPdvHFIscJvwz6D2i2aTwdx/3JzPHQ4y+dCDlFtbVntfqhfBNjk/dSqfMDKfv8eIPUo1s++QDlc9wm73EP3nwRPTVbljCFXFp98oG9DBGRZ+tOaUrD5KmtwW9byUXoQSmzK4Uwt1rMWtKN9yMOJGbjZf81DE9uRkjYM6HUsBqR8y7UCKHhM/Z1VGb3ossvRfNDt/VyF+1BKhnYnwmf4h1Dxof6PGEQz8yWbdOKqrZRBfWbdCWTdCbILcKEYhWJ9SCzJkJbrFrS8Opv6/P2mlwg3p7BsrsVuA0K9x9RXOqP1X39HlzXbIdr8CSsACJm7g3cyWJdoORpYEpWk8lWJi+FU00IkbDOQsoOl0Bq22AyeZ+GneLOwl620z8MFwfaRDWsK9WDtrPcAubdidQYq2Z0cE5CWAKf+si4fk+DGjrnSfXZplfOLOlNa2D1u8mVpe9A= X-Forefront-PRVS: 0119DC3B5E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(199003)(189002)(377424004)(106356001)(3846002)(5890100001)(64126003)(229853001)(5000100001)(122286003)(36756003)(2906002)(4610100001)(99136001)(50986999)(65816999)(586003)(105586002)(2476003)(4326007)(101416001)(42186005)(512874002)(568964002)(92566002)(270700001)(6116002)(81166006)(81156014)(450100001)(8676002)(7736002)(7846002)(77096005)(6916009)(5660300001)(87266999)(54356999)(59896002)(117636001)(6666003)(68736007)(305945005)(84326002)(86362001)(4001350100001)(19580405001)(19580395003)(65806001)(97736004)(65956001)(66066001)(110136003)(83506001)(189998001)(21490400002)(62816006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0802MB2148; H:[10.2.206.73]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0802MB2148; 23:1WR+WWuTY/MA2BaZEYljT7HsT4ASmbVnYHkejGc?= =?us-ascii?Q?NrVaHrqbPnxiAk3wAT8iDSUz05dmwNjWsKm4gCv+Dda6NuAi+49ZsYpGphqR?= =?us-ascii?Q?lOY/1aph7obzYKTg5NA+W+sTMF/0KZYn3MQERi1zmikybz29Lc4LjViDTqMH?= =?us-ascii?Q?+SGbY4nCC02Th1TAB2ZegbiN2+BQ0wXmw24CMXKmgaW40wKMfH2A+wdfiU9h?= =?us-ascii?Q?6k+XIsqQnlwUE0dU6AOWcYpEmuODW8yhU1SuT9rhQprnYzEtObcWNDL+z8jZ?= =?us-ascii?Q?z9JisyP/nZXTJzPtZ6FmVfrmR9s85n2LWO3Q5cYxydgGspqr5DRVK3pXUENp?= =?us-ascii?Q?A/wNfgnoymdLQUoi0EPDVh5Box6A7Wf6fVS8llDG2LNC+/VqZ2NiOvg1GlYW?= =?us-ascii?Q?45t31m1TqRse8UeDXq/tB58W38d0XbYZv7e6OsJrzyrx+SPDLtX/MkU+uQeY?= =?us-ascii?Q?cJOAalV1sgpnwAadsFmrGAqueRWTgnCIMiYXeJi13tqlSgLMZVRrnh/Y7QKk?= =?us-ascii?Q?pw4FMPoR1IV9GDraT9X8wLFf4hi1fMOx0iiA1Oqg4i898oHa6jKVhvr6WF/Q?= =?us-ascii?Q?JJNm5Inq2DvIB2dqYoniEdPZwhWV67s/zJVH+m0M18+wt284xgHf/EkTod7o?= =?us-ascii?Q?yWTHnKG87pvzPoY14LyZm598Fg5c8VmuI1nPkNdI0vooM8O/42LUx+Emm9wS?= =?us-ascii?Q?9FhEaP7+EtY3rjm5zRANbWbndNgdz9GhGCSae/C0o6fFk15RkXMVbkbSumS+?= =?us-ascii?Q?ELkXCwiOf2u/yALihdcYw8D45Gr3lJ5YCGb2xmTRufRe41bQRVCLZFH6p/l9?= =?us-ascii?Q?+dPL0njPitlIsdKfTpVIkOyanGZsBAGSyZRo/bKZO+wy6U++mB2WnFhgm39L?= =?us-ascii?Q?sLCEcGFZweQAyyCcylDlffqRvsQuPxqzgWp96qQS7O+5vSQKX48C+5q6jZJ4?= =?us-ascii?Q?MwXdH8lpLyQyWZ1s/JNt8jeZVln/6uvW94VXCDGdveRgUtfAxzBQgXl7Wgft?= =?us-ascii?Q?tkMajoEjeOWv6ia6bR+nvXaBMeZu++o6ebdNxOnfy3kjSqLeqjiimoAeyiF7?= =?us-ascii?Q?h22TtyTkA2Ajo+vJotH96E49tltJJNR3sV7lLuxudBAUiQdHzWE4CJdLvDHe?= =?us-ascii?Q?YRYUzFNywl6qmlK6GplhVBEBgAC5vpttRJDbeMK39eVBkBfzPiTqFeak7SEZ?= =?us-ascii?Q?nGVtSKPKjKAEyV24nuAlqcEkwFypcWQeoCtjAi7GGe8LIdKikq9LZCZRw2g8?= =?us-ascii?Q?q7ELsD2iDlksWQgjNsRVb6owHrHLS+vZK1PbBEY6wZ6YlQfg2ggipLHdfi19?= =?us-ascii?Q?0Em9W/DmIwjSQBh1uO6ywQVy6li10qrPLeXPaIg33qmxDbI+4pS4kCZmC0zf?= =?us-ascii?Q?1FM5hwwsRzLKL5UhoXQwldH/5iayL/BIQTnEFF8+yyQWjLX4WbK+0DqYJPhO?= =?us-ascii?Q?K3hoAXP9IXWCxvC6m1mglDadv7HyrudXNRB4IjmkBAEsiJ30qNv1TJlxUSs7?= =?us-ascii?Q?w3l6taDBf7j8qIsT8EbcUOjUHT2iR0fS/bz0=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR0802MB2148; 6:VIt6tCHkfTVcU0W8/rT1LZHP0EntLsZvivA0yOviWIghOw+LCC7XQChxGX4yn7onFpHp4cYNue3o0M/H/mTai4QnI4kVe/lwNiXrFlUfbcufNOp9BnLOeBf3TGi/NiMZn5n/mxyncepTOUlFuxcbT7b6RQeXv4h+8ucj2mkAit8zbzAqhi6eompWymqL47Hm0jj0ou5plbvlYA7Mx3SPOs9h4wtEuxz8v0q2SpDbRo2HRuQbRVPND/uORS9k+vrhujYoTmXmVugivrEufZ9E1Vv8Rz1UXlCkWr4CdPv1gGazbvrL1XV5KdesXtxko6HW4EP+V01Dyvl+4QEvJ+7qYQ==; 5:FiMWwDOipPW4I2BhymkY+B7iYZlutZjxwOpqeS1BTIThaWuczGDeEwKBc3CFVkWjnT0RsoRq/eKcXzgfNlmqxNM2ZWKIGwlG5zXK4dtgiZImyGmuO7hkEJ+hxUAeSTMrAtwH+XguY+yipnJI4B94eQ==; 24:Sx+IaUIT9DUyBvYVVq6W4G8JfjnnkfSlVMeVlPYtdWzBO8lqqs49fcujcMiv6xFps5zIccpNeDZGHsW66HJu23uJ5TLk1jRq6/AtnwRoo94= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0802MB2148; 7:vkWPGpuunZiaSzvLreyXLf0+S3wGmRGbSFJXMvvacmyUKVAFk+GasYRImcKdZhqkBHvqJ6GflUwniCspWisGkZik/bOjkzSVmfNBlAOtCg47N7DtOpyy+Cl5SDTz6P8NNdfHuFlgRMW6uyeS0HE8BMNwxoCRrGcixAmNHk2mge3d65xl0AoPLLQeA5ORgby3FQve/RISYQN3P2CluWZYZYm8/kYXxop+I6I4HFo9EOzJb+XE0beMEdt9OA7N5UGMvc/wO8/o9dc17mFHCpf5UlRm/QpqtGHNOi2h87aN09jEBsY7tVEXZs3nfVpwgGuKs2NVGpPlJP8BLRb+cw4WM21wAoXMXo6uhJ86qWRRcik= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2016 12:23:39.2309 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2148 X-IsSubscribed: yes According to the gas manual, +simd implies +fp and +crypto implies +simd. Make sure +nofp turns +simd, +crypto and +fp16 off. gas/ 2016-11-07 Szabolcs Nagy * config/tc-aarch64.c (aarch64_features): Fix "simd" and "crypto". gas/testsuite/ 2016-11-07 Szabolcs Nagy * gas/aarch64/illegal-crypto-nofp.d: New. * gas/aarch64/illegal-crypto-nofp.l: New. * gas/aarch64/illegal-fp16-nofp.d: New. * gas/aarch64/illegal-fp16-nofp.l: New. * gas/aarch64/illegal-fp16-nofp.s: New. diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 5d53064..4ec1c8a 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -8386,13 +8386,13 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = { {"crc", AARCH64_FEATURE (AARCH64_FEATURE_CRC, 0), AARCH64_ARCH_NONE}, {"crypto", AARCH64_FEATURE (AARCH64_FEATURE_CRYPTO, 0), - AARCH64_ARCH_NONE}, + AARCH64_FEATURE (AARCH64_FEATURE_SIMD, 0)}, {"fp", AARCH64_FEATURE (AARCH64_FEATURE_FP, 0), AARCH64_ARCH_NONE}, {"lse", AARCH64_FEATURE (AARCH64_FEATURE_LSE, 0), AARCH64_ARCH_NONE}, {"simd", AARCH64_FEATURE (AARCH64_FEATURE_SIMD, 0), - AARCH64_ARCH_NONE}, + AARCH64_FEATURE (AARCH64_FEATURE_FP, 0)}, {"pan", AARCH64_FEATURE (AARCH64_FEATURE_PAN, 0), AARCH64_ARCH_NONE}, {"lor", AARCH64_FEATURE (AARCH64_FEATURE_LOR, 0), diff --git a/gas/testsuite/gas/aarch64/illegal-crypto-nofp.d b/gas/testsuite/gas/aarch64/illegal-crypto-nofp.d new file mode 100644 index 0000000..ee52a9c --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-crypto-nofp.d @@ -0,0 +1,3 @@ +#as: -march=armv8-a+crypto+nofp +#source: crypto.s +#error-output: illegal-crypto-nofp.l diff --git a/gas/testsuite/gas/aarch64/illegal-crypto-nofp.l b/gas/testsuite/gas/aarch64/illegal-crypto-nofp.l new file mode 100644 index 0000000..a5649de --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-crypto-nofp.l @@ -0,0 +1,19 @@ +[^:]*: Assembler messages: +[^:]+:27: Error: selected processor does not support `aese v7\.16b,v31\.16b' +[^:]+:28: Error: selected processor does not support `aesd v7\.16b,v31\.16b' +[^:]+:29: Error: selected processor does not support `aesmc v7\.16b,v31\.16b' +[^:]+:30: Error: selected processor does not support `aesimc v7\.16b,v31\.16b' +[^:]+:32: Error: selected processor does not support `sha1h s7,s31' +[^:]+:33: Error: selected processor does not support `sha1su1 v7\.4s,v31\.4s' +[^:]+:34: Error: selected processor does not support `sha256su0 v7\.4s,v31\.4s' +[^:]+:36: Error: selected processor does not support `sha1c q7,s15,v31\.4s' +[^:]+:37: Error: selected processor does not support `sha1p q7,s15,v31\.4s' +[^:]+:38: Error: selected processor does not support `sha1m q7,s15,v31\.4s' +[^:]+:40: Error: selected processor does not support `sha1su0 v7\.4s,v15\.4s,v31\.4s' +[^:]+:41: Error: selected processor does not support `sha256h q7,q15,v31\.4s' +[^:]+:42: Error: selected processor does not support `sha256h2 q7,q15,v31\.4s' +[^:]+:43: Error: selected processor does not support `sha256su1 v7\.4s,v15\.4s,v31\.4s' +[^:]+:45: Error: selected processor does not support `pmull v7\.8h,v15\.8b,v31\.8b' +[^:]+:46: Error: selected processor does not support `pmull v7\.1q,v15\.1d,v31\.1d' +[^:]+:47: Error: selected processor does not support `pmull2 v7\.8h,v15\.16b,v31\.16b' +[^:]+:48: Error: selected processor does not support `pmull2 v7\.1q,v15\.2d,v31\.2d' diff --git a/gas/testsuite/gas/aarch64/illegal-fp16-nofp.d b/gas/testsuite/gas/aarch64/illegal-fp16-nofp.d new file mode 100644 index 0000000..7aefc53 --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-fp16-nofp.d @@ -0,0 +1,2 @@ +#as: -march=armv8.2-a+fp16+nofp -mno-verbose-error +#error-output: illegal-fp16-nofp.l diff --git a/gas/testsuite/gas/aarch64/illegal-fp16-nofp.l b/gas/testsuite/gas/aarch64/illegal-fp16-nofp.l new file mode 100644 index 0000000..f153689 --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-fp16-nofp.l @@ -0,0 +1,6 @@ +[^:]*: Assembler messages: +[^:]+:3: Error: selected processor does not support `fneg s0,s1' +[^:]+:4: Error: selected processor does not support `fneg h0,h1' +[^:]+:5: Error: selected processor does not support `fneg v0\.4s,v1\.4s' +[^:]+:6: Error: selected processor does not support `fneg v0\.8h,v1\.8h' +[^:]+:7: Error: selected processor does not support `neg v0\.16b,v1\.16b' diff --git a/gas/testsuite/gas/aarch64/illegal-fp16-nofp.s b/gas/testsuite/gas/aarch64/illegal-fp16-nofp.s new file mode 100644 index 0000000..27dd43d --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-fp16-nofp.s @@ -0,0 +1,7 @@ +// Test -march=armv8.2-a+fp16+nofp to disable fp, fp16 and simd. +.text + fneg s0, s1 + fneg h0, h1 + fneg v0.4s, v1.4s + fneg v0.8h, v1.8h + neg v0.16b, v1.16b