public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* mips64-elf-as: missing 'li' macro
@ 2005-10-08  4:46 Vladimir Stepanenko
  2005-10-08  5:06 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Stepanenko @ 2005-10-08  4:46 UTC (permalink / raw)
  To: gcc-help

Hello,

Latest version of mips64-elf-as produces an error message when
assembling
li	$1, 0xc000000000000000

start.S:154: Error: Number (0xc000000000000000) larger than 32 bits

Previously (in mips64vr5xxx-elf-as version 2.9-gnupro-99r1) this macro
was expanded as
lui	$1, 0xc000
dsll32	$1, $1, 0x10

Does any particular mips64 architecture support this macro extension or
64-bit immediates are not allowed at all?

TIA,
Vladimir 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mips64-elf-as: missing 'li' macro
  2005-10-08  4:46 mips64-elf-as: missing 'li' macro Vladimir Stepanenko
@ 2005-10-08  5:06 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2005-10-08  5:06 UTC (permalink / raw)
  To: Vladimir Stepanenko; +Cc: gcc-help

"Vladimir Stepanenko" <vlads@juniper.net> writes:

> Latest version of mips64-elf-as produces an error message when
> assembling
> li	$1, 0xc000000000000000
> 
> start.S:154: Error: Number (0xc000000000000000) larger than 32 bits
> 
> Previously (in mips64vr5xxx-elf-as version 2.9-gnupro-99r1) this macro
> was expanded as
> lui	$1, 0xc000
> dsll32	$1, $1, 0x10
> 
> Does any particular mips64 architecture support this macro extension or
> 64-bit immediates are not allowed at all?

This question is about the assembler, and would be better directed to
binutils@sourceware.org.  See http://sourceware.org/binutils/.

I believe the answer is to use 'dli' if you want to load a 64-bit
constant.  Note that your 2.9-gnupro-99r1 toolchain is six years old.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-08  5:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-08  4:46 mips64-elf-as: missing 'li' macro Vladimir Stepanenko
2005-10-08  5:06 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).