Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Misc / cc1as-darwin-target-variant-sdk-version.s
blob6d22d6d395c98a2d1333b75ba037d45c28999f4f
1 // Run cc1as using darwin-target-variant-sdk-version
2 // REQUIRES: x86-registered-target
3 // RUN: %clang -cc1as -triple x86_64-apple-macos10.9 -darwin-target-variant-triple x86_64-apple-ios13.1-macabi -target-sdk-version=11.1 -darwin-target-variant-sdk-version=14.1 -filetype obj %s -o - \
4 // RUN: | llvm-readobj --file-headers --macho-version-min - \
5 // RUN: | FileCheck --check-prefix=CHECK %s
7 // CHECK: File: <stdin>
8 // CHECK-NEXT: Format: Mach-O 64-bit x86-64
9 // CHECK-NEXT: Arch: x86_64
10 // CHECK-NEXT: AddressSize: 64bit
11 // CHECK-NEXT: MachHeader {
12 // CHECK-NEXT: Magic: Magic64 (0xFEEDFACF)
13 // CHECK-NEXT: CpuType: X86-64 (0x1000007)
14 // CHECK-NEXT: CpuSubType: CPU_SUBTYPE_X86_64_ALL (0x3)
15 // CHECK-NEXT: FileType: Relocatable (0x1)
16 // CHECK-NEXT: NumOfLoadCommands: 3
17 // CHECK-NEXT: SizeOfLoadCommands: 192
18 // CHECK-NEXT: Flags [ (0x0)
19 // CHECK-NEXT: ]
20 // CHECK-NEXT: Reserved: 0x0
21 // CHECK-NEXT: }
22 // CHECK-NEXT: MinVersion {
23 // CHECK-NEXT: Cmd: LC_VERSION_MIN_MACOSX
24 // CHECK-NEXT: Size: 16
25 // CHECK-NEXT: Version: 10.9
26 // CHECK-NEXT: SDK: n/a
27 // CHECK-NEXT: }
28 // CHECK-NEXT: MinVersion {
29 // CHECK-NEXT: Cmd: LC_BUILD_VERSION
30 // CHECK-NEXT: Size: 24
31 // CHECK-NEXT: Platform: macCatalyst
32 // CHECK-NEXT: Version: 13.1
33 // CHECK-NEXT: SDK: 14.1
34 // CHECK-NEXT: }