<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/131218>131218</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Arm CSSC not supported in target_version/target_clones
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tavianator
</td>
</tr>
</table>
<pre>
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?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVDvzozYQ_zRLs4NHSMbggsKP8yT1FSk9AhasRJYYaWVfvn1G2Lm7_79JivNojB67q99jQcdoZkfUQX2E-lzoxDcfOtYPo51mH4rej393J39fjDVuRr6ZiJOxBOKQx068xgDicL1q5mD6xHS9gmxBtqzDTHwdrHcU1y05xDiAlCBPCFKONOlked3Yv4c4GMc4eQ-yzbNvIPcIzRHEARExEKfg8Hrtk7Fs3HXxy-CTY5BtDgWVI6E5_4zvBfdp-IYZrdVuxrIMbE0P6jys_CiUgWEn8KmDi8g3zZ9Y5rk6RZ_CQKC-gDpUoA4q_61Jxs15mlxMy-ID04ggmxfjBo1DvlHe-SRLg9-Fw8hhrXL8jzgzOx9y_fpY_vFelN-PI9Tnt1wVQnPCX-cNrr9cE-ov_1OQB4VovENrIuPgHWvjIpLjYOglNI7eZcJo7osectBIOJOjoDlnrjSn5Ia8Ku_JsnkXfTH9ZPRv_kkPCpnIafV69BQxuZFCZO3G3ATlXYfhBuqsw_3RbppSgzyuCuxEToweDeNfzj8j6t4nXt2jb0wu37tB_D1jp0CocTTTRIEcY1zIrq_K5MPL7534KPVO_OTjQ9tEoC7F2Klxr_a6oK5qttVeCCVUcevEtlJCDpL29XaqdoLaXT3uqBJN1ap62hamk0LWQlVKVlW1lRtqWllV7TQ109g32x62gu7a2I21j_vGh7kwMSbqKlXJqi2s7snG9QsgpaMnrqfZ9fpchC4nlX2aI2xF9i_-KMOGLXWHcMfT168ndJ7xR-Pnbn_R_tcoefmgQ5GC7W7MSwR1AHkBeZkN31K_Gfwd5CVf836US_B_0sAgLyu4CPLyRv_o5D8BAAD__-nyghc">