From patchwork Mon Aug 22 02:15:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Haochen" X-Patchwork-Id: 644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp301460wro; Sun, 21 Aug 2022 19:16:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7N0eD3a6dknmLa5O00M9UuG/Z71CfpooEUaxKQjmI8k7gUyxX718ZmB3ARMEfRWC9EEkYA X-Received: by 2002:a17:906:9bf7:b0:73d:6478:5ba9 with SMTP id de55-20020a1709069bf700b0073d64785ba9mr5345388ejc.576.1661134612169; Sun, 21 Aug 2022 19:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661134612; cv=none; d=google.com; s=arc-20160816; b=vqqsKcHsbqVLjfC7j8Ox39IbAhcVbW5cGSfa20yoLQtP/tJIsQ3f+GcfDfofNgp3YT d8+ABaAtMTen+DN2c1U+24CEDhRSHKTsq9cmMZ1APIfzuF7xZ+6qqwYF8l9iVBl7Kbl3 yZsrS62xmnps54cgPngKdYzk5crdcqHuTKLRIILrW5jbPLzcncQUS9gmJRTVso18Gw86 oAOwGo3vWzi+dxcJoTRU96C0BhjjIG9ERFOMXb62FYbo4PyrSYozvqunLTB7EmW8co+v M6dx8R4wUtsLjUPAeK2NJkFoLeAyFQsyPRMrb0ZXrGiiB35KJ3VdX5oQxpfJ1w+RKPLS HGbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=PNHMGoi9wFhpL12W26wcLVLg8yAUK8bx7dGprREx+sE=; b=T/1slxHSJByJDPS/mhtodmYInA9rMyFLiML78BI12T9rEcSM3fhOoZrLQto1e1VXvp 7Ej2luqdPO4Z7I7xWzDhpO/9jyS3QrFXBk5uM02pgaxKNQJFbWEGgFXthSeO+A2inTOa U7cU/L80JDFPK91yFLmWiADzQqQZtEdd8rk4u1K7I5h0RE6uNBmkhU4+m6+fgfEOG+m+ buPmhEE8Sv7+4UIGPh3U26c0lVERZMQ4J1KGmz1JwIcTwj0ozPRAS4NlKpwvULaP4u1W Vp8D3Y3ZdthkScEPqmowTR43yPObBp0BD/ehvLYHJrNA0ZK+KKQRleNZMzPc1zsx5HBy vKFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bGH1AlBv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hp19-20020a1709073e1300b007315149a9a3si8762998ejc.6.2022.08.21.19.16.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 19:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bGH1AlBv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD411385AC27 for ; Mon, 22 Aug 2022 02:16:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD411385AC27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661134610; bh=PNHMGoi9wFhpL12W26wcLVLg8yAUK8bx7dGprREx+sE=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=bGH1AlBv85MrlfW2qB8XpIQmn2Owt83LCfgSDHJWQ/Fy21xDMVbCc53mx5PIdTHnu /ALoi+sKuxcZ9FuBiEVWQ1SwR4EOj5uypVlaGCl7sC4hNX9/4gVOT7TRxSUwPzz9ya 6YycLv77lv4I+Y5QnbPAfBkXLKO46MuYr92jOo8I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id 2BE8B385700C for ; Mon, 22 Aug 2022 02:16:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2BE8B385700C X-IronPort-AV: E=McAfee;i="6500,9779,10446"; a="294090093" X-IronPort-AV: E=Sophos;i="5.93,254,1654585200"; d="scan'208";a="294090093" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2022 19:16:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,254,1654585200"; d="scan'208";a="637982807" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga008.jf.intel.com with ESMTP; 21 Aug 2022 19:16:00 -0700 Received: from shliclel320.sh.intel.com (shliclel320.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 165B110056A5; Mon, 22 Aug 2022 10:15:59 +0800 (CST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] Add __m128bf16/__m256bf16/__m512bf16 type for bf16 abi test Date: Mon, 22 Aug 2022 10:15:59 +0800 Message-Id: <20220822021559.29312-1-haochen.jiang@intel.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: References: X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Haochen Jiang via Gcc-patches From: "Jiang, Haochen" Reply-To: Haochen Jiang Cc: hongtao.liu@intel.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741825887206906216?= X-GMAIL-MSGID: =?utf-8?q?1741825887206906216?= Hi all, This patch added __m128bf16/__m256bf16/__m512bf16 type in testcases. BRs, Haochen gcc/testsuite/ChangeLog: * gcc.target/x86_64/abi/bf16/bf16-helper.h: Add _m128bf16/m256bf16/_m512bf16. * gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h: Include bf16-helper.h. --- gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h | 4 ++++ .../gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h b/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h index 83d89fcf62c..e090a7254f4 100644 --- a/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h +++ b/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h @@ -1,3 +1,7 @@ +typedef __bf16 __m128bf16 __attribute__((__vector_size__(16), __aligned__(16))); +typedef __bf16 __m256bf16 __attribute__((__vector_size__(32), __aligned__(32))); +typedef __bf16 __m512bf16 __attribute__((__vector_size__(64), __aligned__(64))); + typedef union { float f; diff --git a/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h b/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h index 8379fcfaf8c..9cd39b878dd 100644 --- a/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h +++ b/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h @@ -1,4 +1,5 @@ #include +#include "../bf16-helper.h" static void do_test (void);