This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: mips64-elf-as: missing 'li' macro
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Vladimir Stepanenko" <vlads at juniper dot net>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 07 Oct 2005 22:06:23 -0700
- Subject: Re: mips64-elf-as: missing 'li' macro
- References: <F07F17B61B7FF545BC7D7E4BFBE15D2A019FD8F8@hadron.jnpr.net>
"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