From patchwork Wed Jun 11 10:19:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charles Baylis X-Patchwork-Id: 358587 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B8C6B140081 for ; Wed, 11 Jun 2014 20:20:46 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=Rq4qRDmp3btrVlY8JrVocsNjM8JKpjfLpHNaqgrTY4e1vM5UBJ0pm DArfvpAiQzlAOkA4nWGegG+Ls2X3we0VOulu78DSrA1kCOBSy/UJS62ticjh1hFc FfFIgmrK11q43pl4nKK0gK4uDXZ8OZK/R6BqatbvrM/tM5/H8j7l6k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=tfbX83tUkSNYBqvbjagSbe8JDmI=; b=FQSWoPvERLvm0vYqxwFk WzI0ApzQ1QgFvrJ80zQ5pXsv+kmMb/0sH9/VyLfqoH7lPNbnkjIjgqx3KyVgtKaM t5R+uraQKBoPZwAxn9JjKr9qDaHa17jJJabH6fl+Z72q8pJq5bUk8AFNkWdXL2AU 2xSuIKoJoArCLsEi/qQ4DZ8= Received: (qmail 28564 invoked by alias); 11 Jun 2014 10:20:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 28475 invoked by uid 89); 11 Jun 2014 10:20:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f172.google.com Received: from mail-wi0-f172.google.com (HELO mail-wi0-f172.google.com) (209.85.212.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 11 Jun 2014 10:20:31 +0000 Received: by mail-wi0-f172.google.com with SMTP id hi2so5572225wib.11 for ; Wed, 11 Jun 2014 03:20:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XK0mnQK+u5QaUiKcUIJSho+X4aunf+tOLefAi3f1M2U=; b=iaa/a0ITkFbf05DJ/Q5VGfuBM5eByO0Nz/IeUXc9WPqDmgaHUbXaZhF4MmgE4mMRVs Q/4j8bOqjVd33v9KhL3q3im3QqKz70s+DDaCEEE0q3t96xv473BKJtB2jB4Z7mLOWvrJ 43QOtOpc9oIXD1UuttqOkKsu8OA6dvSahizLZNqXy+ZPvt9RU5uqtXd8kUl/5U2cuwQN sdtE6d4Bc08bCAeK2GEVOEhXgok6KwQ0kFhtGS/a8qV2XSsqvvRFptxTBum4pnM9f02g pGu66UZJm7ahlbf7lVaLryhXluL78Ak23Uai/enbvNN6TwCXY0VcYqzh0o5phognGfO/ +1bw== X-Gm-Message-State: ALoCoQlvRw/3Hi4aB9L25hP3fXPqXXhNHS02ioyGQ7tzUrOI1EVPbFNwD8DTxZYjV35B7YYFeNQk X-Received: by 10.181.11.193 with SMTP id ek1mr38055687wid.15.1402482028514; Wed, 11 Jun 2014 03:20:28 -0700 (PDT) Received: from sale.linaro.local ([213.122.173.130]) by mx.google.com with ESMTPSA id ej2sm33548768wjd.21.2014.06.11.03.20.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jun 2014 03:20:27 -0700 (PDT) From: Charles Baylis To: rearnsha@arm.com Cc: gcc-patches@gcc.gnu.org, Ramana.Radhakrishnan@arm.com Subject: [PATCH 2/9] Add comments Date: Wed, 11 Jun 2014 11:19:48 +0100 Message-Id: <1402481995-12749-2-git-send-email-charles.baylis@linaro.org> In-Reply-To: <1402481995-12749-1-git-send-email-charles.baylis@linaro.org> References: <5398226C.5060905@arm.com> <1402481995-12749-1-git-send-email-charles.baylis@linaro.org> X-IsSubscribed: yes 2014-05-22 Charles Baylis * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment describing register usage on function entry and exit. --- libgcc/config/arm/bpabi.S | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libgcc/config/arm/bpabi.S b/libgcc/config/arm/bpabi.S index f47d715..ae76cd3 100644 --- a/libgcc/config/arm/bpabi.S +++ b/libgcc/config/arm/bpabi.S @@ -122,6 +122,14 @@ ARM_FUNC_START aeabi_ulcmp #ifdef L_aeabi_ldivmod +/* Perform 64 bit signed division. + Inputs: + r0:r1 numerator + r2:r3 denominator + Outputs: + r0:r1 quotient + r2:r3 remainder + */ ARM_FUNC_START aeabi_ldivmod cfi_start __aeabi_ldivmod, LSYM(Lend_aeabi_ldivmod) test_div_by_zero signed @@ -145,6 +153,14 @@ ARM_FUNC_START aeabi_ldivmod #ifdef L_aeabi_uldivmod +/* Perform 64 bit signed division. + Inputs: + r0:r1 numerator + r2:r3 denominator + Outputs: + r0:r1 quotient + r2:r3 remainder + */ ARM_FUNC_START aeabi_uldivmod cfi_start __aeabi_uldivmod, LSYM(Lend_aeabi_uldivmod) test_div_by_zero unsigned