From 6ab6110133c2d316d98f78bbc38bca0c5b6184a7 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 7 Jan 2012 18:41:18 +0100 Subject: nv50/ir/opt: s/SHL/SHR in optimization of u32 DIV --- src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index 5b0174b16cb..2a7a981ac61 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -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) { -- cgit v1.2.3