diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp --- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp @@ -3152,7 +3152,6 @@ Imm = CurDAG->getTargetConstant(ImmVal, DL, MVT::i32); return true; } else if ((ImmVal & 0xFF) == 0) { - assert((ImmVal >= -32768) && (ImmVal <= 32512)); Shift = CurDAG->getTargetConstant(8, DL, MVT::i32); Imm = CurDAG->getTargetConstant((ImmVal >> 8) & 0xFF, DL, MVT::i32); return true;