nvc0/ir: fix lowering of DIV F32

This commit is contained in:
Christoph Bumiller
2011-09-23 18:39:48 +02:00
parent cb88426293
commit b5f2c0505f
@@ -524,6 +524,7 @@ NVC0LoweringPass::handleDIV(Instruction *i)
{
if (!isFloatType(i->dType))
return true;
bld.setPosition(i, false);
Instruction *rcp = bld.mkOp1(OP_RCP, i->dType, bld.getSSA(), i->getSrc(1));
i->op = OP_MUL;
i->setSrc(1, rcp->getDef(0));