summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-21 14:43:10 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-21 14:43:10 +0000
commitf8f87dcfceadd1b842d130303a7091ad7d7d67d0 (patch)
treeb985d9a01dc48c357cdf1dd94ed68c37e34b5df1 /test
parentd2849572463da994c685b3bd7a60d5a7566c01e3 (diff)
downloadllvm-f8f87dcfceadd1b842d130303a7091ad7d7d67d0.tar.gz
llvm-f8f87dcfceadd1b842d130303a7091ad7d7d67d0.tar.bz2
llvm-f8f87dcfceadd1b842d130303a7091ad7d7d67d0.tar.xz
[PowerPC] Support @toc@h modifier
This adds the relocation type and other necessary infrastructure to use the @toc@h modifier in the assembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/PowerPC/ppc64-fixups.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-fixups.s b/test/MC/PowerPC/ppc64-fixups.s
index bb6c7be8d1..9accde047c 100644
--- a/test/MC/PowerPC/ppc64-fixups.s
+++ b/test/MC/PowerPC/ppc64-fixups.s
@@ -82,6 +82,11 @@
# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0
addi 4, 3, target@toc@l
+# CHECK: addis 3, 2, target@toc@h # encoding: [0x3c,0x62,A,A]
+# CHECK-NEXT: # fixup A - offset: 2, value: target@toc@h, kind: fixup_ppc_half16
+# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_HI target 0x0
+ addis 3, 2, target@toc@h
+
# CHECK: lwz 1, target@toc@l(3) # encoding: [0x80,0x23,A,A]
# CHECK-NEXT: # fixup A - offset: 2, value: target@toc@l, kind: fixup_ppc_half16
# CHECK-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0