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 + llvm/test/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 0000000..f3f03bd --- /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 0000000..f3f03bd --- /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 b848b19..544b2ee 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 7d8afd4..3cb6efd 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 9c0bb2b..cfd1893 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 d10b666..a0d6927 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 c3b8cd8..2ce264b 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 62af361..344fa1a 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 3665794..0297717 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 8a56e2e..d4f398b 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 0ea797c..d9387e5 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 1cbe78d..6c28b4a 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 56a99d1..23e847c 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 df73ad8..e4dde48 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 2ce3139..0967d6a 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 f542f17..031da48 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 07bf48d..7bce0c6 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" -- 2.7.4