Date: Fri, 8 Mar 2024 06:57:14 +0100 From: Paul Floyd <pjfloyd@wanadoo.fr> To: freebsd-arm@freebsd.org Subject: Re: clang inline asm Message-ID: <8273e5bf-bfa5-4ec0-bd8d-0716dec2dd6f@wanadoo.fr> In-Reply-To: <c46f534a-7fc6-4660-8711-1cf683e9dd14@wanadoo.fr> References: <c46f534a-7fc6-4660-8711-1cf683e9dd14@wanadoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8273e5bf-bfa5-4ec0-bd8d-0716dec2dd6f>