This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MachineVerifier] Alignment check for fp32 packed math instructions
ClosedPublic

Authored by cdevadas on Mar 16 2022, 5:49 AM.

Details

Summary

The fp32 packed math instructions are introduced in gfx90a.
If their vector register operands are not properly aligned, the
verifier should flag them. Currently, the verifier failed to
report it and the compiler ended up emitting a broken assembly.
This patch fixes that missed case in TII::verifyInstruction.

Diff Detail

Event Timeline

cdevadas created this revision.Mar 16 2022, 5:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 5:49 AM
cdevadas requested review of this revision.Mar 16 2022, 5:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 5:49 AM
arsenm accepted this revision.Mar 16 2022, 6:37 AM
This revision is now accepted and ready to land.Mar 16 2022, 6:37 AM
This revision was landed with ongoing or failed builds.Mar 16 2022, 7:57 PM
This revision was automatically updated to reflect the committed changes.