Issue |
131218
|
Summary |
Arm CSSC not supported in target_version/target_clones
|
Labels |
new issue
|
Assignees |
|
Reporter |
tavianator
|
Compiling this file
```c
__attribute__((target_clones("cssc", "default")))
int foo(int x) {
return __builtin_popcount(x);
}
```
with `clang --rtlib=compiler-rt` warns that
```
<source>:1:31: warning: unsupported 'cssc' in the 'target_clones' attribute string; 'target_clones' attribute ignored [-Wignored-attributes]
1 | __attribute__((target_clones("cssc", "default")))
| ^
<source>:1:31: warning: version list contains entries that don't impact code generation [-Wfunction-multiversion]
```
However, Clang does understand `-march=armv8.7-a+cssc`, so it knows about the extension. Is there a different spelling for the `target_clones` attribute value?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs