Skip to content

Commit 64f688c

Browse files
itetyush-inteligcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 5ae1792
Report for wrong input for exec size
1 parent 2724b08 commit 64f688c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXCisaBuilder.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3575,15 +3575,14 @@ void GenXKernelBuilder::buildIntrinsic(CallInst *CI, unsigned IntrinID,
35753575
DS_Error};
35763576
getContext().diagnose(Err);
35773577
}
3578-
unsigned Res = Const->getSExtValue();
3579-
*Mask = VISA_EMask_Ctrl::vISA_EMASK_M1;
3578+
unsigned Byte = Const->getSExtValue() & 15;
3579+
*Mask = (VISA_EMask_Ctrl)(Byte >> 4);
3580+
unsigned Res = Byte & 0xF;
35803581
if (Res > 5) {
3581-
DiagnosticInfoCisaBuild Err{CI,
3582-
"illegal common ISA execsize "
3583-
"(expected log2 from 1, 2, 4, 8, 16 or 32)",
3584-
DS_Error};
3582+
DiagnosticInfoCisaBuild Err{
3583+
CI, "illegal common ISA execsize (should be 1, 2, 4, 8, 16, 32)",
3584+
DS_Error};
35853585
getContext().diagnose(Err);
3586-
report_fatal_error("wrong execsize");
35873586
}
35883587
return (VISA_Exec_Size)Res;
35893588
};

0 commit comments

Comments
 (0)