#include "SnippetFile.h"
#include "LlvmState.h"
#include "TestBase.h"
#include "X86InstrInfo.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace llvm {
namespace exegesis {
void InitializeX86ExegesisTarget();
namespace {
ElementsAre;
Eq;
Property;
SizeIs;
UnorderedElementsAre;
TempDir;
class X86SnippetFileTest : public X86TestBase { … };
static auto HasOpcode = …;
MATCHER_P2(RegisterInitialValueIs, Reg, Val, "") { … }
MATCHER_P3(MemoryDefinitionIs, Name, Value, Size, "") { … }
MATCHER_P2(MemoryMappingIs, Address, Name, "") { … }
TEST_F(X86SnippetFileTest, Works) { … }
TEST_F(X86SnippetFileTest, BadDefregParam) { … }
TEST_F(X86SnippetFileTest, NoDefregValue) { … }
TEST_F(X86SnippetFileTest, MissingParam) { … }
TEST_F(X86SnippetFileTest, NoAsmStreamer) { … }
TEST_F(X86SnippetFileTest, MemoryDefinitionTestSingleDef) { … }
TEST_F(X86SnippetFileTest, MemoryDefinitionsTestTwoDef) { … }
TEST_F(X86SnippetFileTest, MemoryDefinitionMissingParameter) { … }
TEST_F(X86SnippetFileTest, MemoryMappingMissingParameters) { … }
TEST_F(X86SnippetFileTest, MemoryMappingNoDefinition) { … }
TEST_F(X86SnippetFileTest, SnippetAddress) { … }
TEST_F(X86SnippetFileTest, LoopRegister) { … }
TEST_F(X86SnippetFileTest, LoopRegisterInvalidRegister) { … }
}
}
}