Skip to content

Commit 642414a

Browse files
committed
Fix assertion
1 parent 0b8f561 commit 642414a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ int32_t getScaleSel(int32_t blockSize, unsigned bitWidth,
16411641

16421642
if (!is_fp8) {
16431643
int bit_0 = is_block_16;
1644-
assert(llvm::is_contained({0, 2}, firstScaleByte));
1644+
assert(llvm::is_contained({0, 1, 2}, firstScaleByte));
16451645
int bit_1 = (firstScaleByte == 2) << 1;
16461646
assert(llvm::is_contained({0, 1}, firstScaleLane));
16471647
int bit_2 = firstScaleLane << 2;

0 commit comments

Comments
 (0)