Skip to content

Commit 8041eec

Browse files
kychendevigcbot
authored andcommitted
Fix EMask mismatch for raw send.
Fixed a bug in building vISA EMask for raw send.
1 parent ce2e7e5 commit 8041eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXCisaBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3592,7 +3592,7 @@ void GenXKernelBuilder::buildIntrinsic(CallInst *CI, unsigned IntrinID,
35923592
DS_Error};
35933593
getContext().diagnose(Err);
35943594
}
3595-
unsigned Byte = Const->getSExtValue() & 15;
3595+
unsigned Byte = Const->getSExtValue() & 0xFF;
35963596
*Mask = (VISA_EMask_Ctrl)(Byte >> 4);
35973597
unsigned Res = Byte & 0xF;
35983598
if (Res > 5) {

0 commit comments

Comments
 (0)