diff options
| author | Sam Kolton <Sam.Kolton@amd.com> | 2016-07-01 09:59:21 +0000 |
|---|---|---|
| committer | Sam Kolton <Sam.Kolton@amd.com> | 2016-07-01 09:59:21 +0000 |
| commit | 5196b88f072ac260884a625cf86502b7a9b92c9f (patch) | |
| tree | 5c3adb1d6eeae8ef43b6204ee859cfdae8bf7db3 /llvm/lib/Target/AMDGPU/VIInstrFormats.td | |
| parent | 566597330a5207ec51de60d914cecefbb05840cd (diff) | |
| download | bcm5719-llvm-5196b88f072ac260884a625cf86502b7a9b92c9f.tar.gz bcm5719-llvm-5196b88f072ac260884a625cf86502b7a9b92c9f.zip | |
[AMDGPU] Assembler: support SDWA for VOPC instructions
Summary: dst_sel and dst_unused disabled for VOPC as they have no effect on result
Reviewers: artem.tamazov, tstellarAMD, vpykhtin
Subscribers: arsenm, kzhuravl
Differential Revision: http://reviews.llvm.org/D21376
llvm-svn: 274340
Diffstat (limited to 'llvm/lib/Target/AMDGPU/VIInstrFormats.td')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/VIInstrFormats.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/VIInstrFormats.td b/llvm/lib/Target/AMDGPU/VIInstrFormats.td index e8216abd6ac..912ed5329bf 100644 --- a/llvm/lib/Target/AMDGPU/VIInstrFormats.td +++ b/llvm/lib/Target/AMDGPU/VIInstrFormats.td @@ -282,6 +282,10 @@ class VOPC_SDWAe <bits<8> op> : VOP_SDWAe { let Inst{16-9} = src1; let Inst{24-17} = op; let Inst{31-25} = 0x3e; // encoding + + // VOPC disallows dst_sel and dst_unused as they have no effect on destination + let Inst{42-40} = 0x6; + let Inst{44-43} = 0x2; } class EXPe_vi : EXPe { |

