summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-03-10 19:30:18 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-03-10 19:30:18 +0000
commitaba16fca5de0aeb61d35c4e9261fa8feec639d94 (patch)
tree5e6fd1456c9e58d2c5305adeabdc1ac483bfa504 /llvm/test
parent4d3d785e3f9713e700c94d6d78b5a695daa98f1d (diff)
downloadbcm5719-llvm-aba16fca5de0aeb61d35c4e9261fa8feec639d94.tar.gz
bcm5719-llvm-aba16fca5de0aeb61d35c4e9261fa8feec639d94.zip
ARM: Support relative references using the PREL31 symbol variant.
Differential Revision: http://reviews.llvm.org/D17937 llvm-svn: 263156
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ARM/symbol-variants.s14
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/test/MC/ARM/symbol-variants.s b/llvm/test/MC/ARM/symbol-variants.s
index af1bc07b5e1..c54190587a2 100644
--- a/llvm/test/MC/ARM/symbol-variants.s
+++ b/llvm/test/MC/ARM/symbol-variants.s
@@ -84,8 +84,14 @@ bl f05(plt)
@ CHECK: 60 R_ARM_TLS_GOTDESC f24
@ CHECK: 64 R_ARM_TLS_GOTDESC f25
+@ prel31 (relative)
+.word f26(PREL31)-.
+.word f27(prel31)-.
+@CHECK: 68 R_ARM_PREL31 f26
+@CHECK: 6c R_ARM_PREL31 f27
+
@ got_prel
-.word f26(GOT_PREL) + (. - .Lsym)
- ldr r3, =f27(GOT_PREL)
-@ CHECK: 68 R_ARM_GOT_PREL f26
-@ CHECK: 70 R_ARM_GOT_PREL f27
+.word f28(GOT_PREL) + (. - .Lsym)
+ ldr r3, =f29(GOT_PREL)
+@ CHECK: 70 R_ARM_GOT_PREL f28
+@ CHECK: 78 R_ARM_GOT_PREL f29
OpenPOWER on IntegriCloud