nv50/ir: Fix type of the instruction created by mkCmp() for dst in FILE_FLAGS.

This commit is contained in:
Francisco Jerez 2012-04-09 18:22:57 +02:00 committed by Christoph Bumiller
parent f8c3212cbb
commit d07e4421ab

View file

@ -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);