Mercurial > hg > CbC > CbC_llvm
view test/MC/MachO/darwin-version-min-load-command.s @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 803732b1fca8 |
line wrap: on
line source
// RUN: llvm-mc -triple x86_64-apple-macosx10.10.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s // 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 // RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-DARWIN // Test version-min load command should be inferred from triple and should always be generated on Darwin // CHECK: Load command // CHECK: cmd LC_VERSION_MIN_MACOSX // CHECK: cmdsize 16 // CHECK: version 10.10 // CHECK-IOS: Load command // CHECK-IOS: cmd LC_VERSION_MIN_IPHONEOS // CHECK-IOS: cmdsize 16 // CHECK-IOS: version 8.0 // CHECK-DARWIN-NOT: LC_VERSION_MIN // 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 // 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 // CHECK-WATCHOS: Load command // CHECK-WATCHOS: cmd LC_VERSION_MIN_WATCHOS // CHECK-WATCHOS-NEXT: cmdsize 16 // CHECK-WATCHOS-NEXT: version 1.0 // CHECK-TVOS: cmd LC_VERSION_MIN_TVOS // CHECK-TVOS-NEXT: cmdsize 16 // CHECK-TVOS-NEXT: version 8.0