This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Only allow regs for s_movrel_{b32|b64}
ClosedPublic

Authored by arsenm on Jan 2 2020, 6:04 PM.

Details

Summary

This would incorrectly allowing folding immediates. These currently
aren't selectable, but will be from GlobalISel soon.

Diff Detail

Event Timeline

arsenm created this revision.Jan 2 2020, 6:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2020, 6:04 PM
rampitec accepted this revision.Jan 3 2020, 11:02 AM

LGTM

llvm/lib/Target/AMDGPU/SOPInstructions.td
270

Should these two be fixed as well?

This revision is now accepted and ready to land.Jan 3 2020, 11:02 AM
arsenm closed this revision.Jan 3 2020, 12:30 PM
arsenm marked an inline comment as done.
llvm/lib/Target/AMDGPU/SOPInstructions.td
270

Yes, but these have other issues that need to be addressed to really use them also