2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / intrinsics_3.c
blob1280992580603db09f8d6da6f77299c473f03de7
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
4 popcntintrin.h */
6 /* { dg-do compile } */
7 /* { dg-options "-O2 -msse -mno-sse4.1 -mno-sse4.2 -mno-popcnt -std=gnu89" } */
9 #include <popcntintrin.h>
11 __attribute__((target("popcnt")))
12 long long foo(unsigned long long X)
14 return _mm_popcnt_u64 (X);