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]

@ha @l not working


Hi,

I am using this code to load a 32-bit immediate in a register:
  lis reg, imm@ha
  addi reg, reg, imm@l

When I try to build this code, I get errors:
 -> as -v -D test.S
GNU assembler version 2.14 (powerpc-ibm-aix5.1.0.0) using BFD version 2.14
20030612
test.S: Assembler messages:
test.S:15: Error: syntax error; found `@' but expected `,'
test.S:15: Error: junk at end of line: `@ha'
test.S:15: Error: syntax error; found `@' but expected `,'
test.S:15: Error: junk at end of line: `@l'

I have seen posts to binutils mailing lists refering to similar syntax using
@ha and @l, and this code builds with a different assembler. I am concenrned
that maybe I built binutils incorrectly. Does anybody know what is going on?

Thank you,
Igor Ageyev


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