We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e3c8d commit a32c428Copy full SHA for a32c428
llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
@@ -617,7 +617,8 @@ void HexagonDAGToDAGISel::SelectSHL(SDNode *N) {
617
if (ConstantSDNode *C2 = dyn_cast<ConstantSDNode>(Shl2_1)) {
618
int32_t ValConst = 1 << (ShlConst + C2->getSExtValue());
619
if (isInt<9>(-ValConst)) {
620
- SDValue Val = CurDAG->getTargetConstant(-ValConst, dl, MVT::i32);
+ SDValue Val =
621
+ CurDAG->getSignedTargetConstant(-ValConst, dl, MVT::i32);
622
SDNode *Result = CurDAG->getMachineNode(Hexagon::M2_mpysmi, dl,
623
MVT::i32, Shl2_0, Val);
624
ReplaceNode(N, Result);
0 commit comments