From: Jim Grosbach Date: Tue, 18 Mar 2014 22:43:59 +0000 (+0000) Subject: Move tests that require ARM to an ARM test directory. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ec8a8564f88fd9e5314e8a07ee4565ce17cc9a98;p=oota-llvm.git Move tests that require ARM to an ARM test directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204197 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/AsmParser/version-min-diagnostics.s b/test/MC/AsmParser/version-min-diagnostics.s deleted file mode 100644 index 15d44d31661..00000000000 --- a/test/MC/AsmParser/version-min-diagnostics.s +++ /dev/null @@ -1,49 +0,0 @@ -// RUN: not llvm-mc -triple i386-apple-darwin %s 2> %t -// RUN: FileCheck %s < %t -// RUN: not llvm-mc -triple x86_64-apple-darwin %s 2> %t -// RUN: FileCheck %s < %t -// RUN: not llvm-mc -triple armv7-apple-ios %s 2> %t -// RUN: FileCheck %s < %t - -.ios_version_min 5,2,257 -.ios_version_min 5,256,1 -.ios_version_min 5,-1,1 -.ios_version_min 0,1,1 -.ios_version_min 70000,1 -.macosx_version_min 99,2,257 -.macosx_version_min 50,256,1 -.macosx_version_min 10,-1,1 -.macosx_version_min 0,1,1 -.macosx_version_min 70000,1 - - -// CHECK: error: invalid OS update number -// CHECK: .ios_version_min 5,2,257 -// CHECK: ^ -// CHECK: error: invalid OS minor version number -// CHECK: .ios_version_min 5,256,1 -// CHECK: ^ -// CHECK: error: invalid OS minor version number -// CHECK: .ios_version_min 5,-1,1 -// CHECK: ^ -// CHECK: error: invalid OS major version number -// CHECK: .ios_version_min 0,1,1 -// CHECK: ^ -// CHECK: error: invalid OS major version number -// CHECK: .ios_version_min 70000,1 -// CHECK: ^ -// CHECK: error: invalid OS update number -// CHECK: .macosx_version_min 99,2,257 -// CHECK: ^ -// CHECK: error: invalid OS minor version number -// CHECK: .macosx_version_min 50,256,1 -// CHECK: ^ -// CHECK: error: invalid OS minor version number -// CHECK: .macosx_version_min 10,-1,1 -// CHECK: ^ -// CHECK: error: invalid OS major version number -// CHECK: .macosx_version_min 0,1,1 -// CHECK: ^ -// CHECK: error: invalid OS major version number -// CHECK: .macosx_version_min 70000,1 -// CHECK: ^ diff --git a/test/MC/AsmParser/version-min.s b/test/MC/AsmParser/version-min.s deleted file mode 100644 index 0a40338ed5e..00000000000 --- a/test/MC/AsmParser/version-min.s +++ /dev/null @@ -1,21 +0,0 @@ -// RUN: llvm-mc -triple i386-apple-darwin %s | FileCheck %s -// RUN: llvm-mc -triple x86_64-apple-darwin %s | FileCheck %s -// RUN: llvm-mc -triple armv7s-apple-ios %s | FileCheck %s - -// Test the parsing of well-formed version-min directives. - -.ios_version_min 5,2,0 -.ios_version_min 3,2,1 -.ios_version_min 5,0 - -// CHECK: .ios_version_min 5, 2 -// CHECK: .ios_version_min 3, 2, 1 -// CHECK: .ios_version_min 5, 0 - -.macosx_version_min 10,2,0 -.macosx_version_min 10,8,1 -.macosx_version_min 2,0 - -// CHECK: .macosx_version_min 10, 2 -// CHECK: .macosx_version_min 10, 8, 1 -// CHECK: .macosx_version_min 2, 0 diff --git a/test/MC/MachO/ARM/version-min-diagnostics.s b/test/MC/MachO/ARM/version-min-diagnostics.s new file mode 100644 index 00000000000..15d44d31661 --- /dev/null +++ b/test/MC/MachO/ARM/version-min-diagnostics.s @@ -0,0 +1,49 @@ +// RUN: not llvm-mc -triple i386-apple-darwin %s 2> %t +// RUN: FileCheck %s < %t +// RUN: not llvm-mc -triple x86_64-apple-darwin %s 2> %t +// RUN: FileCheck %s < %t +// RUN: not llvm-mc -triple armv7-apple-ios %s 2> %t +// RUN: FileCheck %s < %t + +.ios_version_min 5,2,257 +.ios_version_min 5,256,1 +.ios_version_min 5,-1,1 +.ios_version_min 0,1,1 +.ios_version_min 70000,1 +.macosx_version_min 99,2,257 +.macosx_version_min 50,256,1 +.macosx_version_min 10,-1,1 +.macosx_version_min 0,1,1 +.macosx_version_min 70000,1 + + +// CHECK: error: invalid OS update number +// CHECK: .ios_version_min 5,2,257 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .ios_version_min 5,256,1 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .ios_version_min 5,-1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .ios_version_min 0,1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .ios_version_min 70000,1 +// CHECK: ^ +// CHECK: error: invalid OS update number +// CHECK: .macosx_version_min 99,2,257 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .macosx_version_min 50,256,1 +// CHECK: ^ +// CHECK: error: invalid OS minor version number +// CHECK: .macosx_version_min 10,-1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .macosx_version_min 0,1,1 +// CHECK: ^ +// CHECK: error: invalid OS major version number +// CHECK: .macosx_version_min 70000,1 +// CHECK: ^ diff --git a/test/MC/MachO/ARM/version-min.s b/test/MC/MachO/ARM/version-min.s new file mode 100644 index 00000000000..0a40338ed5e --- /dev/null +++ b/test/MC/MachO/ARM/version-min.s @@ -0,0 +1,21 @@ +// RUN: llvm-mc -triple i386-apple-darwin %s | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s | FileCheck %s +// RUN: llvm-mc -triple armv7s-apple-ios %s | FileCheck %s + +// Test the parsing of well-formed version-min directives. + +.ios_version_min 5,2,0 +.ios_version_min 3,2,1 +.ios_version_min 5,0 + +// CHECK: .ios_version_min 5, 2 +// CHECK: .ios_version_min 3, 2, 1 +// CHECK: .ios_version_min 5, 0 + +.macosx_version_min 10,2,0 +.macosx_version_min 10,8,1 +.macosx_version_min 2,0 + +// CHECK: .macosx_version_min 10, 2 +// CHECK: .macosx_version_min 10, 8, 1 +// CHECK: .macosx_version_min 2, 0