mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
LLVM: fix FCTIWZ, FCTIDZ
This commit is contained in:
parent
560d6776af
commit
aad035c4b5
1 changed files with 2 additions and 2 deletions
|
@ -3703,7 +3703,7 @@ void PPUTranslator::FCTIW(ppu_opcode_t op)
|
||||||
void PPUTranslator::FCTIWZ(ppu_opcode_t op)
|
void PPUTranslator::FCTIWZ(ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
const auto b = GetFpr(op.frb);
|
const auto b = GetFpr(op.frb);
|
||||||
SetFpr(op.frd, m_ir->CreateFPToSI(b, GetType<s32>()));
|
SetFpr(op.frd, Call(GetType<s32>(), "llvm.x86.sse2.cvttsd2si", m_ir->CreateInsertElement(GetUndef<f64[2]>(), b, uint64_t{0})));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPUTranslator::FDIV(ppu_opcode_t op)
|
void PPUTranslator::FDIV(ppu_opcode_t op)
|
||||||
|
@ -3949,7 +3949,7 @@ void PPUTranslator::FCTID(ppu_opcode_t op)
|
||||||
void PPUTranslator::FCTIDZ(ppu_opcode_t op)
|
void PPUTranslator::FCTIDZ(ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
const auto b = GetFpr(op.frb);
|
const auto b = GetFpr(op.frb);
|
||||||
SetFpr(op.frd, m_ir->CreateFPToSI(b, GetType<s64>()));
|
SetFpr(op.frd, Call(GetType<s64>(), "llvm.x86.sse2.cvttsd2si64", m_ir->CreateInsertElement(GetUndef<f64[2]>(), b, uint64_t{0})));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPUTranslator::FCFID(ppu_opcode_t op)
|
void PPUTranslator::FCFID(ppu_opcode_t op)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue