[llvm] r246296 - [MC] Convert tests to use llvm-readobj --macho-version-min.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 05:40:05 PDT 2015
Author: davide
Date: Fri Aug 28 07:40:05 2015
New Revision: 246296
URL: http://llvm.org/viewvc/llvm-project?rev=246296&view=rev
Log:
[MC] Convert tests to use llvm-readobj --macho-version-min.
As an added bonus this also tests the newly introduced feature.
Modified:
llvm/trunk/test/MC/MachO/ARM/ios-version-min-load-command.s
llvm/trunk/test/MC/MachO/osx-version-min-load-command.s
Modified: llvm/trunk/test/MC/MachO/ARM/ios-version-min-load-command.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/ARM/ios-version-min-load-command.s?rev=246296&r1=246295&r2=246296&view=diff
==============================================================================
--- llvm/trunk/test/MC/MachO/ARM/ios-version-min-load-command.s (original)
+++ llvm/trunk/test/MC/MachO/ARM/ios-version-min-load-command.s Fri Aug 28 07:40:05 2015
@@ -1,10 +1,16 @@
-// 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
-// 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: }
Modified: llvm/trunk/test/MC/MachO/osx-version-min-load-command.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/osx-version-min-load-command.s?rev=246296&r1=246295&r2=246296&view=diff
==============================================================================
--- llvm/trunk/test/MC/MachO/osx-version-min-load-command.s (original)
+++ llvm/trunk/test/MC/MachO/osx-version-min-load-command.s Fri Aug 28 07:40:05 2015
@@ -1,10 +1,16 @@
-// 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
-// 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: }
More information about the llvm-commits
mailing list