This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add cache invalidation instructions.
ClosedPublic

Authored by arsenm on Aug 15 2015, 6:23 PM.

Details

Reviewers
tstellarAMD
Summary

These are necessary for implementing mem_fence for OpenCL 2.0.

The VI assembler tests are disabled since it seems to be using the wrong encoding or opcode.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 32225.Aug 15 2015, 6:23 PM
arsenm retitled this revision from to AMDGPU: Add cache invalidation instructions..
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.

Is there a reason to split the assembler tests into 3 files?

I can look into the problem with VI.

Is there a reason to split the assembler tests into 3 files?

I can look into the problem with VI.

I think I was mostly just confused by always testing with not. I can probably merge them back in, although I think it would also make sense to split cases that are supposed to error into separate tests

Is there a reason to split the assembler tests into 3 files?

I can look into the problem with VI.

I think I was mostly just confused by always testing with not. I can probably merge them back in, although I think it would also make sense to split cases that are supposed to error into separate tests

I went back and forth on this a lot, but I think for testing just instructions that are legal on some targets, but not others, it's better to have all the tests in the same file. Otherwise, we will end up having to duplicate the same assembly string across multiple files.

arsenm updated this revision to Diff 34500.Sep 10 2015, 3:29 PM
arsenm edited edge metadata.

Keep assembler tests in same file. Assumes another patch that changes all of the check prefixes in the original test first

tstellarAMD accepted this revision.Sep 24 2015, 6:24 AM
tstellarAMD edited edge metadata.

Just one small change request, with that fixed, LGTM.

test/MC/AMDGPU/mubuf.s
366

Could you move the XVI: line into its own file and XFAIL it. I think this will make it easier to track.

This revision is now accepted and ready to land.Sep 24 2015, 6:24 AM
arsenm closed this revision.Sep 24 2015, 12:54 PM

r248532