This patch fixes calculating address of label for non-pic ppc64.
LGTM with a few minor comments about the test.
|1 ↗||(On Diff #161454)|
Please add -ppc-asm-full-reg-names to the run steps.
|3 ↗||(On Diff #161454)|
Since the codegen is expected to be identical between position-dependent and position-independent we should use the same check-prefix for both.
|19 ↗||(On Diff #161454)|
The addis will always use the toc-pointer (r2) as the second operand so we should be checking for it directly.
addis r3, r2, .LC0@toc@ha ld r3, .LC0@toc@l(r3)