summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/MachO/osx-version-min-load-command.s
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2014-03-18 22:09:05 +0000
committerJim Grosbach <grosbach@apple.com>2014-03-18 22:09:05 +0000
commit448334a738408b08b9472f7ec15cc331f108e7bf (patch)
tree81f42e7bd67948b0eb8b56dad265a591d0aa533c /llvm/test/MC/MachO/osx-version-min-load-command.s
parent79f91c595dc5eba449f3313e88ea0f2761566074 (diff)
downloadbcm5719-llvm-448334a738408b08b9472f7ec15cc331f108e7bf.tar.gz
bcm5719-llvm-448334a738408b08b9472f7ec15cc331f108e7bf.zip
Darwin: Add assembler directives to create version-min load commands.
Allow object files to be tagged with a version-min load command for iOS or MacOSX. Teach macho-dump to understand the version-min load commands for testcases. rdar://11337778 llvm-svn: 204190
Diffstat (limited to 'llvm/test/MC/MachO/osx-version-min-load-command.s')
-rw-r--r--llvm/test/MC/MachO/osx-version-min-load-command.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/MachO/osx-version-min-load-command.s b/llvm/test/MC/MachO/osx-version-min-load-command.s
new file mode 100644
index 00000000000..2a73609dc01
--- /dev/null
+++ b/llvm/test/MC/MachO/osx-version-min-load-command.s
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | macho-dump | FileCheck %s
+
+// Test the formation of the version-min load command in the MachO.
+// use a nonsense but well formed version.
+.macosx_version_min 25,3,1
+// CHECK: (('command', 36)
+// CHECK: ('size', 16)
+// CHECK: ('version, 1639169)
+// CHECK: ('reserved, 0)
+// CHECK: ),
OpenPOWER on IntegriCloud