From: Kirill Yukhin Date: Thu, 26 Jan 2017 16:56:12 +0000 (+0000) Subject: AVX-512. Fix constants for 32b variant. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b63144aa0fce12fb94e3655bc04017e619f1dfa6;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0d588b630c..903e966ac6e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-01-26 Kirill Yukhin + + * 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 * config/i386/avx512fintrin.h (_ktest_mask16_u8, diff --git a/gcc/testsuite/gcc.target/i386/avx512bw-kshiftlq-2.c b/gcc/testsuite/gcc.target/i386/avx512bw-kshiftlq-2.c index 4dabb4a3ead..f578625ff9b 100644 --- a/gcc/testsuite/gcc.target/i386/avx512bw-kshiftlq-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512bw-kshiftlq-2.c @@ -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 (); } diff --git a/gcc/testsuite/gcc.target/i386/avx512bw-kshiftrq-2.c b/gcc/testsuite/gcc.target/i386/avx512bw-kshiftrq-2.c index 655f926df94..c6ba0b23f88 100644 --- a/gcc/testsuite/gcc.target/i386/avx512bw-kshiftrq-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512bw-kshiftrq-2.c @@ -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)