Skip to content

Commit f0dc49a

Browse files
anikaushikigcbot
authored andcommitted
Changes in code.
1 parent 2a99486 commit f0dc49a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

visa/IsaVerification.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,16 +3986,15 @@ struct LscInstVerifier {
39863986

39873987
bool transpose = dataShape2D.order == LSC_DATA_ORDER_TRANSPOSE;
39883988
bool transform = dataShape2D.vnni;
3989+
unsigned totalBytes = dataShape2D.width * dataShape2D.blocks * dataSizeBytes;
39893990
if (subOp == LSC_LOAD_BLOCK2D) {
3990-
valid &= verify(dataShape2D.width * dataShape2D.blocks * dataSizeBytes <= 64,
3991-
dataShape2D.width * dataShape2D.blocks * dataSizeBytes,
3992-
": block2d width * data size must be <= 64Bytes for 2D loads");
3991+
valid &= verify(totalBytes <= 64,
3992+
totalBytes, ": block2d width * data size must be <= 64Bytes for 2D loads");
39933993
}
39943994
else {
39953995
// subOp is LSC_STORE_BLOCK2D
3996-
valid &= verify(dataShape2D.width * dataShape2D.blocks * dataSizeBytes <= 512,
3997-
dataShape2D.width * dataShape2D.blocks * dataSizeBytes,
3998-
": block2d width * data size must be <= 512Bytes for 2D stores");
3996+
valid &= verify(totalBytes <= 512,
3997+
totalBytes, ": block2d width * data size must be <= 512Bytes for 2D stores");
39993998
}
40003999

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

0 commit comments

Comments
 (0)