Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR for llvm/llvm-project#61388 #406

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Mar 30, 2023

…ersions of known extensions

This Moves ELFObjectFile to using
RISCVISAInfo::parseNormalizedArchString which does not ignore or produce
an error for ISA extensions with a version that isn't
recognised/supported by LLVM. As current GCC is marking its objects with
a higher version of the A, F, and D extensions than LLVM (see [extension
versioning
discussion](https://discourse.llvm.org/t/rfc-resolving-issues-related-to-extension-versioning-in-risc-v/68472)
this massively improves the usability of llvm-objdump with such
binaries.

This patch is functionally a cherry-pick of
af602ed and
91c6174, though I've constructed the
backport manually because other changes unrelated to this specific fix
make a direct cherry pick difficult.
@asb
Copy link
Contributor

asb commented Mar 30, 2023

This is the objdump equivalent of llvm/llvm-project#60889. I've done the cherry-pick manually as the additional testing for other RISCVISAInfo functions (and related fixes) make it difficult to directly cherry-pick. Without this fix, llvm-objdump is going to refuse to process RISC-V objects from a recent GCC (or from a newer LLVM once D147179 lands). This is a regression since LLVM 15, and the fix ends up being small and non-invasive.

@asb
Copy link
Contributor

asb commented Apr 3, 2023

Can someone please advise what to do about the failing "abi-compare" test? I can't see how this change could have triggered it, and also can't see how to view the build artifact. Thanks in advance.

@tstellar
Copy link
Contributor

tstellar commented Apr 4, 2023

@asb The test failure was caused by #377. I've reverted that change upstream, so the abi-compare test should start passing for new submissions now.

@tstellar tstellar merged commit 2b7a060 into release/16.x Apr 4, 2023
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.

llvm-objdump gives <unknown> for RISC-V Vector (RVV) instruction
3 participants