diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512f-vpandd-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512f-vpandd-2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vpandd-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vpandd-2.c index b422c9d5dbd..55786bc6289 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-vpandd-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-vpandd-2.c @@ -18,7 +18,7 @@ CALC (int *s1, int *s2, int *r) r[i] = s1[i] & s2[i]; } -void static +void TEST (void) { UNION_TYPE (AVX512F_LEN, i_d) s1, s2, res1, res2, res3, res4; @@ -34,18 +34,22 @@ TEST (void) res3.a[i] = DEFAULT_VALUE; } +#if AVX512F_LEN == 512 res1.x = INTRINSIC (_and_si512) (s1.x, s2.x); res2.x = INTRINSIC (_and_epi32) (s1.x, s2.x); +#endif res3.x = INTRINSIC (_mask_and_epi32) (res3.x, mask, s1.x, s2.x); res4.x = INTRINSIC (_maskz_and_epi32) (mask, s1.x, s2.x); CALC (s1.a, s2.a, res_ref); +#if AVX512F_LEN == 512 if (UNION_CHECK (AVX512F_LEN, i_d) (res1, res_ref)) abort (); if (UNION_CHECK (AVX512F_LEN, i_d) (res2, res_ref)) abort (); +#endif MASK_MERGE (i_d) (res_ref, mask, SIZE); if (UNION_CHECK (AVX512F_LEN, i_d) (res3, res_ref)) |