]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 d9c9a853a176869c064f58326cd2f45e4572a146..7f7e6032e6052f55465fc08d712c0af95e6c4d58 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 6f66a87a8e7bb128b211430166dd1f01a3ef7693..5bca1905f827057a19fedc4b3b600ae36481b87a 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 d339f0a40433df24b05e7fbe8562b2135701bda0..e17579cfd3cd310e16cd1b1bc90d05ae73d77c37 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 20e711e1b0e561e3f93299668923e2633b26a1ac..42726bd3d676b63a4de16a014ab9a271641da5b8 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);