Skip to content

Commit

Permalink
Changes in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaushik authored and igcbot committed Oct 11, 2023
1 parent 2a99486 commit f0dc49a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions visa/IsaVerification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3986,16 +3986,15 @@ struct LscInstVerifier {

bool transpose = dataShape2D.order == LSC_DATA_ORDER_TRANSPOSE;
bool transform = dataShape2D.vnni;
unsigned totalBytes = dataShape2D.width * dataShape2D.blocks * dataSizeBytes;
if (subOp == LSC_LOAD_BLOCK2D) {
valid &= verify(dataShape2D.width * dataShape2D.blocks * dataSizeBytes <= 64,
dataShape2D.width * dataShape2D.blocks * dataSizeBytes,
": block2d width * data size must be <= 64Bytes for 2D loads");
valid &= verify(totalBytes <= 64,
totalBytes, ": block2d width * data size must be <= 64Bytes for 2D loads");
}
else {
// subOp is LSC_STORE_BLOCK2D
valid &= verify(dataShape2D.width * dataShape2D.blocks * dataSizeBytes <= 512,
dataShape2D.width * dataShape2D.blocks * dataSizeBytes,
": block2d width * data size must be <= 512Bytes for 2D stores");
valid &= verify(totalBytes <= 512,
totalBytes, ": block2d width * data size must be <= 512Bytes for 2D stores");
}

int rows = !transpose ? dataShape2D.height : dataShape2D.width;
Expand Down

0 comments on commit f0dc49a

Please sign in to comment.