mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 14:00:03 +00:00
21 lines
383 B
C++
21 lines
383 B
C++
#pragma once
|
|
|
|
#include "Core/MIPS/ARM/ArmJit.h"
|
|
#include "Core/MIPS/ARM/ArmRegCache.h"
|
|
|
|
namespace MIPSComp {
|
|
|
|
using namespace ArmGen;
|
|
|
|
inline ARMReg MatchSize(ARMReg x, ARMReg target) {
|
|
if (IsQ(target) && IsQ(x))
|
|
return x;
|
|
if (IsD(target) && IsD(x))
|
|
return x;
|
|
if (IsD(target) && IsQ(x))
|
|
return D_0(x);
|
|
// if (IsQ(target) && IsD(x))
|
|
return (ARMReg)(D0 + (x - Q0) * 2);
|
|
}
|
|
|
|
} |