Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3221431imu; Sat, 24 Nov 2018 00:26:27 -0800 (PST) X-Google-Smtp-Source: AJdET5cRbJ0ixD9A9qriK+vPUiVlkShvXo0MnHypA926LD+FJfyqPWrbQ+xh1sdBmvyaPcl3Im6t X-Received: by 2002:a62:ed09:: with SMTP id u9-v6mr18934105pfh.188.1543047986988; Sat, 24 Nov 2018 00:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047986; cv=none; d=google.com; s=arc-20160816; b=exCrrVOHBlBmxm4yvfqP4RfWFiTBgGslIRQl24aiS1JjTIJu1AJvDkLszdnfv6u03H yyj8Ay96RT/h0uUD9wnHcVwkpW5tcavxpAnhxXJvqsbpgPCWuzJe8ssGJg45MtZJ36OH 2IOmfpdk2ian1g9gobRn8kK96aqvy7GwWGHlEU4ppqjGoyjdtpdkRxnp9noSdvAzFLcz lCuNZ2WXYR3KFXYQA+X5yk8lAM947kyRJSFB+MMCf8mvz3vl9AwZUB8shWnVhXsMn2/M /6xRjAgxkLQMd8qXAZle7BQ94tedjQm/K8tBC6/uJ+sv4Rjlwvdj3tfGDNc0rhFezi7e wBXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=CL4RtmaxcvyPUpbyHFL0gJ/xqZIGayzvaBqv3Lh61+k=; b=CouuCwZrtWK31el8VywT313Alkr5ZPZ3qsYZxIGVhs/9yORDU7SFZeAqHg9iNkxf12 8rWUzcBvsBMskjg2oJgdkQwXtHLOBf3/5ryICcxjBexPsKdBONcVLbdFheDlTzbwCPRc nCHT9x6KjfYxO6TOdFZ3sL5+9Af3MEj+0zGLLoPMtRoXCDAZroa+yv4yi8DOaNQOZxMc NitFpxYwpUOXvZNtJpOQZNAAj5OomPHXKECBgq2xFD5xCOx2CAYyCvlY8krdTXFPfUOD VL9hLtPQrGo34Ukk0nIgYaYtm/GPHNig9SD3X6xWcnXbigo+auM0HIWVczefKNRF6/Kz bfDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si33712417plr.196.2018.11.24.00.26.12; Sat, 24 Nov 2018 00:26:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503545AbeKWVhV convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Nov 2018 16:37:21 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:29247 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390373AbeKWVhV (ORCPT ); Fri, 23 Nov 2018 16:37:21 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-99-GPDCUzThP7OsQ6S8j4J4iA-1; Fri, 23 Nov 2018 10:53:30 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 23 Nov 2018 10:53:37 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 23 Nov 2018 10:53:37 +0000 From: David Laight To: 'Vincent Chen' , "green.hu@gmail.com" , "arnd@arndb.de" CC: "linux-kernel@vger.kernel.org" , Nickhu Subject: RE: [PATCH v4 2/5] nds32: Support FP emulation Thread-Topic: [PATCH v4 2/5] nds32: Support FP emulation Thread-Index: AQHUghG4/qfbmySOskGwd6CmLmV7sqVdK4Ig Date: Fri, 23 Nov 2018 10:53:37 +0000 Message-ID: References: <1542856478-795-1-git-send-email-vincentc@andestech.com> <1542856478-795-3-git-send-email-vincentc@andestech.com> In-Reply-To: <1542856478-795-3-git-send-email-vincentc@andestech.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: GPDCUzThP7OsQ6S8j4J4iA-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Chen > Sent: 22 November 2018 03:15 > > The Andes FPU coprocessor does not support denormalized number handling. > According to the specification, FPU generates a denorm input exception > that requires the kernel to deal with this instrution operation when it > encounters denormalized operands. Hence an nds32 FPU ISA emulator in the > kernel is required to meet requirement. What does the FPU generate for results near zero? If it doesn't generate denormalised results (but does detect them) then I assume it never generates FP values with exponent zero. (So the gap around zero is even larger than it would be if exponent zero values had a hidden bit.) So is it really worth doing anything other than treating denormalised values as zero? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)