[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / MachO / darwin-version-min-load-command.s
blob100faac04f823552911c8a50e3f43051a1f93f35
1 // RUN: llvm-mc -triple x86_64-apple-macosx10.10.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s
2 // RUN: llvm-mc -triple x86_64-apple-ios8.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-IOS
3 // RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-DARWIN
4 // RUN: llvm-mc -triple x86_64-apple-ios13.0-macabi %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-MACCATALYST
6 // Test version-min load command should be inferred from triple and should always be generated on Darwin
7 // CHECK: Load command
8 // CHECK: cmd LC_VERSION_MIN_MACOSX
9 // CHECK: cmdsize 16
10 // CHECK: version 10.10
12 // CHECK-IOS: Load command
13 // CHECK-IOS: cmd LC_VERSION_MIN_IPHONEOS
14 // CHECK-IOS: cmdsize 16
15 // CHECK-IOS: version 8.0
17 // CHECK-DARWIN-NOT: LC_VERSION_MIN
20 // RUN: llvm-mc -triple x86_64-apple-watchos1.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-WATCHOS
21 // RUN: llvm-mc -triple x86_64-apple-tvos8.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-TVOS
22 // CHECK-WATCHOS: Load command
23 // CHECK-WATCHOS: cmd LC_VERSION_MIN_WATCHOS
24 // CHECK-WATCHOS-NEXT: cmdsize 16
25 // CHECK-WATCHOS-NEXT: version 1.0
27 // CHECK-TVOS: cmd LC_VERSION_MIN_TVOS
28 // CHECK-TVOS-NEXT: cmdsize 16
29 // CHECK-TVOS-NEXT: version 8.0
31 // CHECK-BRIDGEOS: cmd LC_BUILD_VERSION
32 // CHECK-BRIDGEOS-NEXT: cmdsize 24
33 // CHECK-BRIDGEOS-NEXT: platform bridgeos
34 // CHECK-BRIDGEOS-NEXT: sdk n/a
35 // CHECK-BRIDGEOS-NEXT: minos 2.0
36 // CHECK-BRIDGEOS-NEXT: ntools 0
38 // CHECK-MACCATALYST: cmd LC_BUILD_VERSION
39 // CHECK-MACCATALYST-NEXT: cmdsize 24
40 // CHECK-MACCATALYST-NEXT: platform macCatalyst
41 // CHECK-MACCATALYST-NEXT: sdk n/a
42 // CHECK-MACCATALYST-NEXT: minos 13.0
43 // CHECK-MACCATALYST-NEXT: ntools 0