From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 450 invoked by alias); 11 Jun 2013 00:13:58 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 440 invoked by uid 89); 11 Jun 2013 00:13:58 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ob0-f179.google.com (HELO mail-ob0-f179.google.com) (209.85.214.179) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 11 Jun 2013 00:13:57 +0000 Received: by mail-ob0-f179.google.com with SMTP id xk17so10901212obc.38 for ; Mon, 10 Jun 2013 17:13:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=CElryaPu1enxOt2myrkuSiJx/XMpboNo2qDGFZ6AAEw=; b=XVjmO1K4bqbtKeicXiEicWThBOWIAjJfL9BsE3LAyc2UVh7KtH/mKMqus7J3JPe84R 6qvdpkByIcY8l6qdy1oFWRIIxZdOXbQJldlyQ5CpqGmSibhy904V+xmp/EjjJACKBJ/m UeEiWrkeP+0Pjeo5jfcbzJQF6YmZZHU6Dk7h8fQRMK8Icc1SBeBcOPZRE2BSYxnC5mtb c9QY2dtq8L2rHJ0BLzW0pYxxYQA0ohf1IveQnxV5ctuAfU3e1vcklO+EWkK8FJiZZdB8 l2lxlKShN0VAkuTURchOZ3a7szCi0tXL2Ho+lTjmRyel5YsF5h9I2j4DMfh/FtMwDcQj xjhA== MIME-Version: 1.0 X-Received: by 10.60.94.113 with SMTP id db17mr10229255oeb.62.1370909635999; Mon, 10 Jun 2013 17:13:55 -0700 (PDT) Received: by 10.60.4.74 with HTTP; Mon, 10 Jun 2013 17:13:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 00:13:00 -0000 Message-ID: Subject: Re: Thumb inline assembly From: Ian Lance Taylor To: Kalai Rajah N Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmWWNpbE53YXhqjJeMltUE1v0KFHqKM5n4JgEwvsgjgVOKRSuEIcOdwxCW9HBSwvCi3P9yREQw75TMO+EToT5Si4VWZxvvIleqd3FBUTyMu3oT+mKNsnxarZyulWpFeisHBcx2ZskV85sWjOygwEc/UXZDIbyJoWcTVAFIt2egcTDg08gWyo7PfRVgbTnUUcNX498vr X-SW-Source: 2013-06/txt/msg00063.txt.bz2 On Mon, Jun 10, 2013 at 5:06 PM, Kalai Rajah N wrote: > Do you mean push is not supported or the specific parameters used by > push in this code? > > But, from ARM's page, it seems the instruction is fine ... > > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0283b/Babefbce.html That page says that in Thumb mode the push instruction only supports the lo registers. Ian > On Mon, Jun 10, 2013 at 4:51 PM, Ian Lance Taylor wrote: >> On Mon, Jun 10, 2013 at 4:19 PM, Kalai Rajah N wrote: >>> >>> .thumb_func >> >> This is a Thumb function. >> >>> push {r4, r5, r6, r7, r8} >> >> As far as I know this is not a Thumb instruction. >> >> I don't know how this gets through the assembler. >> >> Ian