This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Reject 'g' with explicit version in parseArchString
ClosedPublic

Authored by asb on Mar 13 2023, 9:35 AM.

Details

Summary

There is no versioning scheme for the 'g' shorthand for imafd (or in current ISA specs, imafd_zifencei_zicsr). As such, the only sensible behaviour to me seems to be to reject a version for it.

Diff Detail

Event Timeline

asb created this revision.Mar 13 2023, 9:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 9:35 AM
asb requested review of this revision.Mar 13 2023, 9:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 9:35 AM
asb retitled this revision from [RISCV] Reject 'g' with explicitly version in parseArchString to [RISCV] Reject 'g' with explicit version in parseArchString.Mar 13 2023, 9:35 AM

Makes sense to me.

kito-cheng accepted this revision.Mar 13 2023, 6:43 PM

LGTM, the version scheme of g already broken for a while.

This revision is now accepted and ready to land.Mar 13 2023, 6:43 PM
This revision was automatically updated to reflect the committed changes.