summaryrefslogtreecommitdiff
path: root/test/ELF/aarch64-load-alignment.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/aarch64-load-alignment.s')
-rw-r--r--test/ELF/aarch64-load-alignment.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/aarch64-load-alignment.s b/test/ELF/aarch64-load-alignment.s
new file mode 100644
index 0000000000000..7b1129b7afa5e
--- /dev/null
+++ b/test/ELF/aarch64-load-alignment.s
@@ -0,0 +1,11 @@
+# REQUIRES: aarch64
+
+# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o
+# RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s
+
+# CHECK: improper alignment for relocation R_AARCH64_LD_PREL_LO19: 0x10005 is not aligned to 4 bytes
+
+ ldr x8, patatino
+ .data
+ .zero 5
+patatino: