This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
mipsisa32-unknown-elf-as: Error: too large constant specified
- From: fnf at intrinsity dot com (Fred Fish)
- To: binutils at sources dot redhat dot com
- Cc: fnf at intrinsity dot com
- Date: Tue, 14 Oct 2003 15:26:25 -0500 (CDT)
- Subject: mipsisa32-unknown-elf-as: Error: too large constant specified
- Reply-to: fnf at intrinsity dot com (Fred Fish)
Before I report this as a bug, does anyone know if this is a
deliberate change in behavior or a bug. Given the assembly input:
$ cat a.s
and $26, $26, ~(0xE0000000)
an older assembler handles this just fine by using the $at register:
$ /usr/local/sourceware/bin/mipsisa32-unknown-elf-as -v a.s
GNU assembler version 2.14.90 (mipsisa32-unknown-elf) using BFD version 2.14.90 20030830
$ /usr/local/sourceware/bin/mipsisa32-unknown-elf-objdump --disassemble a.o
a.o: file format elf32-bigmips
Disassembly of section .text:
00000000 <.text>:
0: 3c011fff lui at,0x1fff
4: 3421ffff ori at,at,0xffff
8: 0341d024 and k0,k0,at
however a current build, using current CVS sources, treats it as an error:
$ /build/sourceware/binutils/T-mipsisa32-unknown-elf/gas/as-new -v a.s
GNU assembler version 2.14.90 (mipsisa32-unknown-elf) using BFD version 2.14.90 20031014
a.s: Assembler messages:
a.s:1: Error: too large constant specified
-Fred