1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Add a space before result for readability on the command line.

llvm-svn: 13109
This commit is contained in:
Misha Brukman 2004-04-22 20:02:09 +00:00
parent 6716bcd0cc
commit 1e9b5281d0

View File

@ -64,10 +64,10 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
// Check to see if the finished program matches the reference output... // Check to see if the finished program matches the reference output...
if (BD.diffProgram(BytecodeResult, "", true /*delete bytecode*/)) { if (BD.diffProgram(BytecodeResult, "", true /*delete bytecode*/)) {
std::cout << "nope.\n"; std::cout << " nope.\n";
return KeepSuffix; // Miscompilation detected! return KeepSuffix; // Miscompilation detected!
} }
std::cout << "yup.\n"; // No miscompilation! std::cout << " yup.\n"; // No miscompilation!
if (Prefix.empty()) return NoFailure; if (Prefix.empty()) return NoFailure;
@ -92,11 +92,11 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
// If the prefix maintains the predicate by itself, only keep the prefix! // If the prefix maintains the predicate by itself, only keep the prefix!
if (BD.diffProgram(BytecodeResult)) { if (BD.diffProgram(BytecodeResult)) {
std::cout << "nope.\n"; std::cout << " nope.\n";
removeFile(BytecodeResult); removeFile(BytecodeResult);
return KeepPrefix; return KeepPrefix;
} }
std::cout << "yup.\n"; // No miscompilation! std::cout << " yup.\n"; // No miscompilation!
// Ok, so now we know that the prefix passes work, try running the suffix // Ok, so now we know that the prefix passes work, try running the suffix
// passes on the result of the prefix passes. // passes on the result of the prefix passes.
@ -124,13 +124,13 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
// Run the result... // Run the result...
if (BD.diffProgram(BytecodeResult, "", true/*delete bytecode*/)) { if (BD.diffProgram(BytecodeResult, "", true/*delete bytecode*/)) {
std::cout << "nope.\n"; std::cout << " nope.\n";
delete OriginalInput; // We pruned down the original input... delete OriginalInput; // We pruned down the original input...
return KeepSuffix; return KeepSuffix;
} }
// Otherwise, we must not be running the bad pass anymore. // Otherwise, we must not be running the bad pass anymore.
std::cout << "yup.\n"; // No miscompilation! std::cout << " yup.\n"; // No miscompilation!
delete BD.swapProgramIn(OriginalInput); // Restore orig program & free test delete BD.swapProgramIn(OriginalInput); // Restore orig program & free test
return NoFailure; return NoFailure;
} }