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 b848b19d528b940a33a94d8d6323c4f49a2a0597..544b2ee39fb9b45944de61cf8a618a37f0b0b9f5 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 7d8afd4b773eff7726bc9f2766acb59fc5d7aeb6..3cb6efdf45e7426ccfb911ec45e9234c585ddd10 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 9c0bb2b2980bc3e0f05356196332ce19a34b6f10..cfd1893d513650ccae85e7b6ec2a254497bcdb8b 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 d10b666ec9143464773dd82646a557acda06c2ae..a0d6927f0d8e71219b074d1077876646ba9827d0 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 c3b8cd8767a8dd022366373287133432a10426f4..2ce264b0f9cc9fcd449b25e6e3c189d82d394f52 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 62af361f974413dcb4e85fdf20a80492240bbea8..344fa1add03dbd183bf1ea50f20e2cc6bafb8d57 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 366579408fe75bb05aaa9fdd0e418771aad7a348..0297717ba216843d2c762fc1d11078556c890538 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 8a56e2e80c67465e6be608ec9c75834d606bcfc8..d4f398b8584114bb1a2b81ea7b0c55a5ca51a0d7 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 0ea797c79ca63610d28f8e5155ad45b38b136694..d9387e54020b0afcceeba576e17bfc69ae672440 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 1cbe78dab7de33127ecbe8664d76c229c54379b3..6c28b4a3d05fb39f8acb9a5c3be43234bb2d8cf5 100644 (file)
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llc -O2 -print-after-all < %s 2>/dev/null
 
 define void @tester(){
index 56a99d191b3a9f961c57765de89df05cfac72bd2..23e847ccf247a04d3168e20ff8dbcf683af0fe48 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 df73ad8b7cf3ea6ec79d659170b0ff4438c58ced..e4dde48ee8d19a0d15d1ac6b6e3d7822ede826b7 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 2ce313990af0a7b65370d41044e41bcd8fe6d28c..0967d6afa977f592843745fbde7b11c467d50ce6 100644 (file)
@@ -1,2 +1,2 @@
 RUN: llvm-mc -disassemble %s
\ No newline at end of file
+# REQUIRES: native
index f542f1773c09a09e6e2d9b1ec9818a57e8c58854..031da4896f2bf15e8f041728289b4c7b23cbd927 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 07bf48d6caf02f0284702f135d9a6e7a01313603..7bce0c606c4c24eb5ff2e7a87d12e46dcd82eb60 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"