File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3986,16 +3986,15 @@ struct LscInstVerifier {
3986
3986
3987
3987
bool transpose = dataShape2D.order == LSC_DATA_ORDER_TRANSPOSE;
3988
3988
bool transform = dataShape2D.vnni ;
3989
+ unsigned totalBytes = dataShape2D.width * dataShape2D.blocks * dataSizeBytes;
3989
3990
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" );
3993
3993
}
3994
3994
else {
3995
3995
// 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" );
3999
3998
}
4000
3999
4001
4000
int rows = !transpose ? dataShape2D.height : dataShape2D.width ;
You can’t perform that action at this time.
0 commit comments