forked from OSchip/llvm-project
[mlir][amdgpu] Fix signed/unsigned comparison for abid/cbsz comparison
Unsigned/signed comparison failure due to implicit signed value. Reviewed By: stella.stamenova Differential Revision: https://reviews.llvm.org/D133061
This commit is contained in:
parent
69193c6cd7
commit
7e52e0fc72
|
@ -111,7 +111,7 @@ LogicalResult MFMAOp::verify() {
|
|||
if (destElem.isF64() && getCbsz() != 0)
|
||||
return emitOpError(
|
||||
"double-precision ops do not support permuting lanes of A");
|
||||
if (getAbid() >= (1 << getCbsz()))
|
||||
if (getAbid() >= (1u << getCbsz()))
|
||||
return emitOpError(
|
||||
"block ID for permuting A (abid) must be below 2 ** cbsz");
|
||||
|
||||
|
|
Loading…
Reference in New Issue