From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18503 invoked by alias); 5 Apr 2005 18:41:35 -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 13276 invoked from network); 5 Apr 2005 18:35:52 -0000 Received: from unknown (HELO pollux.ds.pg.gda.pl) (153.19.208.7) by sourceware.org with SMTP; 5 Apr 2005 18:35:52 -0000 Received: from localhost (localhost [127.0.0.1]) by pollux.ds.pg.gda.pl (Postfix) with ESMTP id D17F7E1CB8; Tue, 5 Apr 2005 20:35:45 +0200 (CEST) Received: from pollux.ds.pg.gda.pl ([127.0.0.1]) by localhost (pollux [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23162-10; Tue, 5 Apr 2005 20:35:45 +0200 (CEST) Received: from piorun.ds.pg.gda.pl (piorun.ds.pg.gda.pl [153.19.208.8]) by pollux.ds.pg.gda.pl (Postfix) with ESMTP id 7E4AFE1CA4; Tue, 5 Apr 2005 20:35:45 +0200 (CEST) Received: from blysk.ds.pg.gda.pl (macro@blysk.ds.pg.gda.pl [153.19.208.6]) by piorun.ds.pg.gda.pl (8.13.1/8.13.1) with ESMTP id j35IZ0cn018405; Tue, 5 Apr 2005 20:35:01 +0200 Date: Tue, 05 Apr 2005 18:41:00 -0000 From: "Maciej W. Rozycki" To: Eric Christopher Cc: Atsushi Nemoto , binutils@sources.redhat.com Subject: Re: "Error: constant too large" on mips gas In-Reply-To: <1112638226.5320.0.camel@localhost.localdomain> Message-ID: References: <20050401.123528.122254594.nemoto@toshiba-tops.co.jp> <20050404.175833.115610647.nemoto@toshiba-tops.co.jp> <1112638226.5320.0.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Status: Clean X-SW-Source: 2005-04/txt/msg00147.txt.bz2 On Mon, 4 Apr 2005, Eric Christopher wrote: > > gas/: > > 2005-04-04 Maciej W. Rozycki > > > > * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro. > > (normalize_address_expr): New function to sign-extend address > > offsets that fit into 32 bits in 32-bit mode. > > (macro_build_ldst_constoffset): Use normalize_address_expr() > > instead of a handcoded sequence. > > (load_register): Likewise. Report oversized numbers in a useful > > way. > > (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only > > for constant addresses. Report oversized numbers in a useful way. > > (mips_ip): Use normalize_address_expr() for addresses. > > > > gas/testsuite/: > > 2005-04-04 Maciej W. Rozycki > > > > * gas/mips/ldstla-32.s: Exclude offsets that are now meant to fail > > and include more instructions/offsets that are meant to succeed. > > Use $4 instead $3 to avoid register dependencies. > > * gas/mips/ldstla-32.d: Update accordingly. > > * gas/mips/ldstla-32-shared.d: Likewise. > > * gas/mips/ldstla-32-1.s: New test for offsets that are meant to > > fail. > > * gas/mips/ldstla-32-1.l: Stderr output for the new test. > > * gas/mips/mips.exp: Run the new test (twice). > > > > OK to apply? > > OK. Some documentation on this probably wouldn't be amiss either :) Well, given new error cases, I'll yet have a look at resolving them. But specifically, what do you mean by "some documentation?" I mean these error messages are self-documenting -- what else you'd consider useful? Maciej