GPU: Use the bf bit in FSET to determine whether to write 0xFFFFFFFF or 1.0f.

This commit is contained in:
Subv 2018-06-04 11:58:29 -05:00
parent f6679ce422
commit 2933521a08
2 changed files with 7 additions and 2 deletions

View file

@ -1066,7 +1066,12 @@ private:
std::string predicate = "(((" + op_a + ") " + comparator + " (" + op_b + ")) " +
combiner + " (" + second_pred + "))";
regs.SetRegisterToFloat(instr.gpr0, 0, predicate + " ? 1.0 : 0.0", 1, 1);
if (instr.fset.bf) {
regs.SetRegisterToFloat(instr.gpr0, 0, predicate + " ? 1.0 : 0.0", 1, 1);
} else {
regs.SetRegisterToInteger(instr.gpr0, false, 0, predicate + " ? 0xFFFFFFFF : 0", 1,
1);
}
break;
}
default: {