From patchwork Sat Nov 23 01:54:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 21721 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3BD4423FDC for ; Sat, 23 Nov 2013 01:55:02 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id g10sf3609298pdj.9 for ; Fri, 22 Nov 2013 17:55:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=MwtTewhhy3dOfq6wEDUHFKqgzHl2+2i/ygn1yLgrIY0=; b=PeOLzgiIFsBzfwFfy17d5k64ObV3NSBvb84SfDC3OdX2rT8BiTyZ9y9gHfB1dqa9I6 Fv3vh3EVohccMk1Iu2YOdWgHVHfm9ivQHD2Cmhe3oESJFc+SEuDYlJF3rxkvm43UCpA0 10Fk06QcrdHd21RD9z90Tx+MBXWX8Dnl+UsTlOS67FtCkzwBinc9bA8MWjP1Wy2/qPCh 5XSSGenR57X+/JptZ1E2tusnyPiFb8InW4gDYEHIzjsqvuoAz9jyK6Cae3VnFTAaitNV dfGLZ4ZLCmxWz5vpCSeEz8NgFb0DqmuF5W2t70iCDQivA69h/sK5nVqM84JBcefg/JlC 9BxA== X-Gm-Message-State: ALoCoQkAVCNSZRHsmOT8MuQtqgnVYLER0Ommw+XaVHmHEvOMBCSugfGDkm4uXsLiwq3g1vxnDcfR X-Received: by 10.66.160.36 with SMTP id xh4mr5279995pab.11.1385171701440; Fri, 22 Nov 2013 17:55:01 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.225 with SMTP id b1ls1213113qek.8.gmail; Fri, 22 Nov 2013 17:55:01 -0800 (PST) X-Received: by 10.52.187.138 with SMTP id fs10mr11585148vdc.10.1385171701268; Fri, 22 Nov 2013 17:55:01 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id ug9si13560631vcb.32.2013.11.22.17.55.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 17:55:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so1451327veb.40 for ; Fri, 22 Nov 2013 17:55:01 -0800 (PST) X-Received: by 10.221.64.17 with SMTP id xg17mr14212055vcb.5.1385171701204; Fri, 22 Nov 2013 17:55:01 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp80671vcz; Fri, 22 Nov 2013 17:54:59 -0800 (PST) X-Received: by 10.68.137.9 with SMTP id qe9mr5707151pbb.133.1385171699198; Fri, 22 Nov 2013 17:54:59 -0800 (PST) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id bq8si21183818pab.232.2013.11.22.17.54.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 17:54:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of kugan.vivekanandarajah@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id md12so2093973pbc.35 for ; Fri, 22 Nov 2013 17:54:57 -0800 (PST) X-Received: by 10.66.234.193 with SMTP id ug1mr15280285pac.92.1385171697626; Fri, 22 Nov 2013 17:54:57 -0800 (PST) Received: from [192.168.0.100] ([1.145.232.183]) by mx.google.com with ESMTPSA id vh3sm23131590pbc.8.2013.11.22.17.54.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 17:54:56 -0800 (PST) Message-ID: <52900AEC.2060301@linaro.org> Date: Sat, 23 Nov 2013 12:54:52 +1100 From: Kugan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: ian@airs.com, Richard Earnshaw , "patches@linaro.org" Subject: Re: [RFC][LIBGCC][2 of 2] 64 bit divide implementation for processor without hw divide instruction References: <52900902.9020602@linaro.org> In-Reply-To: <52900902.9020602@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kugan.vivekanandarajah@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Hi All, This RFC patch enables new divide algorithm for ARMV7-A Regression tested on arm-none-linux-gnueabi with no issues. OK? Thanks, Kugan +2013-11-22 Kugan Vivekanandarajah + + * libgcc/config/arm/pbapi-lib.h (HAVE_NO_HW_DIVIDE): Define for + __ARM_ARCH_7_A__. + diff --git a/libgcc/config/arm/bpabi-lib.h b/libgcc/config/arm/bpabi-lib.h index e0e46a6..85171c8 100644 --- a/libgcc/config/arm/bpabi-lib.h +++ b/libgcc/config/arm/bpabi-lib.h @@ -75,3 +75,7 @@ helper functions - not everything in libgcc - in the interests of maintaining backward compatibility. */ #define LIBGCC2_FIXEDBIT_GNU_PREFIX + +#if defined(__ARM_ARCH_7A__) +# define HAVE_NO_HW_DIVIDE +#endif