From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moene.org (84-86-97-173.fixed.kpn.net [84.86.97.173]) by sourceware.org (Postfix) with ESMTPS id 4F551385840E for ; Wed, 5 Jul 2023 18:10:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F551385840E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=moene.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=moene.org Received: from localhost ([127.0.0.1]) by moene.org with esmtp (Exim 4.96) (envelope-from ) id 1qH6xY-00D56o-2o; Wed, 05 Jul 2023 20:10:36 +0200 Message-ID: <19d61cce-a6c8-33b3-e9c8-fa78fde397aa@moene.org> Date: Wed, 5 Jul 2023 20:10:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RFC] Exposing complex numbers to target backends To: Sylvain Noiry , gcc@gcc.gnu.org Cc: Paul Iannetta , Benoit Dinechin References: Content-Language: en-US From: Toon Moene Organization: Moene Computational Physics, Maartensdijk, The Netherlands In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KHOP_HELO_FCRDNS,NICE_REPLY_A,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 7/5/23 17:12, Sylvain Noiry via Gcc wrote: > Hi, > > My name is Sylvain, I am an intern at Kalray and I work on improving the GCC backend for the KVX target.  The KVX ISA has dedicated instructions for the handling of complex numbers, which cannot be selected by GCC due to how complex numbers are handled internally.  My goal is to make GCC able to expose to machine description files new patterns dealing with complex numbers.  I already have a proof of concept which can increase performance even on other backends like x86 if the new patterns are implemented. I do not have the expertise to evaluate if your approach is the way we want to go forward with the handling of complex numbers in the middle-/back-end(s) of GCC. However, I *do* have a sizable amount of (Fortran) code over here that uses complex numbers in a day to day operation that I am willing to test (obviously, "day to day operation" is to be interpreted loosely here - what I do is following the *real* operation at my employer (KNMI) with my own weather forecasting computations at home, compiled with GCC). I suppose that your patch is against the master branch of GCC's repository - so I'll have to test that first, cleanly. Kind regards, -- Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands