forked from OSchip/llvm-project
[mlir][tosa] Bitwidth mismatch should be long-long not long
Reviewed By: scotttodd Differential Revision: https://reviews.llvm.org/D133064
This commit is contained in:
parent
76f097cf14
commit
5b0863f3ef
|
@ -610,7 +610,7 @@ OpFoldResult MulOp::fold(ArrayRef<Attribute> operands) {
|
|||
if (val.isZero())
|
||||
return lhsAttr;
|
||||
const int64_t shift = getShift();
|
||||
const int64_t shifted = 1L << shift;
|
||||
const int64_t shifted = 1LL << shift;
|
||||
if (val.getSExtValue() == shifted)
|
||||
return rhs;
|
||||
}
|
||||
|
@ -618,7 +618,7 @@ OpFoldResult MulOp::fold(ArrayRef<Attribute> operands) {
|
|||
if (rhsAttr && rhsAttr.isSplat() && resultETy.isa<IntegerType>()) {
|
||||
auto val = rhsAttr.getSplatValue<APInt>();
|
||||
const int64_t shift = getShift();
|
||||
const int64_t shifted = 1L << shift;
|
||||
const int64_t shifted = 1LL << shift;
|
||||
if (val.isZero())
|
||||
return rhsAttr;
|
||||
if (val.getSExtValue() == shifted)
|
||||
|
|
Loading…
Reference in New Issue