Home | History | Annotate | Download | only in ARM
      1 // RUN: llvm-mc -triple i386-apple-ios %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=IOS
      2 // RUN: llvm-mc -triple i386-apple-watchos %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=WATCHOS
      3 // RUN: llvm-mc -triple i386-apple-tvos %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=TVOS
      4 // RUN: llvm-mc -triple i386-apple-macosx %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=MACOSX
      5 
      6 .ios_version_min 1,2,3
      7 // WATCHOS: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .ios_version_min should only be used for ios targets
      8 // TVOS: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .ios_version_min should only be used for ios targets
      9 // MACOSX: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .ios_version_min should only be used for ios targets
     10 // IOS-NOT: warning: .ios_version_min should only be used for ios targets
     11 
     12 .macosx_version_min 4,5,6
     13 // WATCHOS: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .macosx_version_min should only be used for macosx targets
     14 // TVOS: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .macosx_version_min should only be used for macosx targets
     15 // IOS: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .macosx_version_min should only be used for macosx targets
     16 // MACOSX-NOT: warning: .macosx_version_min should only be used for macosx targets
     17 // CHECK: version-min-diagnostics2.s:[[@LINE-5]]:1: warning: overriding previous version_min directive
     18 // CHECK: version-min-diagnostics2.s:[[@LINE-12]]:1: note: previous definition is here
     19 
     20 .tvos_version_min 7,8,9
     21 // WATCHOS: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .tvos_version_min should only be used for tvos targets
     22 // MACOSX: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .tvos_version_min should only be used for tvos targets
     23 // IOS: version-min-diagnostics2.s:[[@LINE-3]]:1: warning: .tvos_version_min should only be used for tvos targets
     24 // TVOS-NOT: warning: .tvos_version_min should only be used for tvos targets
     25 // CHECK: version-min-diagnostics2.s:[[@LINE-5]]:1: warning: overriding previous version_min directive
     26 // CHECK: version-min-diagnostics2.s:[[@LINE-14]]:1: note: previous definition is here
     27 
     28 .watchos_version_min 10,11,12
     29 // MACOSX: version-min-diagnostics2.s:[[@LINE-1]]:1: warning: .watchos_version_min should only be used for watchos targets
     30 // IOS: version-min-diagnostics2.s:[[@LINE-2]]:1: warning: .watchos_version_min should only be used for watchos targets
     31 // TVOS-NOT: warning: .tvos_version_min should only be used for tvos targets
     32 // WATCHOS-NOT: warning: .watchos_version_min should only be used for watchos targets
     33 // CHECK: version-min-diagnostics2.s:[[@LINE-5]]:1: warning: overriding previous version_min directive
     34 // CHECK: version-min-diagnostics2.s:[[@LINE-14]]:1: note: previous definition is here
     35