summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/VOPCInstructions.td
diff options
context:
space:
mode:
authorSam Kolton <Sam.Kolton@amd.com>2016-12-22 11:30:48 +0000
committerSam Kolton <Sam.Kolton@amd.com>2016-12-22 11:30:48 +0000
commita6792a39c4ce9250eb75d42cf14616b6da56f7a0 (patch)
tree5bb322a63af56646ebe2dce77012fc801a6a32ae /llvm/lib/Target/AMDGPU/VOPCInstructions.td
parentf39cdea879a8a8ca369b610030b66a55a3c743f3 (diff)
downloadbcm5719-llvm-a6792a39c4ce9250eb75d42cf14616b6da56f7a0.tar.gz
bcm5719-llvm-a6792a39c4ce9250eb75d42cf14616b6da56f7a0.zip
[AMDGPU] Disassembler: fix for disaasembling v_mac_f32/16_dpp/sdwa
Summary: Real instruction should copy constraints from real instruction. This allows auto-generated disassembler to correctly process tied operands. Reviewers: nhaustov, vpykhtin, tstellarAMD Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye Differential Revision: https://reviews.llvm.org/D27847 llvm-svn: 290336
Diffstat (limited to 'llvm/lib/Target/AMDGPU/VOPCInstructions.td')
-rw-r--r--llvm/lib/Target/AMDGPU/VOPCInstructions.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/VOPCInstructions.td b/llvm/lib/Target/AMDGPU/VOPCInstructions.td
index 55ebd9448dc..32137888ef1 100644
--- a/llvm/lib/Target/AMDGPU/VOPCInstructions.td
+++ b/llvm/lib/Target/AMDGPU/VOPCInstructions.td
@@ -71,6 +71,9 @@ class VOPC_Real <VOPC_Pseudo ps, int EncodingFamily> :
let isPseudo = 0;
let isCodeGenOnly = 0;
+ let Constraints = ps.Constraints;
+ let DisableEncoding = ps.DisableEncoding;
+
// copy relevant pseudo op flags
let SubtargetPredicate = ps.SubtargetPredicate;
let AsmMatchConverter = ps.AsmMatchConverter;
@@ -826,6 +829,8 @@ class VOPC_SDWA<bits<8> op, VOPC_Pseudo ps, VOPProfile P = ps.Pfl> :
let AsmMatchConverter = "cvtSdwaVOPC";
let isCompare = ps.isCompare;
let isCommutable = ps.isCommutable;
+ let Constraints = ps.Constraints;
+ let DisableEncoding = ps.DisableEncoding;
bits<8> src1;
let Inst{8-0} = 0xf9; // sdwa
OpenPOWER on IntegriCloud