Files
ppsspp/Core/MIPS/ARM/ArmCompVFPUNEONUtil.h

21 lines
383 B
C
Raw Permalink Normal View History

2014-12-06 12:34:15 +01:00
#pragma once
#include "Core/MIPS/ARM/ArmJit.h"
#include "Core/MIPS/ARM/ArmRegCache.h"
namespace MIPSComp {
using namespace ArmGen;
2014-12-06 12:34:15 +01:00
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);
}
}