Skip to content

Commit

Permalink
Merge pull request #18266 from unknownbrackets/ir-vtfm
Browse files Browse the repository at this point in the history
irjit: Fix vhtfm instruction
  • Loading branch information
hrydgard committed Sep 29, 2023
2 parents 9dcaf4e + c92148e commit 5d8a0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/MIPS/IR/IRCompVFPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ namespace MIPSComp {
if (homogenous) {
// This is probably even what the hardware basically does, wiring t[3] to 1.0f.
ir.Write(IROp::Vec4Init, IRVTEMP_PFX_T, (int)Vec4Init::AllONE);
ir.Write(IROp::Vec4Blend, IRVTEMP_PFX_T, t, IRVTEMP_PFX_T, 0x7);
ir.Write(IROp::Vec4Blend, IRVTEMP_PFX_T, IRVTEMP_PFX_T, t, 0x7);
t = IRVTEMP_PFX_T;
}
for (int i = 0; i < 4; i++)
Expand Down

0 comments on commit 5d8a0b3

Please sign in to comment.