summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/JITLink/X86/MachO_zero_fill_alignment.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/JITLink/X86/MachO_zero_fill_alignment.s b/llvm/test/ExecutionEngine/JITLink/X86/MachO_zero_fill_alignment.s
new file mode 100644
index 00000000000..3b3a3853fdc
--- /dev/null
+++ b/llvm/test/ExecutionEngine/JITLink/X86/MachO_zero_fill_alignment.s
@@ -0,0 +1,14 @@
+# RUN: rm -rf %t && mkdir -p %t
+# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t/macho_zero_fill_align.o %s
+# RUN: llvm-jitlink -noexec %t/macho_zero_fill_align.o -entry higher_zero_fill_align
+
+ .section __DATA,__data
+ .globl low_aligned_data
+ .p2align 0
+low_aligned_data:
+ .byte 42
+
+ .globl higher_zero_fill_align
+.zerofill __DATA,__zero_fill,higher_zero_fill_align,8,3
+
+.subsections_via_symbols
OpenPOWER on IntegriCloud