AVX-512. Fix constants for 32b variant.

gcc/testsuite/
	* gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
	constant.
	* gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.

From-SVN: r244941
This commit is contained in:
Kirill Yukhin 2017-01-26 16:56:12 +00:00 committed by Kirill Yukhin
parent 3b4c055b54
commit b63144aa0f
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
* gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
constant.
* gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
2017-01-26 Jakub Jelinek <jakub@redhat.com>
* config/i386/avx512fintrin.h (_ktest_mask16_u8,

View File

@ -11,6 +11,6 @@ avx512bw_test ()
unsigned int i = 53;
volatile __mmask64 r = _kshiftli_mask64 (k1, i);
if (r != 1 << i)
if (r != 1ULL << i)
abort ();
}

View File

@ -1,3 +1,4 @@
/* { dg-do run } */
/* { dg-options "-O2 -mavx512bw" } */
/* { dg-require-effective-target avx512bw } */
@ -8,7 +9,7 @@ void
avx512bw_test ()
{
unsigned int i = 53;
__mmask64 k1 = 1 << i;
__mmask64 k1 = 1ULL << i;
volatile __mmask64 r = _kshiftri_mask64 (k1, i);
if (r != 1)