[AMDGPU] AsmParser: disable DPP for unsupported instructions. New dpp tests. Fix...
authorSam Kolton <Sam.Kolton@amd.com>
Wed, 6 Apr 2016 13:29:59 +0000 (13:29 +0000)
committerSam Kolton <Sam.Kolton@amd.com>
Wed, 6 Apr 2016 13:29:59 +0000 (13:29 +0000)
commitff90c60a78a183e17c4b1c455c97c618b542f0bd
tree15ff591a854eaadbb2b41af71abc33288fcb43cc
parent074ce836f0533225f3960ca71ecde71280936bfe
[AMDGPU] AsmParser: disable DPP for unsupported instructions. New dpp tests. Fix v_nop_dpp.

Summary:
1. Disable DPP encoding for instructions that do not support it:
    - VOP1:
        - v_readfirstlane_b32
        - v_clrexcp
        - v_movreld_b32
        - v_movrels_b32
        - v_movrelsd_b32
    - VOP2:
        - v_madmk_f16/32
        - v_madak_f16/32
    - VOPC, VINTRP, VOP3
2. Fix DPP for v_nop
3. New DPP tests for VOP1 and VOP2 instructions

Reviewers: nhaustov, tstellarAMD, vpykhtin

Subscribers: tstellarAMD, arsenm

Differential Revision: http://reviews.llvm.org/D18552

llvm-svn: 265538
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/MC/AMDGPU/vop_dpp.s