mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Tidy up value checking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6482e91149
commit
cb86509e7a
@ -152,7 +152,8 @@ bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
|
||||
// encodable.
|
||||
//
|
||||
// Relax if the value is too big for a (signed) i8.
|
||||
return int64_t((Value - 4)>>1) != int64_t(int8_t((Value - 4)>>1));
|
||||
int64_t Offset = int64_t(Value) - 4;
|
||||
return Offset > 254 || Offset < -256;
|
||||
}
|
||||
|
||||
void ARMAsmBackend::RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user