OSDN Git Service

Update test suite to make "ninja check" succeed without native backend builtin
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 4 Aug 2015 06:32:54 +0000 (06:32 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 4 Aug 2015 06:32:54 +0000 (06:32 +0000)
Requires "native" feature in most places that were failing.

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243960 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
test/CodeGen/Generic/lit.local.cfg [new file with mode: 0644]
test/DebugInfo/lit.local.cfg [new file with mode: 0644]
test/Feature/optnone-llc.ll
test/Feature/optnone.ll
test/Linker/subprogram-linkonce-weak-odr.ll
test/Linker/subprogram-linkonce-weak.ll
test/Linker/type-unique-odr-a.ll
test/Linker/type-unique-simple-a.ll
test/Linker/type-unique-simple2-a.ll
test/Linker/type-unique-simple2.ll
test/Linker/type-unique-type-array-a.ll
test/Other/2010-05-06-Printer.ll
test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll
test/tools/llvm-mc/fatal_warnings.test
test/tools/llvm-mc/line_end_with_space.test
test/tools/llvm-mc/no_warnings.test
test/tools/lto/opt-level.ll

diff --git a/test/CodeGen/Generic/lit.local.cfg b/test/CodeGen/Generic/lit.local.cfg
new file mode 100644 (file)
index 0000000..f3f03bd
--- /dev/null
@@ -0,0 +1,3 @@
+if 'native' not in config.available_features:
+    config.unsupported = True
+
diff --git a/test/DebugInfo/lit.local.cfg b/test/DebugInfo/lit.local.cfg
new file mode 100644 (file)
index 0000000..f3f03bd
--- /dev/null
@@ -0,0 +1,3 @@
+if 'native' not in config.available_features:
+    config.unsupported = True
+
index b848b19..544b2ee 100644 (file)
@@ -4,7 +4,7 @@
 ; RUN: llc -O3 -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-Ox
 ; RUN: llc -misched-postra -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-MORE
 
-; REQUIRES: asserts
+; REQUIRES: asserts, native
 
 ; This test verifies that we don't run Machine Function optimizations
 ; on optnone functions.
index 7d8afd4..3cb6efd 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; REQUIRE: native
 
 ; Check for the presence of attribute optnone in the disassembly.
 
index 9c0bb2b..cfd1893 100644 (file)
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llvm-link %s %S/Inputs/subprogram-linkonce-weak-odr.ll -S -o %t1
 ; RUN: FileCheck %s -check-prefix=LW -check-prefix=CHECK <%t1
 ; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak-odr.ll %s -S -o %t2
index d10b666..a0d6927 100644 (file)
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llvm-link %s %S/Inputs/subprogram-linkonce-weak.ll -S -o %t1
 ; RUN: FileCheck %s -check-prefix=LW -check-prefix=CHECK <%t1
 ; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak.ll %s -S -o %t2
index c3b8cd8..2ce264b 100644 (file)
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 ;
 ; RUN: llvm-link %s %p/type-unique-odr-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 ;
index 62af361..344fa1a 100644 (file)
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 
 ; RUN: llvm-link %s %p/type-unique-simple-b.ll -S -o %t
 ; RUN: cat %t | FileCheck %s -check-prefix=LINK
index 3665794..0297717 100644 (file)
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 ;
 ; RUN: llvm-link %s %p/type-unique-simple2-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 ;
index 8a56e2e..d4f398b 100644 (file)
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission; native
 
 ; RUN: llvm-link %S/Inputs/type-unique-simple2-a.ll %S/Inputs/type-unique-simple2-b.ll -S -o %t
 ; RUN: cat %t | FileCheck %S/Inputs/type-unique-simple2-a.ll -check-prefix=LINK
index 0ea797c..d9387e5 100644 (file)
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 ;
 ; RUN: llvm-link %s %p/type-unique-type-array-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 ;
index 1cbe78d..6c28b4a 100644 (file)
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llc -O2 -print-after-all < %s 2>/dev/null
 
 define void @tester(){
index 56a99d1..23e847c 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s
-
+; REQUIRES: X86
 ;; We don't want branch folding to fold asm directives.
 
 ; CHECK: bork_directive
index df73ad8..e4dde48 100644 (file)
@@ -1,5 +1,6 @@
 # RUN: not llvm-mc --fatal-warnings %s 2>&1 | FileCheck %s
 # XFAIL: hexagon
+# REQUIRES: native
 
 # CHECK: error: .warning directive invoked in source file
 .warning
index 2ce3139..0967d6a 100644 (file)
@@ -1,2 +1,2 @@
 RUN: llvm-mc -disassemble %s
\ No newline at end of file
+# REQUIRES: native
index f542f17..031da48 100644 (file)
@@ -1,5 +1,6 @@
 # RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s
 # XFAIL: hexagon
+# REQUIRES: native
 
 # CHECK-NOT: warning:
 .warning
index 07bf48d..7bce0c6 100644 (file)
@@ -3,6 +3,7 @@
 ; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s
 ; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.o
 ; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
+; REQUIRES: X86
 
 target triple = "x86_64-apple-macosx10.8.0"