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.
| Paths 
 |  Differential  D12055  
AMDGPU: Add cache invalidation instructions. ClosedPublic Authored by arsenm on Aug 15 2015, 6:23 PM. 
Details 
 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 Timelinearsenm updated this object. Comment Actions Is there a reason to split the assembler tests into 3 files? I can look into the problem with VI. Comment Actions 
 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 Comment Actions 
 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 edited edge metadata.Comment Actions Keep assembler tests in same file. Assumes another patch that changes all of the check prefixes in the original test first • tstellarAMD edited edge metadata.Comment Actions Just one small change request, with that fixed, LGTM. 
 This revision is now accepted and ready to land.Sep 24 2015, 6:24 AM 
Revision Contents 
 
Diff 34500 include/llvm/IR/IntrinsicsAMDGPU.td
 lib/Target/AMDGPU/CIInstructions.td
 lib/Target/AMDGPU/SIInstrInfo.td
 lib/Target/AMDGPU/SIInstructions.td
 test/CodeGen/AMDGPU/llvm.amdgcn.buffer.wbinvl1.ll
 
 test/CodeGen/AMDGPU/llvm.amdgcn.buffer.wbinvl1.sc.ll
 
 test/CodeGen/AMDGPU/llvm.amdgcn.buffer.wbinvl1.vol.ll
 
 test/MC/AMDGPU/mubuf.s
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Could you move the XVI: line into its own file and XFAIL it. I think this will make it easier to track.