mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nv50/ir: Fix type of the instruction created by mkCmp() for dst in FILE_FLAGS.
This commit is contained in:
parent
f8c3212cbb
commit
d07e4421ab
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue