[CSKY] Fix the assert in eliminateFrameIndex when the offset is negative
authorZi Xuan Wu (Zeson) <zixuan.wu@linux.alibaba.com>
Wed, 15 Jun 2022 01:36:26 +0000 (09:36 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Wed, 15 Jun 2022 01:54:21 +0000 (09:54 +0800)
commit587573b9f9f74fdb3f816ca6de72b3ecdc6441d3
treee9ff31df9e32b3f14b3f97e9dcf4206989bf398e
parent54ec8e25fcc5f638832bbbf9104a0fadca231007
[CSKY] Fix the assert in eliminateFrameIndex when the offset is negative

After the frameindex is resolved, the offset can be negative. It would
be materialized as unsigned integer and can still calculated by add instruction.
llvm/lib/Target/CSKY/CSKYInstrInfo.cpp
llvm/lib/Target/CSKY/CSKYInstrInfo.h
llvm/lib/Target/CSKY/CSKYRegisterInfo.cpp