diff options
author | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-10 05:48:48 +0000 |
---|---|---|
committer | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-10 05:48:48 +0000 |
commit | f3685095439c48c5a549e36a97e7fa9524aa4507 (patch) | |
tree | 0100cb1aab62e13022077450124a399160e1c1a5 /llvm/lib/Target/AVR/AVRRegisterInfo.cpp | |
parent | c05cb603690c466bf443e8ac14d2ad6ea6909728 (diff) | |
download | bcm5719-llvm-f3685095439c48c5a549e36a97e7fa9524aa4507.tar.gz bcm5719-llvm-f3685095439c48c5a549e36a97e7fa9524aa4507.zip |
[AVR] Fix a bunch of incorrect assertion messages
These should've been checking whether the immediate is a 6-bit unsigned
integer.
If the immediate was '63', this would cause an assertion error which
shouldn't have occurred.
llvm-svn: 289315
Diffstat (limited to 'llvm/lib/Target/AVR/AVRRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/AVR/AVRRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp index 7f5002f1608..48798bd4a1d 100644 --- a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp +++ b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp @@ -193,7 +193,7 @@ void AVRRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, // If the offset is too big we have to adjust and restore the frame pointer // to materialize a valid load/store with displacement. //:TODO: consider using only one adiw/sbiw chain for more than one frame index - if (Offset >= 63) { + if (Offset > 63) { unsigned AddOpc = AVR::ADIWRdK, SubOpc = AVR::SBIWRdK; int AddOffset = Offset - 63 + 1; |