From patchwork Mon Jun 7 14:36:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1488707 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=kp92vl5R; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FzGFS1sX1z9sRN for ; Tue, 8 Jun 2021 00:38:19 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B546D388980A for ; Mon, 7 Jun 2021 14:38:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B546D388980A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1623076697; bh=VjhBjmLcjYLFlMuEqE6R1oDGpdtPK6/3VHNNxbOzECw=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=kp92vl5RPsZ9oFUJN9ZtGjpaJq/EKT4F2kfhbYROExRN7fkaW1HVKKgA1UfiwrXu0 t80gpVW5Dj/hwm5HS2UToduKMuxYvBjUH6rvZukhQGvc3Ofze6TIhWdsKskN47TPAe qwAQ6va3qJfdSqrDQOouEKmcUwu9LNnRANQxZREA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id C59793839C61 for ; Mon, 7 Jun 2021 14:37:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C59793839C61 Received: by mail-oi1-x22d.google.com with SMTP id m137so14363083oig.6 for ; Mon, 07 Jun 2021 07:37:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VjhBjmLcjYLFlMuEqE6R1oDGpdtPK6/3VHNNxbOzECw=; b=XJJHfXoXExMOCTnU7r0aGkFz7iN7lu/v3BZi5chwWfjpB07MIC4RnusWyDdi3GHBx8 iqDUmiE0QPW0Bz4izyd2+udTm2qjRW/E5v1QpR4KSN0IrPdNMim2PdUAhLOaEB5cB0nS VQGI4A65Pi57qcfx1XblFJjiVhKRwJDwvSHXs1yqhmW8PvvpWcEVEGduxqTNa5+nFOs2 Dq8YnSdLTRmB1pWB/uO9M9N03TfBOUktZijFWZo8WqP2kKNVuPSth2D2vWthzgpCIb6o xeMewE+THmPkiGZc8UNfRHMqSgVXmGPT9xbwH6evae76a5uoeQFV8QQYhGONVpppllgx 9tnQ== X-Gm-Message-State: AOAM531fJgb2am/Q1KQjs3YlnLbuwoo/2XovxNkJPy7su1KTSJvT6ljz 3FLAgG6ABdFhiP99n6LQ8zOeI5iymT9MTe/aJQA= X-Google-Smtp-Source: ABdhPJySXmQnI/KJeE0wdw/48UGqHT5E6y1yTsU6HbceYGGD8+WWF+5dvvtb3Kd+Pf0ZUFWBqDZUiEHm1ZZpVvDjKDw= X-Received: by 2002:a05:6808:14d0:: with SMTP id f16mr19280413oiw.156.1623076645201; Mon, 07 Jun 2021 07:37:25 -0700 (PDT) MIME-Version: 1.0 References: <20210603090726.38790-1-hongtao.liu@intel.com> <20210603134836.GG7746@tucnak> <20210604074553.GP7746@tucnak> In-Reply-To: <20210604074553.GP7746@tucnak> Date: Mon, 7 Jun 2021 07:36:49 -0700 Message-ID: Subject: [PATCH] x86: Update g++.target/i386/pr100885.C To: Jakub Jelinek X-Spam-Status: No, score=-3033.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: "H.J. Lu via Gcc-patches" From: "H.J. Lu" Reply-To: "H.J. Lu" Cc: "Liu, Hongtao" , "gcc-patches@gcc.gnu.org" Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" On Fri, Jun 4, 2021 at 12:47 AM Jakub Jelinek via Gcc-patches wrote: > > On Fri, Jun 04, 2021 at 01:03:58AM +0000, Liu, Hongtao wrote: > > Thanks for the review. > > Yes, you're right, AVX512VL parts are already guaranteed by ix86_hard_regno_mode_ok. > > > > Here is updated patch. > > One remaining thing, could you try to modify the testcase back to > #include and using intrinsics instead of the target builtins, > so that next time we replace some builtins we don't have to adjust the > testcase (and of course verify that without your patch it still ICEs and > with your patch it doesn't)? > > Ok for trunk with that change. > > Jakub > I am checking in this as an obvious fix. From 6dcfc0b15c4bcb97ab5eb9c4d78c383fe38cba51 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 7 Jun 2021 07:29:31 -0700 Subject: [PATCH] x86: Update g++.target/i386/pr100885.C Since long is 32 bits for x32, update g++.target/i386/pr100885.C to cast __m64 to long long for x32. PR target/100885 * g++.target/i386/pr100885.C (_mm_set_epi64): Cast __m64 to long long. --- gcc/testsuite/g++.target/i386/pr100885.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.target/i386/pr100885.C b/gcc/testsuite/g++.target/i386/pr100885.C index 08a5bdd02a2..bec08f7e96d 100644 --- a/gcc/testsuite/g++.target/i386/pr100885.C +++ b/gcc/testsuite/g++.target/i386/pr100885.C @@ -33,7 +33,7 @@ protected: } }; __m128i _mm_set_epi64(__m64 __q0) { - __m128i __trans_tmp_5{(long)__q0}; + __m128i __trans_tmp_5{(long long)__q0}; return __trans_tmp_5; } long _mm_storel_epi64___P, Draw_dsts; -- 2.31.1