* config/tc-mips.c (load_register): Add cast to offsetT when using

a constant with &~.
This commit is contained in:
Ian Lance Taylor 1996-10-14 18:00:19 +00:00
parent f5587846ed
commit 0267c6c9c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Oct 14 13:59:12 1996 Ian Lance Taylor <ian@cygnus.com>
* config/tc-mips.c (load_register): Add cast to offsetT when using
a constant with &~.
Mon Oct 14 11:24:28 1996 Richard Henderson <rth@tamu.edu>
* config/obj-elf.c (elf_frob_file): Move ECOFF debug processing to ...

View File

@ -1999,7 +1999,7 @@ load_register (counter, reg, ep, dbl)
|| sizeof (ep->X_add_number) > 4
|| (ep->X_add_number & 0x80000000) == 0))
|| ((mips_isa < 3 || !dbl)
&& (ep->X_add_number &~ 0xffffffff) == 0))
&& (ep->X_add_number &~ (offsetT) 0xffffffff) == 0))
{
/* 32 bit values require an lui. */
macro_build ((char *) NULL, counter, ep, "lui", "t,u", reg,