From nobody Fri Mar 08 05:57:14 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 4Trb6R0Z2Pz5CwSp for ; Fri, 8 Mar 2024 05:57:19 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from smtp.smtpout.orange.fr (smtp-26.smtpout.orange.fr [80.12.242.26]) (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 4Trb6Q0Tl8z4dYH for ; Fri, 8 Mar 2024 05:57:17 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wanadoo.fr header.s=t20230301 header.b=BSJ6yeVt; dmarc=pass (policy=quarantine) header.from=wanadoo.fr; spf=pass (mx1.freebsd.org: domain of pjfloyd@wanadoo.fr designates 80.12.242.26 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 iTEIrRwgZUNb2iTEJrFELw; Fri, 08 Mar 2024 06:57:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1709877436; bh=crACIW8EmI0SEHNEfsA4+KF9h6eo0RluAzNPW2vRm/k=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=BSJ6yeVtMtPqCPsXguXQ+O2cOCxujl8TDBu3KImDSglit4ElHwDwUqqEtQR8CkqdR 0BCr67OmoWXW/OP9jENywanj2bTc5vWn8JJaGB2tNN33zYa1WXlJgiw5vaPCcsRzOr 5PIzMToa/TqK3TILDYks2cDPs3ZfreySaNKWbtDCuerCj5yQ0wS5/63VtNkdPQz+Bh pz3QoEzMdgzVn4LTb6Vip7jfctJRL8n3fpMChE6w5XEaIE7mC4ofS9p/g6/b+7WauW BF5lr0tTMm2cCye8f5BeWC/BQuzvXpM/AdxVOMax7Wtwksbr3BnOikHxEVeE5l1fsI P1UGIRHU7wMLw== X-ME-Helo: [192.168.1.28] X-ME-Auth: cGpmbG95ZEB3YW5hZG9vLmZy X-ME-Date: Fri, 08 Mar 2024 06:57:16 +0100 X-ME-IP: 90.112.30.115 Message-ID: <8273e5bf-bfa5-4ec0-bd8d-0716dec2dd6f@wanadoo.fr> Date: Fri, 8 Mar 2024 06:57:14 +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 Subject: Re: clang inline asm To: freebsd-arm@freebsd.org References: Content-Language: en-US From: Paul Floyd In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.94 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.991]; NEURAL_HAM_SHORT(-0.96)[-0.961]; DMARC_POLICY_ALLOW(-0.50)[wanadoo.fr,quarantine]; R_DKIM_ALLOW(-0.20)[wanadoo.fr:s=t20230301]; R_SPF_ALLOW(-0.20)[+ip4:80.12.242.0/25]; RWL_MAILSPIKE_GOOD(-0.10)[80.12.242.26:from]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[wanadoo.fr:dkim]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[wanadoo.fr]; TO_MATCH_ENVRCPT_ALL(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:80.12.240.0/20, country:FR]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[80.12.242.26:from] X-Rspamd-Queue-Id: 4Trb6Q0Tl8z4dYH On 07-03-24 13:52, Paul Floyd wrote: > 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); Hi I have the answer. gas silently rewrites the third x register as a w register. clang is stricter and generates an error. A+ Paul