Code cleanup: moving poly/ into xenia/base/
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("BYTE_SWAP_V128", "[instr]") {
|
||||
TestFunction([](HIRBuilder& b) {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("EXTRACT_INT8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("INSERT_INT8", "[instr]") {
|
||||
for (int i = 0; i < 16; ++i) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("LOAD_VECTOR_SHL", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("PACK_D3DCOLOR", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("PERMUTE_V128_BY_INT32_CONSTANT", "[instr]") {
|
||||
{
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("SHR_I8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("SWIZZLE_V128", "[instr]") {
|
||||
TestFunction([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("UNPACK_D3DCOLOR", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_ADD_I8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_MAX_I8_SIGNED", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_MIN_I8_SIGNED", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
#include "third_party/xbyak/xbyak/xbyak_bin2hex.h"
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_ROTATE_LEFT_I8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_SHA_I8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_SHL_I8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe;
|
||||
using namespace xe::cpu;
|
||||
using namespace xe::cpu::hir;
|
||||
using namespace xe::cpu::test;
|
||||
using xe::cpu::frontend::PPCContext;
|
||||
using namespace poly;
|
||||
|
||||
TEST_CASE("VECTOR_SHR_I8", "[instr]") {
|
||||
TestFunction test([](HIRBuilder& b) {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#ifndef XENIA_TEST_UTIL_H_
|
||||
#define XENIA_TEST_UTIL_H_
|
||||
|
||||
#include "poly/main.h"
|
||||
#include "xenia/base/main.h"
|
||||
#include "xenia/cpu/backend/x64/x64_backend.h"
|
||||
#include "xenia/cpu/cpu.h"
|
||||
#include "xenia/cpu/frontend/ppc_context.h"
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#define CATCH_CONFIG_RUNNER
|
||||
#include "third_party/catch/single_include/catch.hpp"
|
||||
|
||||
#include "poly/debugging.h"
|
||||
#include "poly/string.h"
|
||||
#include "xenia/base/debugging.h"
|
||||
#include "xenia/base/string.h"
|
||||
#include "xenia/cpu/test/util.h"
|
||||
|
||||
namespace xe {
|
||||
@@ -25,7 +25,7 @@ int main(std::vector<std::wstring>& args) {
|
||||
std::vector<std::string> narrow_args;
|
||||
auto narrow_argv = new char* [args.size()];
|
||||
for (size_t i = 0; i < args.size(); ++i) {
|
||||
auto narrow_arg = poly::to_string(args[i]);
|
||||
auto narrow_arg = xe::to_string(args[i]);
|
||||
narrow_argv[i] = const_cast<char*>(narrow_arg.data());
|
||||
narrow_args.push_back(std::move(narrow_arg));
|
||||
}
|
||||
@@ -33,8 +33,8 @@ int main(std::vector<std::wstring>& args) {
|
||||
if (ret) {
|
||||
#if XE_PLATFORM_WIN32
|
||||
// Visual Studio kills the console on shutdown, so prevent that.
|
||||
if (poly::debugging::IsDebuggerAttached()) {
|
||||
poly::debugging::Break();
|
||||
if (xe::debugging::IsDebuggerAttached()) {
|
||||
xe::debugging::Break();
|
||||
}
|
||||
#endif // XE_PLATFORM_WIN32
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "poly/main.h"
|
||||
#include "xenia/base/main.h"
|
||||
#include "xenia/cpu/cpu.h"
|
||||
#include "xenia/cpu/backend/x64/x64_backend.h"
|
||||
#include "xenia/cpu/frontend/ppc_context.h"
|
||||
|
||||
Reference in New Issue
Block a user