This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Add a warning for some problematic MIPS constants
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: binutils at sourceware dot org
- Date: Wed, 19 Sep 2007 15:42:26 +0100 (BST)
- Subject: Re: Add a warning for some problematic MIPS constants
- References: <20070919141543.GA30797@caradoc.them.org>
On Wed, 19 Sep 2007, Daniel Jacobowitz wrote:
> The cases I'm trying to warn about are instructions that do not have a
> clear explicit width. For instance, "li" and "dli" are obvious, but
> bne and sltu are not. If you write "bne $4,0x80000000,label" gas
> zero extends the constant, and Diab sign extends it.
So is there a way to express 2147483648 as a hexadecimal number with this
macro with that Diab tool?
Maciej