Commits
Ryan Schmidt authored eba0b51ea33
1 + | http://lists.llvm.org/pipermail/cfe-dev/2017-August/055140.html |
2 + | |
3 + | --- test/utils-prng.c.orig 2017-11-25 14:38:28.000000000 -0800 |
4 + | +++ test/utils-prng.c 2017-11-25 14:39:16.000000000 -0800 |
5 + | |
6 + | #include "utils.h" |
7 + | #include "utils-prng.h" |
8 + | |
9 + | +#ifndef __has_builtin |
10 + | +#define __has_builtin(x) 0 |
11 + | +#endif |
12 + | + |
13 + | #if defined(HAVE_GCC_VECTOR_EXTENSIONS) && defined(__SSE2__) |
14 + | #include <xmmintrin.h> |
15 + | #endif |
16 + | |
17 + | } |
18 + | else |
19 + | { |
20 + | -#ifdef HAVE_GCC_VECTOR_EXTENSIONS |
21 + | +#if defined(HAVE_GCC_VECTOR_EXTENSIONS) && __has_builtin(__builtin_shuffle) |
22 + | const uint8x16 bswap_shufflemask = |
23 + | { |
24 + | 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12 |