From c8d578311473fceb50579906658b0c017ef5b193 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Tue, 4 Aug 2015 06:32:54 +0000 Subject: [PATCH] Update test suite to make "ninja check" succeed without native backend builtin Requires "native" feature in most places that were failing. From: Mehdi Amini llvm-svn: 243960 --- llvm/test/CodeGen/Generic/lit.local.cfg | 3 +++ llvm/test/DebugInfo/lit.local.cfg | 3 +++ llvm/test/Feature/optnone-llc.ll | 2 +- llvm/test/Feature/optnone.ll | 1 + llvm/test/Linker/subprogram-linkonce-weak-odr.ll | 1 + llvm/test/Linker/subprogram-linkonce-weak.ll | 1 + llvm/test/Linker/type-unique-odr-a.ll | 2 +- llvm/test/Linker/type-unique-simple-a.ll | 2 +- llvm/test/Linker/type-unique-simple2-a.ll | 2 +- llvm/test/Linker/type-unique-simple2.ll | 2 +- llvm/test/Linker/type-unique-type-array-a.ll | 2 +- llvm/test/Other/2010-05-06-Printer.ll | 1 + .../Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll | 2 +- llvm/test/tools/llvm-mc/fatal_warnings.test | 1 + llvm/test/tools/llvm-mc/line_end_with_space.test | 2 +- llvm/test/tools/llvm-mc/no_warnings.test | 1 + llvm/test/tools/lto/opt-level.ll | 1 + 17 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 llvm/test/CodeGen/Generic/lit.local.cfg create mode 100644 llvm/test/DebugInfo/lit.local.cfg diff --git a/llvm/test/CodeGen/Generic/lit.local.cfg b/llvm/test/CodeGen/Generic/lit.local.cfg new file mode 100644 index 000000000000..f3f03bd7047e --- /dev/null +++ b/llvm/test/CodeGen/Generic/lit.local.cfg @@ -0,0 +1,3 @@ +if 'native' not in config.available_features: + config.unsupported = True + diff --git a/llvm/test/DebugInfo/lit.local.cfg b/llvm/test/DebugInfo/lit.local.cfg new file mode 100644 index 000000000000..f3f03bd7047e --- /dev/null +++ b/llvm/test/DebugInfo/lit.local.cfg @@ -0,0 +1,3 @@ +if 'native' not in config.available_features: + config.unsupported = True + diff --git a/llvm/test/Feature/optnone-llc.ll b/llvm/test/Feature/optnone-llc.ll index b848b19d528b..544b2ee39fb9 100644 --- a/llvm/test/Feature/optnone-llc.ll +++ b/llvm/test/Feature/optnone-llc.ll @@ -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. diff --git a/llvm/test/Feature/optnone.ll b/llvm/test/Feature/optnone.ll index 7d8afd4b773e..3cb6efdf45e7 100644 --- a/llvm/test/Feature/optnone.ll +++ b/llvm/test/Feature/optnone.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; REQUIRE: native ; Check for the presence of attribute optnone in the disassembly. diff --git a/llvm/test/Linker/subprogram-linkonce-weak-odr.ll b/llvm/test/Linker/subprogram-linkonce-weak-odr.ll index 9c0bb2b2980b..cfd1893d5136 100644 --- a/llvm/test/Linker/subprogram-linkonce-weak-odr.ll +++ b/llvm/test/Linker/subprogram-linkonce-weak-odr.ll @@ -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 diff --git a/llvm/test/Linker/subprogram-linkonce-weak.ll b/llvm/test/Linker/subprogram-linkonce-weak.ll index d10b666ec914..a0d6927f0d8e 100644 --- a/llvm/test/Linker/subprogram-linkonce-weak.ll +++ b/llvm/test/Linker/subprogram-linkonce-weak.ll @@ -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 diff --git a/llvm/test/Linker/type-unique-odr-a.ll b/llvm/test/Linker/type-unique-odr-a.ll index c3b8cd8767a8..2ce264b0f9cc 100644 --- a/llvm/test/Linker/type-unique-odr-a.ll +++ b/llvm/test/Linker/type-unique-odr-a.ll @@ -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 ; diff --git a/llvm/test/Linker/type-unique-simple-a.ll b/llvm/test/Linker/type-unique-simple-a.ll index 62af361f9744..344fa1add03d 100644 --- a/llvm/test/Linker/type-unique-simple-a.ll +++ b/llvm/test/Linker/type-unique-simple-a.ll @@ -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 diff --git a/llvm/test/Linker/type-unique-simple2-a.ll b/llvm/test/Linker/type-unique-simple2-a.ll index 366579408fe7..0297717ba216 100644 --- a/llvm/test/Linker/type-unique-simple2-a.ll +++ b/llvm/test/Linker/type-unique-simple2-a.ll @@ -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 ; diff --git a/llvm/test/Linker/type-unique-simple2.ll b/llvm/test/Linker/type-unique-simple2.ll index 8a56e2e80c67..d4f398b85841 100644 --- a/llvm/test/Linker/type-unique-simple2.ll +++ b/llvm/test/Linker/type-unique-simple2.ll @@ -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 diff --git a/llvm/test/Linker/type-unique-type-array-a.ll b/llvm/test/Linker/type-unique-type-array-a.ll index 0ea797c79ca6..d9387e54020b 100644 --- a/llvm/test/Linker/type-unique-type-array-a.ll +++ b/llvm/test/Linker/type-unique-type-array-a.ll @@ -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 ; diff --git a/llvm/test/Other/2010-05-06-Printer.ll b/llvm/test/Other/2010-05-06-Printer.ll index 1cbe78dab7de..6c28b4a3d05f 100644 --- a/llvm/test/Other/2010-05-06-Printer.ll +++ b/llvm/test/Other/2010-05-06-Printer.ll @@ -1,3 +1,4 @@ +; REQUIRES: native ; RUN: llc -O2 -print-after-all < %s 2>/dev/null define void @tester(){ diff --git a/llvm/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll b/llvm/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll index 56a99d191b3a..23e847ccf247 100644 --- a/llvm/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll +++ b/llvm/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll @@ -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 diff --git a/llvm/test/tools/llvm-mc/fatal_warnings.test b/llvm/test/tools/llvm-mc/fatal_warnings.test index df73ad8b7cf3..e4dde48ee8d1 100644 --- a/llvm/test/tools/llvm-mc/fatal_warnings.test +++ b/llvm/test/tools/llvm-mc/fatal_warnings.test @@ -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 diff --git a/llvm/test/tools/llvm-mc/line_end_with_space.test b/llvm/test/tools/llvm-mc/line_end_with_space.test index 2ce313990af0..0967d6afa977 100644 --- a/llvm/test/tools/llvm-mc/line_end_with_space.test +++ b/llvm/test/tools/llvm-mc/line_end_with_space.test @@ -1,2 +1,2 @@ RUN: llvm-mc -disassemble %s - \ No newline at end of file +# REQUIRES: native diff --git a/llvm/test/tools/llvm-mc/no_warnings.test b/llvm/test/tools/llvm-mc/no_warnings.test index f542f1773c09..031da4896f2b 100644 --- a/llvm/test/tools/llvm-mc/no_warnings.test +++ b/llvm/test/tools/llvm-mc/no_warnings.test @@ -1,5 +1,6 @@ # RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s # XFAIL: hexagon +# REQUIRES: native # CHECK-NOT: warning: .warning diff --git a/llvm/test/tools/lto/opt-level.ll b/llvm/test/tools/lto/opt-level.ll index 07bf48d6caf0..7bce0c606c4c 100644 --- a/llvm/test/tools/lto/opt-level.ll +++ b/llvm/test/tools/lto/opt-level.ll @@ -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"