From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14173 invoked by alias); 5 Apr 2005 04:34:10 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 14125 invoked from network); 5 Apr 2005 04:34:03 -0000 Received: from unknown (HELO mx02.qsc.de) (213.148.130.14) by sourceware.org with SMTP; 5 Apr 2005 04:34:03 -0000 Received: from port-195-158-169-58.dynamic.qsc.de ([195.158.169.58] helo=hattusa.textio) by mx02.qsc.de with esmtp (Exim 3.35 #1) id 1DIflL-0005wr-00 for binutils@sources.redhat.com; Tue, 05 Apr 2005 06:34:03 +0200 Received: from ths by hattusa.textio with local (Exim 4.50) id 1DIflK-0001Ii-P6 for binutils@sources.redhat.com; Tue, 05 Apr 2005 06:34:02 +0200 Date: Tue, 05 Apr 2005 04:34:00 -0000 To: binutils@sources.redhat.com Subject: Re: "Error: constant too large" on mips gas Message-ID: <20050405043402.GA27308@hattusa.textio> References: <20050404.175833.115610647.nemoto@toshiba-tops.co.jp> <20050405.113800.90370139.nemoto@toshiba-tops.co.jp> <20050405.132842.65898090.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050405.132842.65898090.nemoto@toshiba-tops.co.jp> User-Agent: Mutt/1.5.8i From: Thiemo Seufer X-SW-Source: 2005-04/txt/msg00120.txt.bz2 Atsushi Nemoto wrote: > >>>>> On Tue, 05 Apr 2005 11:38:00 +0900 (JST), Atsushi Nemoto said: > anemo> Thank you. It works for the case I reported. And here is an > anemo> another case: > > And yet another corner case: > > $ cat foo2.s > .set mips3 > ld $2, 0x80000000 > dsrl32 $2, 0 > sw $2, 0x80000008 > .set mips0 > $ mips-linux-as -32 foo2.s > foo2.s: Assembler messages: > foo2.s:2: Error: Number (0x080000000) larger than 32 bits > foo2.s:4: Error: Number (0x080000008) larger than 32 bits > > I'm using '.set mips3' for "true" LD instruction (not two LW) in 32bit > kernel mode. Is this legal or should I rewrite it? It is legal, and the intended use case for .set mips3. Thiemo