On AIX, for toc-referenced globals,
- under large code model, we generate:
[32 bit]
LWZtocL(@sym, ADDIStocHA(%r2, @sym))
[64 bit]
LDtocL(@sym, ADDIStocHA8(%x2, @sym)).
- under small code model, we generate:
[32 bit]
LWZtoc @op1, %r2
[64 bit]
LDtoc @op1, %x2
In this patch, we provide support for peudo ops including ADDIStocHA8, ADDIStocHA, LWZtocL, LDtoc, LDtocL for AIX('LWZtoc' is supported by an earlier patch already), lowering them from MIR to assembly.
Add "an" before "addis".