aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2011-08-23 23:14:10 +0200
committerUros Bizjak <uros@gcc.gnu.org>2011-08-23 23:14:10 +0200
commitc1415b6e0baf02a393a2fb48fffd7532d6b1de01 (patch)
treefe2c03b05c52c5452138cc46ebab91a90b088ab1
parent78d8c16ca93453666755e70c5931bffda080d12c (diff)
downloadgcc-c1415b6e0baf02a393a2fb48fffd7532d6b1de01.zip
gcc-c1415b6e0baf02a393a2fb48fffd7532d6b1de01.tar.gz
gcc-c1415b6e0baf02a393a2fb48fffd7532d6b1de01.tar.bz2
* config/i386/sse-22.c: Rearrange to fix sse-22a.c failure.
From-SVN: r178017
-rw-r--r--gcc/testsuite/gcc.target/i386/sse-22.c76
1 files changed, 39 insertions, 37 deletions
diff --git a/gcc/testsuite/gcc.target/i386/sse-22.c b/gcc/testsuite/gcc.target/i386/sse-22.c
index 5b45c48..89ea7b3 100644
--- a/gcc/testsuite/gcc.target/i386/sse-22.c
+++ b/gcc/testsuite/gcc.target/i386/sse-22.c
@@ -161,9 +161,14 @@ test_4 (_mm_cmpestrz, int, __m128i, int, __m128i, int, 1)
/* immintrin.h (AVX/AVX2/RDRND/FSGSBASE/F16C) */
#ifdef DIFFERENT_PRAGMAS
-#pragma GCC target ("avx,rdrnd,fsgsbase,f16c")
+#pragma GCC target ("avx,avx2,rdrnd,fsgsbase,f16c")
#endif
#include <immintrin.h>
+test_1 (_cvtss_sh, unsigned short, float, 1)
+test_1 (_mm_cvtps_ph, __m128i, __m128, 1)
+test_1 (_mm256_cvtps_ph, __m128i, __m256, 1)
+
+/* avxintrin.h */
test_2 (_mm256_blend_pd, __m256d, __m256d, __m256d, 1)
test_2 (_mm256_blend_ps, __m256, __m256, __m256, 1)
test_2 (_mm256_dp_ps, __m256, __m256, __m256, 1)
@@ -202,9 +207,39 @@ test_2 (_mm256_insert_epi64, __m256i, __m256i, long long, 1)
#endif
test_1 (_mm256_round_pd, __m256d, __m256d, 1)
test_1 (_mm256_round_ps, __m256, __m256, 1)
-test_1 (_cvtss_sh, unsigned short, float, 1)
-test_1 (_mm_cvtps_ph, __m128i, __m128, 1)
-test_1 (_mm256_cvtps_ph, __m128i, __m256, 1)
+
+/* avx2intrin.h */
+test_2 ( _mm256_mpsadbw_epu8, __m256i, __m256i, __m256i, 1)
+test_2 ( _mm256_alignr_epi8, __m256i, __m256i, __m256i, 1)
+test_2 ( _mm256_blend_epi16, __m256i, __m256i, __m256i, 1)
+test_1 ( _mm256_shuffle_epi32, __m256i, __m256i, 1)
+test_1 ( _mm256_shufflehi_epi16, __m256i, __m256i, 1)
+test_1 ( _mm256_shufflelo_epi16, __m256i, __m256i, 1)
+test_1 ( _mm256_slli_si256, __m256i, __m256i, 8)
+test_1 ( _mm256_srli_si256, __m256i, __m256i, 8)
+test_2 ( _mm_blend_epi32, __m128i, __m128i, __m128i, 1)
+test_2 ( _mm256_blend_epi32, __m256i, __m256i, __m256, 1)
+test_1 ( _mm256_permute4x64_pd, __m256d, __m256d, 1)
+test_1 ( _mm256_permute4x64_epi64, __m256i, __m256i, 1)
+test_2 ( _mm256_permute2x128_si256, __m256i, __m256i, __m256i, 1)
+test_1 ( _mm256_extracti128_si256, __m128i, __m256i, 1)
+test_2 ( _mm256_inserti128_si256, __m256i, __m256i, __m128i, 1)
+test_2 ( _mm_i32gather_pd, __m128d, double const *, __m128i, 1)
+test_2 ( _mm256_i32gather_pd, __m256d, double const *, __m128i, 1)
+test_2 ( _mm_i64gather_pd, __m128d, double const *, __m128i, 1)
+test_2 ( _mm256_i64gather_pd, __m256d, double const *, __m256i, 1)
+test_2 ( _mm_i32gather_ps, __m128, float const *, __m128i, 1)
+test_2 ( _mm256_i32gather_ps, __m256, float const *, __m256i, 1)
+test_2 ( _mm_i64gather_ps, __m128, float const *, __m128i, 1)
+test_2 ( _mm256_i64gather_ps, __m128, float const *, __m256i, 1)
+test_2 ( _mm_i32gather_epi64, __m128i, long long int const *, __m128i, 1)
+test_2 ( _mm256_i32gather_epi64, __m256i, long long int const *, __m128i, 1)
+test_2 ( _mm_i64gather_epi64, __m128i, long long int const *, __m128i, 1)
+test_2 ( _mm256_i64gather_epi64, __m256i, long long int const *, __m256i, 1)
+test_2 ( _mm_i32gather_epi32, __m128i, int const *, __m128i, 1)
+test_2 ( _mm256_i32gather_epi32, __m256i, int const *, __m256i, 1)
+test_2 ( _mm_i64gather_epi32, __m128i, int const *, __m128i, 1)
+test_2 ( _mm256_i64gather_epi32, __m128i, int const *, __m256i, 1)
/* wmmintrin.h (AES/PCLMUL). */
#ifdef DIFFERENT_PRAGMAS
@@ -248,36 +283,3 @@ test_1 ( __bextri_u32, unsigned int, unsigned int, 1)
#ifdef __x86_64__
test_1 ( __bextri_u64, unsigned long long, unsigned long long, 1)
#endif
-
-/* avx2intrin.h */
-test_2 ( _mm256_mpsadbw_epu8, __m256i, __m256i, __m256i, 1)
-test_2 ( _mm256_alignr_epi8, __m256i, __m256i, __m256i, 1)
-test_2 ( _mm256_blend_epi16, __m256i, __m256i, __m256i, 1)
-test_1 ( _mm256_shuffle_epi32, __m256i, __m256i, 1)
-test_1 ( _mm256_shufflehi_epi16, __m256i, __m256i, 1)
-test_1 ( _mm256_shufflelo_epi16, __m256i, __m256i, 1)
-test_1 ( _mm256_slli_si256, __m256i, __m256i, 8)
-test_1 ( _mm256_srli_si256, __m256i, __m256i, 8)
-test_2 ( _mm_blend_epi32, __m128i, __m128i, __m128i, 1)
-test_2 ( _mm256_blend_epi32, __m256i, __m256i, __m256, 1)
-test_1 ( _mm256_permute4x64_pd, __m256d, __m256d, 1)
-test_1 ( _mm256_permute4x64_epi64, __m256i, __m256i, 1)
-test_2 ( _mm256_permute2x128_si256, __m256i, __m256i, __m256i, 1)
-test_1 ( _mm256_extracti128_si256, __m128i, __m256i, 1)
-test_2 ( _mm256_inserti128_si256, __m256i, __m256i, __m128i, 1)
-test_2 ( _mm_i32gather_pd, __m128d, double const *, __m128i, 1)
-test_2 ( _mm256_i32gather_pd, __m256d, double const *, __m128i, 1)
-test_2 ( _mm_i64gather_pd, __m128d, double const *, __m128i, 1)
-test_2 ( _mm256_i64gather_pd, __m256d, double const *, __m256i, 1)
-test_2 ( _mm_i32gather_ps, __m128, float const *, __m128i, 1)
-test_2 ( _mm256_i32gather_ps, __m256, float const *, __m256i, 1)
-test_2 ( _mm_i64gather_ps, __m128, float const *, __m128i, 1)
-test_2 ( _mm256_i64gather_ps, __m128, float const *, __m256i, 1)
-test_2 ( _mm_i32gather_epi64, __m128i, long long int const *, __m128i, 1)
-test_2 ( _mm256_i32gather_epi64, __m256i, long long int const *, __m128i, 1)
-test_2 ( _mm_i64gather_epi64, __m128i, long long int const *, __m128i, 1)
-test_2 ( _mm256_i64gather_epi64, __m256i, long long int const *, __m256i, 1)
-test_2 ( _mm_i32gather_epi32, __m128i, int const *, __m128i, 1)
-test_2 ( _mm256_i32gather_epi32, __m256i, int const *, __m256i, 1)
-test_2 ( _mm_i64gather_epi32, __m128i, int const *, __m128i, 1)
-test_2 ( _mm256_i64gather_epi32, __m128i, int const *, __m256i, 1)