This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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