summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c
index 2b0212e1c54..e1ab847a54d 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-vcvttps2udq-2.c
@@ -9,6 +9,7 @@
#define SIZE (AVX512F_LEN / 32)
#include "avx512f-mask-type.h"
+static void
CALC (unsigned *r, float *s)
{
int i;
@@ -16,11 +17,11 @@ CALC (unsigned *r, float *s)
r[i] = (unsigned) s[i];
}
-void static
+void
TEST (void)
{
- int i, sign;
- UNION_TYPE (AVX512F_LEN, i_d) res1, res2, res3;
+ int i;
+ UNION_TYPE (AVX512F_LEN, i_ud) res1, res2, res3;
UNION_TYPE (AVX512F_LEN,) src;
MASK_TYPE mask = MASK_VALUE;
unsigned res_ref[SIZE];
@@ -37,14 +38,14 @@ TEST (void)
CALC (res_ref, src.a);
- if (UNION_CHECK (AVX512F_LEN, i_d) (res1, res_ref))
+ if (UNION_CHECK (AVX512F_LEN, i_ud) (res1, res_ref))
abort ();
- MASK_MERGE (i_d) (res_ref, mask, SIZE);
- if (UNION_CHECK (AVX512F_LEN, i_d) (res2, res_ref))
+ MASK_MERGE (i_ud) (res_ref, mask, SIZE);
+ if (UNION_CHECK (AVX512F_LEN, i_ud) (res2, res_ref))
abort ();
- MASK_ZERO (i_d) (res_ref, mask, SIZE);
- if (UNION_CHECK (AVX512F_LEN, i_d) (res3, res_ref))
+ MASK_ZERO (i_ud) (res_ref, mask, SIZE);
+ if (UNION_CHECK (AVX512F_LEN, i_ud) (res3, res_ref))
abort ();
}