llvm/llvm/unittests/TargetParser/CSKYTargetParserTest.cpp

//===-------- CSKYTargetParser.cpp - CSKY Target Parser -------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/TargetParser/CSKYTargetParser.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/CSKYAttributes.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/TargetParser/TargetParser.h"
#include "gtest/gtest.h"
#include <string>

usingnamespacellvm;

namespace {

std::string FormatExtensionFlags(uint64_t Flags) {}

testing::AssertionResult AssertSameExtensionFlags(const char *m_expr,
                                                  const char *n_expr,
                                                  uint64_t ExpectedFlags,
                                                  uint64_t GotFlags) {}

struct CSKYCPUTestParams {};

class CSKYCPUTestFixture : public ::testing::TestWithParam<CSKYCPUTestParams> {};

TEST_P(CSKYCPUTestFixture, CSKYCPUTests) {}

// Note that we include CSKY::AEK_NONE even when there are other extensions
// we expect. This is because the default extensions for a CPU are the sum
// of the default extensions for its architecture and for the CPU.
// So if a CPU has no extra extensions, it adds AEK_NONE.
INSTANTIATE_TEST_SUITE_P();

static constexpr unsigned NumCSKYCPUArchs =;

TEST(TargetParserTest, testCSKYCPUArchList) {}

TEST(TargetParserTest, testInvalidCSKYArch) {}

bool testCSKYArch(StringRef Arch, StringRef DefaultCPU) {}

TEST(TargetParserTest, testCSKYArch) {}

TEST(TargetParserTest, CSKYFPUVersion) {}

TEST(TargetParserTest, CSKYExtensionFeatures) {}

TEST(TargetParserTest, CSKYFPUFeatures) {}

TEST(TargetParserTest, CSKYArchExtFeature) {}

} // namespace