#include "Target.h"
#include <cassert>
#include <memory>
#include "MCTargetDesc/MipsMCTargetDesc.h"
#include "TestBase.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace llvm {
namespace exegesis {
namespace {
AllOf;
ElementsAre;
Eq;
Matcher;
Property;
Matcher<MCOperand> IsImm(int64_t Value) { … }
Matcher<MCOperand> IsReg(unsigned Reg) { … }
Matcher<MCInst> OpcodeIs(unsigned Opcode) { … }
Matcher<MCInst> IsLoadLow16BitImm(unsigned Reg, int64_t Value, bool IsGPR32) { … }
Matcher<MCInst> IsLoadHigh16BitImm(unsigned Reg, int64_t Value, bool IsGPR32) { … }
Matcher<MCInst> IsShift(unsigned Reg, uint16_t Amount, bool IsGPR32) { … }
class MipsTargetTest : public MipsTestBase { … };
TEST_F(MipsTargetTest, SetGPR32RegTo16BitValue) { … }
TEST_F(MipsTargetTest, SetGPR64RegTo16BitValue) { … }
TEST_F(MipsTargetTest, SetGPR32RegTo32BitValue) { … }
TEST_F(MipsTargetTest, SetGPR64RegTo32BitValue) { … }
TEST_F(MipsTargetTest, DefaultPfmCounters) { … }
}
}
}