Re: clang inline asm

Paul Floyd <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.