After JDK-8319577, my local build (linux & GCC 7.5.0) fails with the following error message. It seems the old GCC (such as 7.5.0 locally) can't identify the constants well.
```
/home/lgx/source/java/jdkvm/src/java.base/linux/native/libsimdsort/avx512-64bit-qsort.hpp:313:17: error: the last argument must be an 8-bit immediate
v = _mm512_permutex_epi64(v, mask);
^
/home/lgx/source/java/jdkvm/src/java.base/linux/native/libsimdsort/avx512-64bit-qsort.hpp: In static member function 'static typename vtype::reg_t avx512_64bit_swizzle_ops::reverse_n(typename vtype::reg_t) [with vtype = zmm_vector<double>; int scale = 4]':
/home/lgx/source/java/jdkvm/src/java.base/linux/native/libsimdsort/avx512-64bit-qsort.hpp:313:17: error: the last argument must be an 8-bit immediate
v = _mm512_permutex_epi64(v, mask);
^
```
```
/home/lgx/source/java/jdkvm/src/java.base/linux/native/libsimdsort/avx512-64bit-qsort.hpp:313:17: error: the last argument must be an 8-bit immediate
v = _mm512_permutex_epi64(v, mask);
^
/home/lgx/source/java/jdkvm/src/java.base/linux/native/libsimdsort/avx512-64bit-qsort.hpp: In static member function 'static typename vtype::reg_t avx512_64bit_swizzle_ops::reverse_n(typename vtype::reg_t) [with vtype = zmm_vector<double>; int scale = 4]':
/home/lgx/source/java/jdkvm/src/java.base/linux/native/libsimdsort/avx512-64bit-qsort.hpp:313:17: error: the last argument must be an 8-bit immediate
v = _mm512_permutex_epi64(v, mask);
^
```
- relates to
-
JDK-8319577 x86_64 AVX2 intrinsics for Arrays.sort methods (int, float arrays)
- Resolved