Re: [Pixman] [PATCH] test: Adjust for clang's removal of __builtin_shuffle

2018-06-04 Thread Matt Turner
On Mon, Jun 4, 2018 at 10:37 AM, Adam Jackson wrote: > On Mon, 2018-06-04 at 10:04 -0700, Matt Turner wrote: > >> #ifdef HAVE_GCC_VECTOR_EXTENSIONS >> -const uint8x16 bswap_shufflemask = >> +# if __has_builtin(__builtin_shufflevector) >> +randdata.vb = >> +

Re: [Pixman] [PATCH] test: Adjust for clang's removal of __builtin_shuffle

2018-06-04 Thread Adam Jackson
On Mon, 2018-06-04 at 10:04 -0700, Matt Turner wrote: > #ifdef HAVE_GCC_VECTOR_EXTENSIONS > -const uint8x16 bswap_shufflemask = > +# if __has_builtin(__builtin_shufflevector) > +randdata.vb = > +__builtin_shufflevector (randdata.vb, randdata.vb, > +

[Pixman] [PATCH] test: Adjust for clang's removal of __builtin_shuffle

2018-06-04 Thread Matt Turner
From: Vladimir Smirnov __builtin_shuffle was removed in clang 5.0. Build log says: test/utils-prng.c:207:27: error: use of unknown builtin '__builtin_shuffle' [-Wimplicit-function-declaration] randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);