Fix for the upper bound check that was causing a build failure.
Details
Diff Detail
Event Timeline
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | ||
---|---|---|
582 | The 4-byte offset is being applied a few lines down, so should this actually be checking for the range [4, 130]? |
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | ||
---|---|---|
582 | The valid range is actually [2, 130] as offsets of 2 are relaxed to NOP. But yes I forgot to take the offset correction below into account. |
test/MC/ARM/thumb-cb-negative-offsets.s | ||
---|---|---|
27 | This test won't fail if an error is emitted for this instruction. You'll need a CHECK-NOT line to ensure that no further diagnostics are emitted. |
The 4-byte offset is being applied a few lines down, so should this actually be checking for the range [4, 130]?