This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips64-elf-as: missing 'li' macro


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]