As an added bonus this also tests the newly introduced feature.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246296
91177308-0d34-0410-b5e6-
96231b3b80d8
-// RUN: llvm-mc -triple armv7-apple-ios %s -filetype=obj -o - | macho-dump | FileCheck %s
+// RUN: llvm-mc -triple armv7-apple-ios %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s
// Test the formation of the version-min load command in the MachO.
// use a nonsense but well formed version.
.ios_version_min 99,8,7
// Test the formation of the version-min load command in the MachO.
// use a nonsense but well formed version.
.ios_version_min 99,8,7
-// CHECK: (('command', 37)
-// CHECK: ('size', 16)
-// CHECK: ('version, 6490119)
-// CHECK: ('sdk, 0)
-// CHECK: ),
+
+// CHECK: File: <stdin>
+// CHECK: Format: Mach-O arm
+// CHECK: Arch: arm
+// CHECK: AddressSize: 32bit
+// CHECK: MinVersion {
+// CHECK: Cmd: LC_VERSION_MIN_IPHONEOS
+// CHECK: Size: 16
+// CHECK: Version: 99.8.7
+// CHECK: SDK: n/a
+// CHECK: }
-// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | macho-dump | FileCheck %s
+// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --macho-version-min | 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
// 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: ('sdk, 0)
-// CHECK: ),
+
+// CHECK: File: <stdin>
+// CHECK: Format: Mach-O 64-bit x86-64
+// CHECK: Arch: x86_64
+// CHECK: AddressSize: 64bit
+// CHECK: MinVersion {
+// CHECK: Cmd: LC_VERSION_MIN_MACOSX
+// CHECK: Size: 16
+// CHECK: Version: 25.3.1
+// CHECK: SDK: n/a
+// CHECK: }