From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-h1p-028590.sys.comcast.net (resqmta-h1p-028590.sys.comcast.net [IPv6:2001:558:fd02:2446::8]) by sourceware.org (Postfix) with ESMTPS id 4E7203882AD6 for ; Wed, 19 Apr 2023 16:43:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E7203882AD6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=comcast.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=comcast.net Received: from resomta-h1p-027918.sys.comcast.net ([96.102.179.204]) by resqmta-h1p-028590.sys.comcast.net with ESMTP id p7LCpJYySz2IhpAtepgTBj; Wed, 19 Apr 2023 16:43:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1681922586; bh=bep05zCpu6jKKP2zJJwUCwHyNtWIQFI4kGwHjYcfXpI=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To:Xfinity-Spam-Result; b=TyThoWi3QwHPox+wSpk5UQkTtSo0uuY/GlnE8fa/s4mTQmEZuPFxgo6gnpMfEDVaM XLvVM8ZxvUmG41PLVWM9FGD+A6vzASbhzprM5znk3OpD2qmWfyz7kfmnkoT0ksxXKy seb33yMo7rajmlmlePS+6h6SeZZQ7e99L40CjFmyUGYdpkyQ1m4w+Zb6hpofO/YxhJ NOaKpaKV1b9N3jEBVSBYQmRe6jj/aCqI/RChRTC+2LldWenT2B0HhvqEbL+tci/VPd Y0Dw297rtmZuAwJVpk01PisDlGPd/PUIjrvDJ2LKWogPSux3uSHaDzI6fuPkOp/Bj9 cIacsEx8CN9kg== Received: from smtpclient.apple ([IPv6:2601:640:4100:880:d0a3:9998:5427:b9fc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-h1p-027918.sys.comcast.net with ESMTPSA id pAtbpli0sCHuMpAtcpCuJK; Wed, 19 Apr 2023 16:43:05 +0000 X-Xfinity-VMeta: sc=0.00;st=legit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: [PATCH] [i386] Support type _Float16/__bf16 independent of SSE2. From: Mike Stump In-Reply-To: <20230419071551.3478647-1-hongtao.liu@intel.com> Date: Wed, 19 Apr 2023 09:43:02 -0700 Cc: gcc-patches@gcc.gnu.org, crazylht@gmail.com, hjl.tools@gmail.com, ubizjak@gmail.com, jakub@redhat.com Content-Transfer-Encoding: quoted-printable Message-Id: <03F85853-4291-437A-A725-5C260227716E@comcast.net> References: <20230419071551.3478647-1-hongtao.liu@intel.com> To: liuhongt X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,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 List-Id: LLM, machine learning and AI likes coding with data types that are = weird, float16, bf16, 8 bit float and 4 bit floats. Longer term, would = be nice to natively support these everywhere. Would be nice to trial run = them in the compiler, sort it all out, so that the implementation = experience can drive language adoption. A little speculative and a = little narrow focus for the field, but, AI isn't going away in the next = 20 years I don't think. Anyway, I like the direction. On Apr 19, 2023, at 12:15 AM, liuhongt via Gcc-patches = wrote: > That said, these fundamental types whose presence/absence depends on = ISA flags > are quite problematic IMHO, as they are incompatible with the target > attribute/pragmas. Whether they are available or not available depends = on > whether in this case SSE2 is enabled during compiler initialization = (aka after > parsing command line options) and then they are available or = unavailable to > everything else based on that. > -----comments end---------- >=20 > Enable _Float16 and __bf16 all the time but issue errors when the