This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC] Enabled constants for src operands of s_cbranch_g_fork
ClosedPublic

Authored by dp on Apr 12 2017, 3:49 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

dp created this revision.Apr 12 2017, 3:49 AM
artem.tamazov accepted this revision.Apr 12 2017, 7:04 AM

LGTM. I am thinking it is worth to add some negative tests.

This revision is now accepted and ready to land.Apr 12 2017, 7:04 AM
dp added a comment.Apr 12 2017, 9:20 AM

I'll add a few negative tests with literals, would that suffice?

In D31973#724922, @dp wrote:

I'll add a few negative tests with literals, would that suffice?

That's completely up to you. The idea is as follows. The patch extends allowed operand types. So now it is theoretically possible that some incorrect combinations of operands may pass through assembler. Let's smoke-test that only valid combinations of operands are actually allowed.

This revision was automatically updated to reflect the committed changes.