summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-04 00:56:27 +0000
committerChris Lattner <sabre@nondot.org>2003-08-04 00:56:27 +0000
commit6730c8133ab01d2046c6dbe17c692f537c08c92b (patch)
tree0504769ce94c4bca1aca8e9f74397c846e314031 /tools
parentd587a84197ee18d870d555d705ba586edd801cef (diff)
downloadllvm-6730c8133ab01d2046c6dbe17c692f537c08c92b.tar.gz
llvm-6730c8133ab01d2046c6dbe17c692f537c08c92b.tar.bz2
llvm-6730c8133ab01d2046c6dbe17c692f537c08c92b.tar.xz
Print accurate run instructions for when testing LLC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/CodeGeneratorBug.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/tools/bugpoint/CodeGeneratorBug.cpp b/tools/bugpoint/CodeGeneratorBug.cpp
index 2e2e532ec9..be5f3ea77c 100644
--- a/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/tools/bugpoint/CodeGeneratorBug.cpp
@@ -233,11 +233,25 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
// Run the code generator on the `Test' code, loading the shared library.
// The function returns whether or not the new output differs from reference.
- int Result = BD.diffProgram(TestModuleBC, SharedObject, false);
+ int Result = BD.diffProgram(TestModuleBC, SharedObject, false);
+
+ if (Result)
+ std::cerr << ": Still failing!\n";
+ else
+ std::cerr << ": didn't fail.\n";
+
+
if (KeepFiles) {
- std::cout << "You can reproduce the problem with the command line: \n"
- << (BD.isExecutingJIT() ? "lli" : "llc")
- << " -load " << SharedObject << " " << TestModuleBC;
+ std::cout << "You can reproduce the problem with the command line: \n";
+ if (BD.isExecutingJIT()) {
+ std::cout << " lli -load " << SharedObject << " " << TestModuleBC;
+ } else {
+ //<< (BD.isExecutingJIT() ? "lli" : "llc")
+ std::cout << " llc " << TestModuleBC << " -o " << TestModuleBC << ".s\n";
+ std::cout << " gcc " << SharedObject << " " << TestModuleBC
+ << ".s -o " << TestModuleBC << ".exe\n";
+ std::cout << " " << TestModuleBC << ".exe";
+ }
for (unsigned i=0, e = InputArgv.size(); i != e; ++i)
std::cout << " " << InputArgv[i];
std::cout << "\n";
@@ -365,8 +379,8 @@ bool BugDriver::debugCodeGenerator() {
// Do the reduction...
if (!ReduceMisCodegenFunctions(*this).reduceList(MisCodegenFunctions)) {
- std::cerr << "*** Execution matches reference output! No problem "
- << "detected...\nbugpoint can't help you with your problem!\n";
+ std::cerr << "*** Execution matches reference output! "
+ << "bugpoint can't help you with your problem!\n";
return false;
}