This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

mipsisa32-unknown-elf-as: Error: too large constant specified


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


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