Page MenuHomePhabricator

[AMDGPU][MC] Enabled labels as operands of s_call_b64 and s_cbranch_i_fork
ClosedPublic

Authored by dp on May 16 2019, 11:05 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

dp created this revision.May 16 2019, 11:05 AM

What would occur if offset exceeds int16 due to destination label is too far?

dp added a comment.May 16 2019, 11:34 AM

This is checked during fixups relaxations. An error is reported if the offset does not fit in 16 bits. See lit test max-branch-distance.s

artem.tamazov accepted this revision.May 16 2019, 12:56 PM

Great, thanks!

This revision is now accepted and ready to land.May 16 2019, 12:56 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2019, 7:54 AM