This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix VGPR VOPD banks for src2
AbandonedPublic

Authored by rampitec on Jun 10 2023, 2:38 AM.

Details

Reviewers
foad
Joe_Nash
Summary

The vdst parity is checked first, src2 shall follow regular rules.
This is actually work incorrectly rejecting valid cases.

Diff Detail

Event Timeline

rampitec created this revision.Jun 10 2023, 2:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2023, 2:38 AM
rampitec requested review of this revision.Jun 10 2023, 2:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2023, 2:38 AM
Herald added a subscriber: wdng. · View Herald Transcript

I mean really this: writing registers and reading registers have nothing in common. Banks are only relevant when you are reading them.

rampitec added inline comments.Jun 10 2023, 2:54 AM
llvm/test/MC/AMDGPU/gfx11_asm_vopd_err.s
281

But then even a manually written tests do not save against a simple miscalculation. These registers are only 2 steps apart. There are 4 banks. One must add 4 to get a bank conflict. 3+4=7, not 5. How was this test done?

rampitec added inline comments.Jun 10 2023, 3:11 AM
llvm/test/MC/AMDGPU/gfx11_asm_vopd_err.s
281

There is no bank conflict between v3 and v5, I am sorry.

rampitec abandoned this revision.Jun 10 2023, 3:46 PM

Ugh. There was additional restriction on src2.