AVX512FP16: Fix vcvt[u]si2sh runtime tests for Solaris
authorHongyu Wang <hongyu.wang@intel.com>
Tue, 1 Mar 2022 09:49:52 +0000 (17:49 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Wed, 2 Mar 2022 01:25:17 +0000 (09:25 +0800)
Use standard C type instead of __int64_t which doesn't work on Solaris.

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
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsi2sh64-1b.c
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh-1b.c
gcc/testsuite/gcc.target/i386/avx512fp16-vcvtusi2sh64-1b.c

index d9c9a85..7f7e603 100644 (file)
@@ -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);
index 6f66a87..5bca190 100644 (file)
@@ -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);
index d339f0a..e17579c 100644 (file)
@@ -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);
index 20e711e..42726bd 100644 (file)
@@ -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);