FrontSparcTest Class Reference

#include <frontend/FrontSparcTest.h>

List of all members.


Detailed Description

Definition at line 12 of file FrontSparcTest.h.

Public Member Functions

int countTestCases () const
 FrontSparcTest (std::string name)
virtual void registerTests (CppUnit::TestSuite *suite)
void setUp ()
void tearDown ()
void test1 ()
void test2 ()
void test3 ()
void testBranch ()
void testDelaySlot ()


Constructor & Destructor Documentation

FrontSparcTest::FrontSparcTest std::string  name  )  [inline]
 

Definition at line 16 of file FrontSparcTest.h.


Member Function Documentation

int FrontSparcTest::countTestCases  )  const
 

Definition at line 45 of file FrontSparcTest.cpp.

void FrontSparcTest::registerTests CppUnit::TestSuite *  suite  )  [virtual]
 

Definition at line 37 of file FrontSparcTest.cpp.

References MYTEST, test1(), test2(), test3(), testBranch(), and testDelaySlot().

void FrontSparcTest::setUp  ) 
 

Definition at line 56 of file FrontSparcTest.cpp.

void FrontSparcTest::tearDown  ) 
 

Definition at line 66 of file FrontSparcTest.cpp.

void FrontSparcTest::test1  ) 
 

Definition at line 73 of file FrontSparcTest.cpp.

References addr(), FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), FrontEnd::getMainEntryPoint(), HELLO_SPARC, BinaryFileFactory::Load(), MACHINE_SPARC, NO_ADDRESS, NULL, DecodeResult::numBytes, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontSparcTest::test2  ) 
 

Definition at line 142 of file FrontSparcTest.cpp.

References FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), HELLO_SPARC, BinaryFileFactory::Load(), MACHINE_SPARC, NULL, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontSparcTest::test3  ) 
 

Definition at line 189 of file FrontSparcTest.cpp.

References FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), HELLO_SPARC, BinaryFileFactory::Load(), MACHINE_SPARC, NULL, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontSparcTest::testBranch  ) 
 

Definition at line 254 of file FrontSparcTest.cpp.

References BRANCH_SPARC, FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), BinaryFileFactory::Load(), MACHINE_SPARC, NULL, RTL::print(), and DecodeResult::rtl.

Referenced by registerTests().

void FrontSparcTest::testDelaySlot  ) 
 

Definition at line 299 of file FrontSparcTest.cpp.

References addr(), BRANCH_SPARC, Type::clearNamedTypes(), FrontEnd::decode(), dummy, UserProc::getCFG(), Cfg::getFirstBB(), BinaryFile::GetMachine(), FrontEnd::getMainEntryPoint(), Cfg::getNextBB(), BinaryFileFactory::Load(), MACHINE_SPARC, NO_ADDRESS, NULL, BasicBlock::print(), and FrontEnd::processProc().

Referenced by registerTests().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:42 2006 for Boomerang by  doxygen 1.4.6