gas-950726/ss-950728/powerpc*-*-eabi: addis 9,0,a-400000@ha ???

Andrew Cagney cagney@highland.com.au
Tue Aug 1 00:41:00 GMT 1995


Hello,

	c-torture-1.34/execute/index-1.c

from the lines:

	int
	f (int n)
	{
	  return a[n - 100000];
	}

outputs the assembler:

	addis 9,0,a-400000@ha
	addi 11,9,a-400000@l

quite simply, is this valid PowerPC assembler?  Gas doesn't think so:

cagney@puddin$ powerpc-unknown-eabi-gcc -v index-1.c
...
GNU assembler version 950726 (powerpc-unknown-eabi), using BFD version
cygnus-2.5
/usr/tmp/cca29430.s: Assembler messages:
/usr/tmp/cca29430.s:62: Error: Value of -400000 too large for field of 2
bytes at 34
/usr/tmp/cca29430.s:63: Error: Value of -400000 too large for field of 2
bytes at 38

			Andrew




More information about the Gas2 mailing list