From nobody Thu Mar 07 12:52:42 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tr8NH0X2hz5CxLm for ; Thu, 7 Mar 2024 12:52:47 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from msa.smtpout.orange.fr (out-66.smtpout.orange.fr [193.252.22.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.smtpout.orange.fr", Issuer "DigiCert Global G2 TLS RSA SHA256 2020 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tr8NF4Nqhz4mxt for ; Thu, 7 Mar 2024 12:52:45 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wanadoo.fr header.s=t20230301 header.b=kiv6df2s; dmarc=pass (policy=quarantine) header.from=wanadoo.fr; spf=pass (mx1.freebsd.org: domain of pjfloyd@wanadoo.fr designates 193.252.22.66 as permitted sender) smtp.mailfrom=pjfloyd@wanadoo.fr Received: from [192.168.1.28] ([90.112.30.115]) by smtp.orange.fr with ESMTPA id iDEorXYflxjQmiDEprpQ4P; Thu, 07 Mar 2024 13:52:43 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1709815963; bh=K6saQCUxi86JMod5PUA2Qda3Mwt3q8kuPw6zpvvaTH4=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=kiv6df2sxvKsYDIVVFag0e2zFR97JjkpqzCfi+2vOv8MlKpxejWBnS76PAyJOB6KB b8raGDEUuaGhQhJsxZLC2rcO2Spqbb8V0w69/RGu+fxtFNvPPXZFgp8BXB/CBiEDfX jiGh9Vf7AgqtlvhrATgF/LazakdHiYGq7e8aEtLWvdkSzXkef13z0li9s2nmEvbI/Z OhUezWJODBmaniv7hrr+Ztr5FTsjh2aJI7AmqrkN4lFiCVzO0cQDU9umU6BKKq+wGX h7uQmqnVwp3URo2BjwUQftMbgLSIY1r6+OktGUpkIwIfVqmL911WPY2twtk0dwcESG jalbOPOkxlNRg== X-ME-Helo: [192.168.1.28] X-ME-Auth: cGpmbG95ZEB3YW5hZG9vLmZy X-ME-Date: Thu, 07 Mar 2024 13:52:43 +0100 X-ME-IP: 90.112.30.115 Message-ID: Date: Thu, 7 Mar 2024 13:52:42 +0100 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: freebsd-arm@FreeBSD.org Content-Language: en-US From: Paul Floyd Subject: clang inline asm Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.69 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.80)[-0.804]; DMARC_POLICY_ALLOW(-0.50)[wanadoo.fr,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:193.252.22.0/25]; R_DKIM_ALLOW(-0.20)[wanadoo.fr:s=t20230301]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; DWL_DNSWL_NONE(0.00)[wanadoo.fr:dkim]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[wanadoo.fr]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[wanadoo.fr]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[wanadoo.fr:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:3215, ipnet:193.252.20.0/22, country:FR]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[193.252.22.66:from] X-Rspamd-Queue-Id: 4Tr8NF4Nqhz4mxt Hi I'm trying to port some tests from gcc to clang arm64. I've found fixes for most of the things (though I haven't checked that they still build with gcc). I'm a bit stuck on one: TESTINST3("add x21,x22,x23,uxtb #0", NN0, NN1, x21,x22,x23,0); clang says armv8-a clang 17.0.1 - cached Output of armv8-a clang 17.0.1 (Compiler #1) :3:8: error: expected 'sxtx' 'uxtx' or 'lsl' with optional integer in range [0, 4] 3 | asm("add x21,x22,x23,uxtb #0"); | ^ :1:18: note: instantiated into assembly here 1 | add x21,x22,x23,uxtb #0 https://godbolt.org/z/4j7q7r8M4 Is this a limitation of clang arm64? The full source is here https://github.com/paulfloyd/freebsdarm64_valgrind/blob/freebsdarm64_valgrind/none/tests/arm64/integer.c A+ Paul