Issue |
149370
|
Summary |
[ARM64] -march=native omits features detected by -mcpu=native
|
Labels |
new issue
|
Assignees |
|
Reporter |
sh1boot
|
Tested on clang-19 on a WSL Ubuntu aarch64 host and native Linux Debian aarch64 host (clang-19.1.7):
```zsh
diff -u <(clang -xc /dev/null -E -dM -march=native) <(clang -xc /dev/null -E -dM -mcpu=native)
```
The feature defines for `-march=native` lack the crypto features which the host CPU does have, while the feature defines for `-mcpu=native` are complete (or at least better).
Unfortunately `-mcpu` is unsupported on x86, so this forces the use of two different command lines depending on the host architecture.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs