1 /* Test case to check if intrinsics and function specific target
2 optimizations work together. Check if the POPCNT specific intrinsics
3 in included with popcntintrin.h get enabled by directly including
6 /* { dg-do compile } */
7 /* { dg-options "-O2 -msse -mno-sse4.1 -mno-sse4.2 -mno-popcnt" } */
9 #include <popcntintrin.h>
11 __attribute__((target("popcnt")))
12 long long foo(unsigned long long X
)
14 return _mm_popcnt_u64 (X
);