From: Francisco Jerez Date: Mon, 9 Apr 2012 16:22:57 +0000 (+0200) Subject: nv50/ir: Fix type of the instruction created by mkCmp() for dst in FILE_FLAGS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d07e4421ab39d10fb928dffee66698fef2679add;p=mesa.git nv50/ir: Fix type of the instruction created by mkCmp() for dst in FILE_FLAGS. --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp index af1bdd52f35..f7dac25c116 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp @@ -225,7 +225,8 @@ BuildUtil::mkCmp(operation op, CondCode cc, DataType ty, Value *dst, { CmpInstruction *insn = new_CmpInstruction(func, op); - insn->setType(dst->reg.file == FILE_PREDICATE ? TYPE_U8 : ty, ty); + insn->setType((dst->reg.file == FILE_PREDICATE || + dst->reg.file == FILE_FLAGS) ? TYPE_U8 : ty, ty); insn->setCondition(cc); insn->setDef(0, dst); insn->setSrc(0, src0);