Skip to content

[RISCV] Add tests for all relocs that ignore non-zero addends#1428

Merged
Jonathon Penix (jonathonpenix) merged 1 commit into
qualcomm:mainfrom
jonathonpenix:pr/nonzero_addend_fixups
Jul 22, 2026
Merged

[RISCV] Add tests for all relocs that ignore non-zero addends#1428
Jonathon Penix (jonathonpenix) merged 1 commit into
qualcomm:mainfrom
jonathonpenix:pr/nonzero_addend_fixups

Conversation

@jonathonpenix

Copy link
Copy Markdown
Contributor

As far as I can tell these weren't tested elsewhere. Add tests similar to what was already done for PCREL_LO12_I.

Also fixup a stale comment after the relocation handling was refactored recently.

As far as I can tell these weren't tested elsewhere. Add tests similar to
what was already done for PCREL_LO12_I.

Also fixup a stale comment after the relocation handling was refactored
recently.

Signed-off-by: Jonathon Penix <[email protected]>
Comment thread lib/Target/RISCV/RISCVLDBackend.cpp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the developer docs accordingly

@jonathonpenix

Jonathon Penix (jonathonpenix) commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

What sort of updates are you looking for?

This is just adding tests/updating comments/renaming the diag--it should be NFC

If you mean documenting addends or something, this info is already clearly marked in the psABI--I'm a bit hesitant to create a downstream copy of all that info that we have to maintain.

@quic-seaswara

Copy link
Copy Markdown
Contributor

sorry I was trying to add to this PR.

#1534

By mistake it landed on this PR.

Ignore my comment for this PR.

@jonathonpenix
Jonathon Penix (jonathonpenix) merged commit c99defe into qualcomm:main Jul 22, 2026
12 checks passed
@jonathonpenix
Jonathon Penix (jonathonpenix) deleted the pr/nonzero_addend_fixups branch July 22, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants