test: Check the feature 'loadable_module' with load modules in %llvmshlibdir.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 29 Nov 2010 07:58:32 +0000 (07:58 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 29 Nov 2010 07:58:32 +0000 (07:58 +0000)
%llvmshlibdir should be 'bin' on Cygming.

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

test/Analysis/Profiling/profiling-tool-chain.ll
test/BugPoint/crash-narrowfunctiontest.ll
test/BugPoint/metadata.ll
test/BugPoint/remove_arguments_test.ll
test/Feature/load_module.ll

index 5ac31b59bdcbb75f00d015c8703ad62f1128eb15..9135a85dc3ad43e56c4f74d57c3e52ba6caf3c95 100644 (file)
@@ -9,8 +9,8 @@
 
 ; Test the creation, reading and displaying of profile
 ; RUX: rm -f llvmprof.out
-; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2
-; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2 1 2
+; RUX: lli -load %llvmshlibdir/profile_rt%shlibext %t2
+; RUX: lli -load %llvmshlibdir/profile_rt%shlibext %t2 1 2
 ; RUX: llvm-prof -print-all-code %t1 | FileCheck --check-prefix=PROF %s
 
 ; Test the loaded profile also with verifier.
index 18a31eb45d36d7e41de0f046b7dc4fe621f8f18e..d080d9dd4b0cac54d64b4fe42e9853ebddc2c2e2 100644 (file)
@@ -1,8 +1,7 @@
 ; Test that bugpoint can narrow down the testcase to the important function
-; FIXME: This likely fails on windows
 ;
-; RUN: bugpoint -load %llvmlibsdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
-; XFAIL: mingw
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
+; REQUIRES: loadable_module
 
 define i32 @foo() { ret i32 1 }
 
index f2541ee3f9ac69873ca11a53fc3cf5b1784f622e..0eda5667ba4a9e8372b85cc3ed105fa26f7cd056 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: bugpoint -load %llvmlibsdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
-; XFAIL: mingw
+; REQUIRES: loadable_module
 
 ; Bugpoint should keep the call's metadata attached to the call.
 
index 791ec69a23d2fa9520054d80c57f00b1c28ad6fa..29a03b83107760e5c00629d3387b9f5036a87cb7 100644 (file)
@@ -1,7 +1,6 @@
-; FIXME: This likely fails on windows
-; RUN: bugpoint -load %llvmlibsdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes
 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
-; XFAIL: mingw
+; REQUIRES: loadable_module
 
 ; Test to make sure that arguments are removed from the function if they are 
 ; unnecessary. And clean up any types that that frees up too.
index e2e222f4edcf46e4c49d331198dc6a3f054cdccd..05f6c238134f4b9daeda4f4f8ad95a385f1099dc 100644 (file)
@@ -1,6 +1,8 @@
 ; PR1318
-; RUN: opt < %s -load=%llvmlibsdir/LLVMHello%shlibext -hello \
+; RUN: opt < %s -load=%llvmshlibdir/LLVMHello%shlibext -hello \
 ; RUN:   -disable-output |& grep Hello
+; REQUIRES: loadable_module
+; FIXME: On Cygming, it might fail without building LLVMHello manually.
 
 @junk = global i32 0