PPUJIT: Fix unit tests

This commit is contained in:
S Gopal Rajagopal 2015-02-16 23:00:41 +05:30
parent e7f278b5d2
commit 3a2b13c02b
2 changed files with 543 additions and 543 deletions

View file

@ -923,8 +923,8 @@ namespace ppu_recompiler_llvm {
llvm::Value * IndirectCall(u32 address, llvm::Value * context_i64, bool is_function); llvm::Value * IndirectCall(u32 address, llvm::Value * context_i64, bool is_function);
/// Test an instruction against the interpreter /// Test an instruction against the interpreter
template <class PPULLVMRecompilerFn, class PPUInterpreterFn, class... Args> template <class... Args>
void VerifyInstructionAgainstInterpreter(const char * name, PPULLVMRecompilerFn recomp_fn, PPUInterpreterFn interp_fn, PPUState & input_state, Args... args); void VerifyInstructionAgainstInterpreter(const char * name, void (Compiler::*recomp_fn)(Args...), void (PPUInterpreter::*interp_fn)(Args...), PPUState & input_state, Args... args);
/// Excute a test /// Excute a test
void RunTest(const char * name, std::function<void()> test_case, std::function<void()> input, std::function<bool(std::string & msg)> check_result); void RunTest(const char * name, std::function<void()> test_case, std::function<void()> input, std::function<bool(std::string & msg)> check_result);

File diff suppressed because it is too large Load diff