nv50/ir/opt: s/SHL/SHR in optimization of u32 DIV

This commit is contained in:
Christoph Bumiller
2012-01-07 18:41:18 +01:00
parent b85e93c0ca
commit 6ab6110133
@@ -630,7 +630,7 @@ ConstantFolding::opnd(Instruction *i, ImmediateValue *src, int s)
i->setSrc(1, NULL);
} else
if (i->dType == TYPE_U32 && imm.isPow2()) {
i->op = OP_SHL;
i->op = OP_SHR;
i->setSrc(1, bld.mkImm(util_logbase2(imm.reg.data.u32)));
} else
if (i->dType == TYPE_U32) {