.text
foo:
# TOC references may have offsets.
addis 3, 2, 5+foo@toc@ha
addi 3, 3, 10+foo@toc@l
addis 3, 2, 15+foo@toc@ha
addi 3, 3, 20+foo@toc@l
addis 4, 2, foo@toc@ha
addi 4, 4, foo@toc@l
addis 5, 2, 5+foo@toc@ha
ld 5, 10+foo@toc@l(5)
addis 4, 2, foo-10@toc@ha
addi 4, 4, foo-10@toc@l
addis 4, 2, foo@toc@ha+25
addi 4, 4, foo@toc@l+25
addis 4, 2, 1+foo-2@toc@ha+3
addi 4, 4, 1+foo-2@toc@l+3