llvm-project
llvm-project copied to clipboard
ARM has conflicting aliases for VMOV.F64
| Bugzilla Link | 17691 |
| Version | trunk |
| OS | Linux |
Extended Description
The ARM NEON instructions define an InstAlias from "vmov.64 dD, dN" to "vmov dD, dN" (the canonical NEON vmov). Unfortunately we also define a TokenAlias from ".f64" to ".64".
Together these mean that "vmov.f64 d0, d0" will be accepted as a NEON instruction:
$ echo "vmov.f64 d0, d0" | llvm-mc -triple thumbv7 -mattr=+neon,+fp-only-sp -show-inst
vorr d11, d10, d10 @ <MCInst #1477 VORRd
@
The ARM ARM states that .f64 must not be used for the NEON encoding.
The order of these aliases as emitted by TableGen could switch at any time, leaving "vmov.f64" being assembled as VORR generally (I believe this may currently be the case on Windows).