[PATCH] D118045: [AArch64] Exclude optional features from HasV8_0rOps.

Simon Tatham via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 07:23:54 PST 2022


simon_tatham created this revision.
simon_tatham added reviewers: SjoerdMeijer, miyuki, dmgreen, MarkMurrayARM, pbarrio, chill.
Herald added subscribers: hiraditya, kristof.beyls.
simon_tatham requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The following SubtargetFeatures are removed from the definition of
HasV8_0rOps, on the grounds that they are optional in Armv8.4-A, and
therefore (by the definition of Armv8.0-R) also optional in v8.0-R:

- performance monitoring: FeaturePerfMon
- cryptography: FeatureSM4 and FeatureSHA3
- half-precision FP: FeatureFullFP16, FeatureFP16FML
- speculation control: FeatureSSBS, FeaturePredRes, FeatureSB, FeatureSpecRestrict

This isn't the full set of features that are listed as optional in the
spec. FeatureCCIDX and FeatureTRACEV8_4 are also optional. But LLVM
includes those in HasV8_3aOps and HasV8_4aOps respectively (I think on
the grounds that the system registers they enable are useful to be
able to access after a runtime check), and so for consistency, I've
left those in HasV8_0rOps too.

After this commit, HasV8_0rOps is a strict subset of HasV8_4aOps (but
missing features that are not in Armv8.0-R at all).

The definition of Cortex-R82 is correspondingly updated to add most of
the features that I've removed from base Armv8.0-R (with the exception
of the cryptography ones), since that particular implementation of
v8.0-R does have them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118045

Files:
  llvm/lib/Target/AArch64/AArch64.td
  llvm/test/MC/AArch64/armv8.2a-crypto.s
  llvm/test/MC/Disassembler/AArch64/armv8.3a-complex.txt
  llvm/test/MC/Disassembler/AArch64/armv8.5a-predres.txt
  llvm/test/MC/Disassembler/AArch64/armv8.5a-specrestrict.txt
  llvm/test/MC/Disassembler/AArch64/armv8.5a-ssbs.txt
  llvm/test/MC/Disassembler/AArch64/armv8a-fpmul.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118045.402520.patch
Type: text/x-patch
Size: 6634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220124/4abe5846/attachment.bin>


More information about the llvm-commits mailing list