testcase: Add testcase for PR 117330 [PR117330]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / cssc_2.c
blob1637d29c6dc20c0eb55c5f3d05157b5b6c581fdc
1 /* { dg-do compile } */
2 /* { dg-additional-options "--save-temps -O1" } */
3 /* { dg-final { check-function-bodies "**" "" "" } } */
5 #include <stdint.h>
7 #pragma GCC target "+cssc"
9 /*
10 ** cntw:
11 ** cnt w0, w0
12 ** ret
15 int32_t
16 cntw (int32_t a)
18 return __builtin_popcount (a);
22 ** cntx:
23 ** cnt x0, x0
24 ** ret
27 int64_t
28 cntx (int64_t a)
30 return __builtin_popcountll (a);