From d07e4421ab39d10fb928dffee66698fef2679add Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 9 Apr 2012 18:22:57 +0200 Subject: nv50/ir: Fix type of the instruction created by mkCmp() for dst in FILE_FLAGS. --- src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/nv50/codegen') 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); -- cgit v1.2.3