shader: Implement DMUL and DFMA

Also add a missing const on DADD
This commit is contained in:
ameerj
2021-03-21 02:09:14 -04:00
parent 112b8f00f0
commit c858b8ba97
8 changed files with 111 additions and 30 deletions

View File

@ -30,7 +30,7 @@ void DADD(TranslatorVisitor& v, u64 insn, const IR::F64& src_b) {
const IR::F64 op_a{v.ir.FPAbsNeg(src_a, dadd.abs_a != 0, dadd.neg_a != 0)};
const IR::F64 op_b{v.ir.FPAbsNeg(src_b, dadd.abs_b != 0, dadd.neg_b != 0)};
IR::FpControl control{
const IR::FpControl control{
.no_contraction{true},
.rounding{CastFpRounding(dadd.fp_rounding)},
.fmz_mode{IR::FmzMode::None},