This is an archive of the discontinued LLVM Phabricator instance.

[14/15][Clang][RISCV] Change default policy from TAMU to TAMA
ClosedPublic

Authored by eopXD on Jan 15 2023, 6:54 AM.

Details

Summary

After this commit, the non-policy variants of vid and viota are no
longer available for an oveloaded version since the default policy is
now TAMA and the masked-off operand is removed.

Be noted that ALL RVV intrinsics now operate under the general
assumption that a policy behavior is "agnostic" unless specified.
Therefore this patch also changes the semantic of policy intrinsics
with the suffix of _ta and tu. These intrinsics don't have their
mask policy specified and was assumed to be undisturbed. It is now
changed to agnostic.

This is the 14th commit of a patch-set that aims to change the default policy
for RVV intrinsics from TAMU to TAMA.

Please refer to the cover letter in the 1st commit (D141573) for an
overview.

Diff Detail

Event Timeline

eopXD created this revision.Jan 15 2023, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 15 2023, 6:54 AM
eopXD requested review of this revision.Jan 15 2023, 6:54 AM
eopXD retitled this revision from [WIP][14/15][Clang][RISCV] Change default policy from TAMU to TAMA to [14/15][Clang][RISCV] Change default policy from TAMU to TAMA.Jan 15 2023, 8:05 AM
eopXD edited the summary of this revision. (Show Details)
eopXD updated this revision to Diff 489370.Jan 15 2023, 9:40 AM
eopXD edited the summary of this revision. (Show Details)

Update test cases that were leftout in the previous diff.

craig.topper added inline comments.Jan 19 2023, 12:26 AM
clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/non-policy/overloaded/vmsgt.c
10

Why does this test go away?

eopXD updated this revision to Diff 490396.Jan 19 2023, 12:53 AM

Recover mis-deleted test cases, which are the instructions with a mask destination register.

eopXD marked an inline comment as done.Jan 19 2023, 12:54 AM
This revision is now accepted and ready to land.Jan 19 2023, 1:00 AM
This revision was landed with ongoing or failed builds.Jan 24 2023, 8:32 AM
This revision was automatically updated to reflect the committed changes.