Skip to content

Commit 9c5302c

Browse files
jgu222gfxbot
authored andcommitted
Moving V->HF causes incorrect results. Don't copyprog V to
avoid V->HF mov Change-Id: I2f5472b8fb9630d53d3a2d96e3893c352ce98980
1 parent 9f79411 commit 9c5302c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

visa/Gen4_IR.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,14 @@ bool G4_INST::isLegalType(G4_Type type, Gen4_Operand_Number opndNum) const
16701670
return type == Type_B || type == Type_UB;
16711671
case G4_subb:
16721672
return type == Type_UD;
1673+
case G4_mov:
1674+
// Avoid mov r7.0<1>:hf 0x76543210:v
1675+
if (IS_VINTTYPE(type) &&
1676+
(IS_FTYPE(dst->getType()) || IS_HFTYPE(dst->getType())))
1677+
{
1678+
return false;
1679+
}
1680+
return true;
16731681
}
16741682
}
16751683

0 commit comments

Comments
 (0)