I found Greenhills compiler for power pc , has some relocation expression operators like:
%lo(value): Least significant 16 bits of symbol value.%hiadj(value) :Most significant 16 bits of symbol value plus most significantbit of %lo(value).
I checked the GAS manual for V850 target, I found below :
lo() :Computes the lower 16 bits of the given expression and stores it into the immediateoperand field of the given instruction. hi() :Computes the higher 16 bits of the given expression and then adds the valueof the most significant bit of the lower 16 bits of the expression and stores theresult into the immediate operand field of the given instruction.
However I don't find any similar things for powerpc target in GAS manual . Is there any one know what is the equivalent ones for powerpc target for GCC? if there is no equivalent opcode or operator what is the equivalent assembly? Thank you !