This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Check for num elts in SelectVOP3PMods
ClosedPublic

Authored by piotr on Sep 14 2022, 5:09 AM.

Details

Summary

The rest of the code section assumes there are exactly two elements
in the vector (Lo, Hi), so add the check before entering the section.

Diff Detail

Event Timeline

piotr created this revision.Sep 14 2022, 5:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 5:09 AM
piotr requested review of this revision.Sep 14 2022, 5:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 5:09 AM

Does this solve a real problem?

piotr added a comment.Sep 14 2022, 6:51 AM

Does this solve a real problem?

Yes, the wrong path can be entered by one of the v_wmma instructions.

Does this solve a real problem?

Yes, the wrong path can be entered by one of the v_wmma instructions.

Should get a test then

piotr updated this revision to Diff 460101.Sep 14 2022, 8:09 AM

Added test.

arsenm accepted this revision.Sep 14 2022, 9:41 AM
This revision is now accepted and ready to land.Sep 14 2022, 9:41 AM
This revision was landed with ongoing or failed builds.Sep 14 2022, 11:05 AM
This revision was automatically updated to reflect the committed changes.