Open lylythechosenone opened 1 month ago
LLVM accepts fp-armv8
on AArch64: https://github.com/llvm/llvm-project/blob/bf7c505847aa58af23f14ee986ee4bb7acf22e62/llvm/lib/Target/AArch64/AArch64Features.td#L105-L107
neon
implies fp-armv8
and vice versa: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AArch64/AArch64Features.td#L112
And in fact if I use -Ctarget-feature=+fp-armv8
it compiles fine: https://rust.godbolt.org/z/9en9M7Tab
Also note that this error message come directly from LLVM. The only thing rustc has control over is the exact format the error message is rendered in.
it may work, but it's certainly not correct. For example, rust-analyzer
sees fp-armv8
as nonexistent and always marks it as disabled.
As for the second part, I can see how that would be a problem. I guess parsing llvm errors is not something we really want to do.
Code
Current output
Desired output
Rationale and extra context
This error only appears on
aarch64-unknown-none-softfloat
(all otheraarch64
s haveneon
).fp-armv8
is not an aarch64 feature, it's an arm feature.neon
is the equivalent aarch64 feature afaict.Other cases
No response
Rust Version
Anything else?
No response