From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 611D83858D1E for ; Mon, 11 Apr 2022 12:48:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 611D83858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="74323662" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 11 Apr 2022 04:48:01 -0800 IronPort-SDR: 6BL0Hi12Q9LaNPuLNOZnrLqmFNfQNAyNJkGpsuRRQdTGk422mWmRexcEJaUz6ZktccX+K05ABX KZ6LUT2zPrIzSBjRAYh9KsbJvQL5RAHPAEz3DiOM6q8A1jq2VQqweo8H/04zt6DIdFS3/Hy+m7 jIN9RQIox13HrdGXM4EFKSxvjfqAszQ22V9Deoq/fg0KB176Pm64zdv+lUhvz2ZU7dRRfCIMQo HuoGtJQwHBJRcmWlaLzQ6I/e5+hNvG42e3vaJ6mTlnO0g0Ip4GI//o7bzDAWhgtY09IZnvklYp rKo= Message-ID: Date: Mon, 11 Apr 2022 13:47:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: Complex multiply optimization working? Content-Language: en-GB To: Richard Biener CC: GCC Development , Tamar Christina References: <19966fd3-8bfe-5a1a-41cf-4d95d99e69fd@codesourcery.com> From: Andrew Stubbs In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, 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@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2022 12:48:04 -0000 On 11/04/2022 13:02, Richard Biener wrote: > You need to check the vectorizer dump whether a complex pattern > was recognized or not. Did you properly use -ffast-math? Aha! I needed to enable -ffast-math. I missed that this is unsafe, and there's a fall-back to _muldc3 on NaN. OK, presumably I need to implement a vector version of the fall-back libcall if I want this to work without ffast-math. Thanks Andrew