summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-05-02 18:24:37 +0000
committerMartin Storsjo <martin@martin.st>2018-05-02 18:24:37 +0000
commitd0b5034b8a9da4401d0cce80338ef069f38ca487 (patch)
tree4f67b861a50e8f3de1e8df73c13d12d1aac171ad /llvm/test
parent07e612340fc1f31c67675b3c08ea0a7229481c21 (diff)
downloadbcm5719-llvm-d0b5034b8a9da4401d0cce80338ef069f38ca487.tar.gz
bcm5719-llvm-d0b5034b8a9da4401d0cce80338ef069f38ca487.zip
[COFF, ARM64] Hook up a few remaining relocations
Differential Revision: https://reviews.llvm.org/D46355 llvm-svn: 331384
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/AArch64/coff-relocations.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/AArch64/coff-relocations.s b/llvm/test/MC/AArch64/coff-relocations.s
index e1526415e03..965955809da 100644
--- a/llvm/test/MC/AArch64/coff-relocations.s
+++ b/llvm/test/MC/AArch64/coff-relocations.s
@@ -52,6 +52,15 @@ add x0, x0, :secrel_hi12:foo
; IMAGE_REL_ARM64_SECREL_LOW12L
ldr x0, [x0, :secrel_lo12:foo]
+; IMAGE_REL_ARM64_REL21
+adr x0, foo + 0x12345
+
+; IMAGE_REL_ARM64_BRANCH19
+bne target
+
+; IMAGE_REL_ARM64_BRANCH14
+tbz x0, #0, target
+
; CHECK: Format: COFF-ARM64
; CHECK: Arch: aarch64
; CHECK: AddressSize: 64bit
@@ -74,6 +83,9 @@ ldr x0, [x0, :secrel_lo12:foo]
; CHECK: 0x40 IMAGE_REL_ARM64_SECREL_LOW12A foo
; CHECK: 0x44 IMAGE_REL_ARM64_SECREL_HIGH12A foo
; CHECK: 0x48 IMAGE_REL_ARM64_SECREL_LOW12L foo
+; CHECK: 0x4C IMAGE_REL_ARM64_REL21 foo
+; CHECK: 0x50 IMAGE_REL_ARM64_BRANCH19 target
+; CHECK: 0x54 IMAGE_REL_ARM64_BRANCH14 target
; CHECK: }
; CHECK: ]
@@ -84,3 +96,4 @@ ldr x0, [x0, :secrel_lo12:foo]
; DISASM: 40: 00 00 00 91 add x0, x0, #0
; DISASM: 44: 00 00 40 91 add x0, x0, #0, lsl #12
; DISASM: 48: 00 00 40 f9 ldr x0, [x0]
+; DISASM: 4c: 20 1a 09 30 adr x0, #74565
OpenPOWER on IntegriCloud