This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Let assembler accept vector memory operands that have an explicit 0 offset.
ClosedPublic

Authored by craig.topper on Apr 19 2023, 11:31 AM.

Details

Summary

Binutils allows vector instructions with memory operands that
have an explicit 0 offset like 'vle8.v v0, 0(a0)'.

We already have support for this in the parser because the same
thing is allowed for atomics.

This patch changes the AsmOperand and AsmString for the vector
memory instructions to allow this.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 19 2023, 11:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 11:31 AM
craig.topper requested review of this revision.Apr 19 2023, 11:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 11:31 AM
asb accepted this revision.Apr 19 2023, 10:45 PM

LGTM.

This revision is now accepted and ready to land.Apr 19 2023, 10:45 PM
This revision was landed with ongoing or failed builds.Apr 20 2023, 12:19 AM
This revision was automatically updated to reflect the committed changes.