20 lines · c
1// REQUIRES: x86-target-arch2// RUN: %clang_builtins %s %librt -o %t && %run %t3// REQUIRES: librt_has_x864 5// FIXME: XFAIL the test because it is expected to return non-zero value.6// XFAIL: *7#include <stdio.h>8 9int main (void) {10#if defined(i386) || defined(__x86_64__)11 if(__builtin_cpu_supports("avx2"))12 return 4;13 else14 return 3;15#else16 printf("skipped\n");17 return 0;18#endif19}20