This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH i386 14/8] [AVX-512] Fix exp2 and sqrt tests.
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 28 Feb 2014 15:14:13 +0300
- Subject: [PATCH i386 14/8] [AVX-512] Fix exp2 and sqrt tests.
- Authentication-results: sourceware.org; auth=none
Hello,
This is relatively obvious patch which eliminates comparision
of inifinities for exp2 AVX-512 test and properly comparing floats
for avx512f-sqrtps-2.c.
Tests pass.
Is it ok for trunk?
gcc/testsuite/
* gcc.target/i386/avx512er-vexp2ps-2.c: Decrease exponent
argument to avoid inf values.
* gcc.target/i386/avx512er-vexp2ps-2.c: Compare results with
UNION_FP_CHECK machinery.
--
Thanks, K
---
gcc/testsuite/gcc.target/i386/avx512er-vexp2ps-2.c | 2 +-
gcc/testsuite/gcc.target/i386/avx512f-vdivps-2.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/avx512er-vexp2ps-2.c b/gcc/testsuite/gcc.target/i386/avx512er-vexp2ps-2.c
index 06ef68c..ab911c0 100644
--- a/gcc/testsuite/gcc.target/i386/avx512er-vexp2ps-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx512er-vexp2ps-2.c
@@ -25,7 +25,7 @@ avx512er_test (void)
for (i = 0; i < 16; i++)
{
- src.a[i] = 179.345 - 6.5645 * i;
+ src.a[i] = 79.345 - 6.5645 * i;
res2.a[i] = DEFAULT_VALUE;
}
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vdivps-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vdivps-2.c
index 5249bbd..f5a7b78 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-vdivps-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-vdivps-2.c
@@ -46,10 +46,10 @@ TEST (void)
abort ();
MASK_MERGE () (res_ref, mask, SIZE);
- if (UNION_CHECK (AVX512F_LEN,) (res2, res_ref))
+ if (UNION_FP_CHECK (AVX512F_LEN,) (res2, res_ref))
abort ();
MASK_ZERO () (res_ref, mask, SIZE);
- if (UNION_CHECK (AVX512F_LEN,) (res3, res_ref))
+ if (UNION_FP_CHECK (AVX512F_LEN,) (res3, res_ref))
abort ();