[AArch64] Support `__attribute__((target("+frintts")))`
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
This code:
```c
#include
__attribute__((target("+frintts")))
float64x2_t foo(float64x2_t a) {
return vrnd64xq_f64(a);
}
```
doesn't compile with clang, whereas it does with gcc. https://godbolt.org/z/xWGT5bcne
(clang does support `__attribute__((target("arch=armv8.5-a")))`, which also mostly works equivalently in gcc, but in gcc it is a complete override of the global `-march=...` (not sure which is the correct behavior, if there even is one), whereas in clang it's treated as additional extensions - https://godbolt.org/z/vc5qPnWaM - so AFAICT there's currently no way to get consistent non-overriding behavior across gcc and clang without just doing some `#if __clang__` logic)
Contributor guide
Assessment
This issue has not been assessed yet.