bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assembler bad code gen for AArch32


From: Frank Barchard
Subject: Assembler bad code gen for AArch32
Date: Wed, 1 Feb 2023 19:20:06 -0800

With assembly .S files or inline, the following syntax quietly produces the wrong instruction

VLD1.16       {d2[]-d3[]}, [r3]!

assembles to:

vld1.16 {d2-d3}, [r3]!

The work around is to use , not -

VLD1.16       {d2[],d3[]}, [r3]!

The error is subtle, since the code will build and run and the first value is correct.

clang accepts - and the objdump shows -
It would be better to generate a compile time error, or accept the - syntax.

Godbolt reproducible
https://godbolt.org/z/cbn6jTWT3

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]