From patchwork Wed Mar 2 01:24:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongyu Wang X-Patchwork-Id: 51496 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A4965385840A for ; Wed, 2 Mar 2022 01:25:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4965385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1646184311; bh=GGenCQaWSdGEWW3/xdTLt1sKMkh3CEozRteiMHkmp4Q=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=P5HhsYgH5B19HrjRy9rEVcQvCLiN4MwQPFev4TPGZ9V44HM9znSVgknni6L/NJT0d UxmHECGgczDYCu0pIzWm3YRWx1s+0D7Udg+uA9rU44n322uERzJlYqDWE6DX5yB8EU 20p6zZ1kIglfbF7rNOiwqpZnovhlYeMiVRnbHZsY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by sourceware.org (Postfix) with ESMTPS id 3359B3858408 for ; Wed, 2 Mar 2022 01:24:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3359B3858408 X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="250860512" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="250860512" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 17:24:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="630232373" Received: from scymds02.sc.intel.com ([10.82.73.244]) by FMSMGA003.fm.intel.com with ESMTP; 01 Mar 2022 17:24:41 -0800 Received: from shliclel320.sh.intel.com (shliclel320.sh.intel.com [10.239.236.50]) by scymds02.sc.intel.com with ESMTP id 2221OdEV023384 for ; Tue, 1 Mar 2022 17:24:40 -0800 To: gcc-patches@gcc.gnu.org Subject: [PATCH] AVX512FP16: Fix vcvt[u]si2sh runtime tests for Solaris Date: Wed, 2 Mar 2022 09:24:39 +0800 Message-Id: <20220302012439.33517-1-hongyu.wang@intel.com> X-Mailer: git-send-email 2.18.1 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hongyu Wang via Gcc-patches From: Hongyu Wang Reply-To: Hongyu Wang Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "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);