Skip to content

Commit 7d1a681

Browse files
committed
[SystemZ] Use APInt::getAllOnes()
This was using -1 without setting the signed flag. Split off from #80309.
1 parent 3d01f0a commit 7d1a681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7981,7 +7981,7 @@ static APInt getDemandedSrcElements(SDValue Op, const APInt &DemandedElts,
79817981
break;
79827982
}
79837983
case Intrinsic::s390_vperm:
7984-
SrcDemE = APInt(NumElts, -1);
7984+
SrcDemE = APInt::getAllOnes(NumElts);
79857985
break;
79867986
default:
79877987
llvm_unreachable("Unhandled intrinsic.");

0 commit comments

Comments
 (0)