This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC][GFX11] Correct ds_swizzle_b32
ClosedPublic

Authored by dp on Jun 9 2022, 7:51 AM.

Details

Summary

Enabled offset parsing. See bug 55959.

Diff Detail

Event Timeline

dp created this revision.Jun 9 2022, 7:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 7:51 AM
dp requested review of this revision.Jun 9 2022, 7:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 7:51 AM
foad accepted this revision.Jun 9 2022, 7:56 AM

LGTM as a quick fix.

Is there a better way to do this by using a different operand type, instead of special-casing certain opcodes?

This revision is now accepted and ready to land.Jun 9 2022, 7:56 AM
Joe_Nash accepted this revision.Jun 9 2022, 8:12 AM

LGTM Thanks! We had the same code change downstream, but no tests, so the added coverage is good.

dp updated this revision to Diff 435593.Jun 9 2022, 9:39 AM

Removed hardcoded opcodes.

dp requested review of this revision.Jun 9 2022, 9:46 AM

Is there a better way to do this by using a different operand type, instead of special-casing certain opcodes?

Thanks for a good idea.

foad accepted this revision.Jun 10 2022, 12:25 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 10 2022, 12:25 AM
This revision was automatically updated to reflect the committed changes.