diff options
author | Christoph Bumiller <[email protected]> | 2012-01-07 18:41:18 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-01-10 00:37:32 +0100 |
commit | 6ab6110133c2d316d98f78bbc38bca0c5b6184a7 (patch) | |
tree | 839739dcc63128c6eaf141b502d14f6eec9b55a2 /src/gallium | |
parent | b85e93c0ca5ce881a59412b3ae617b5ac2c3aeb6 (diff) |
nv50/ir/opt: s/SHL/SHR in optimization of u32 DIV
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |