Check for branch range overflows and add a testcase.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, but suggestions for stricter test case.
lld/test/ELF/hexagon-verify.s | ||
---|---|---|
5–9 ↗ | (On Diff #224614) | I'd make the subsequent ones CHECK-NEXT. Also may make sense to constrain the FileCheck with implicit-check-not='out of range' to make sure no range errors are emitted that aren't checked for. |
lld/test/ELF/hexagon-verify.s | ||
---|---|---|
5 ↗ | (On Diff #224637) | #CHECK -> # CHECK If such branch relocation types have a categorical name, e.g. jump, consider rename this test to something like hexagon-jump-error.s x86-64-reloc-error.s aarch64-lo21-error.s # the name is good |