summaryrefslogtreecommitdiff
path: root/test/MC/AArch64/arm64-elf-reloc-condbr.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AArch64/arm64-elf-reloc-condbr.s')
-rw-r--r--test/MC/AArch64/arm64-elf-reloc-condbr.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/AArch64/arm64-elf-reloc-condbr.s b/test/MC/AArch64/arm64-elf-reloc-condbr.s
new file mode 100644
index 000000000000..9b70a20e1bc2
--- /dev/null
+++ b/test/MC/AArch64/arm64-elf-reloc-condbr.s
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj %s -o - | \
+// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
+
+ b.eq somewhere
+
+// OBJ: Relocations [
+// OBJ-NEXT: Section (2) .rela.text {
+// OBJ-NEXT: 0x0 R_AARCH64_CONDBR19 somewhere 0x0
+// OBJ-NEXT: }
+// OBJ-NEXT: ]