mips64-elf-as: missing 'li' macro

Ian Lance Taylor ian@airs.com
Sat Oct 8 05:06:00 GMT 2005


"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



More information about the Gcc-help mailing list