* [PATCH] AVX512FP16: Fix vcvt[u]si2sh runtime tests for Solaris
@ 2022-03-02 1:24 Hongyu Wang
0 siblings, 0 replies; only message in thread
From: Hongyu Wang @ 2022-03-02 1:24 UTC (permalink / raw)
To: gcc-patches
Use standard C type instead of __int64_t which doesn't work on Solaris.
Tested by Rainer Orth on Solaris/x86. Pushed to trunk as obvious fix.
gcc/testsuite/ChangeLog:
PR target/104724
* gcc.target/i386/avx512fp16-vcvtsi2sh-1b.c: Use long long
instead of __int64_t.
* gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c: Ditto.
* gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c: Ditto.
* gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c: Ditto.
---
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh-1b.c | 2 +-
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c | 2 +-
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c | 2 +-
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh-1b.c b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh-1b.c
index d9c9a853a17..7f7e6032e60 100644
--- a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh-1b.c
+++ b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh-1b.c
@@ -9,7 +9,7 @@
void NOINLINE
emulate_vcvtsi2sh(V512 *dest, V512 op1,
- int value_32, __int64_t value_64, int bits)
+ int value_32, long long value_64, int bits)
{
V512 v1,v2,v5,v6;
unpack_ph_2twops(op1, &v1, &v2);
diff --git a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c
index 6f66a87a8e7..5bca1905f82 100644
--- a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c
+++ b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c
@@ -9,7 +9,7 @@
void NOINLINE
emulate_vcvtsi2sh(V512 *dest, V512 op1,
- int value_32, __int64_t value_64, int bits)
+ int value_32, long long value_64, int bits)
{
V512 v1,v2,v5,v6;
unpack_ph_2twops(op1, &v1, &v2);
diff --git a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c
index d339f0a4043..e17579cfd3c 100644
--- a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c
+++ b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c
@@ -9,7 +9,7 @@
void NOINLINE
emulate_vcvtusi2sh(V512 *dest, V512 op1,
- int value_32, __int64_t value_64, int bits)
+ int value_32, long long value_64, int bits)
{
V512 v1,v2,v5,v6;
unpack_ph_2twops(op1, &v1, &v2);
diff --git a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c
index 20e711e1b0e..42726bd3d67 100644
--- a/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c
+++ b/gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c
@@ -9,7 +9,7 @@
void NOINLINE
emulate_vcvtusi2sh(V512 *dest, V512 op1,
- int value_32, __int64_t value_64, int bits)
+ int value_32, long long value_64, int bits)
{
V512 v1,v2,v5,v6;
unpack_ph_2twops(op1, &v1, &v2);
--
2.18.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-02 1:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 1:24 [PATCH] AVX512FP16: Fix vcvt[u]si2sh runtime tests for Solaris Hongyu Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).