diff options
| author | Tim Renouf <tpr.llvm@botech.co.uk> | 2019-06-24 17:35:20 +0000 |
|---|---|---|
| committer | Tim Renouf <tpr.llvm@botech.co.uk> | 2019-06-24 17:35:20 +0000 |
| commit | d2fdb956e0442707b69df4107cd64c2022c1cb54 (patch) | |
| tree | 34756c861e3dc548cd1942b6b3f231c4e9006508 /llvm/lib/Target | |
| parent | 7fccb2ac5e32c074b91411f80da5a038c12489a5 (diff) | |
| download | bcm5719-llvm-d2fdb956e0442707b69df4107cd64c2022c1cb54.tar.gz bcm5719-llvm-d2fdb956e0442707b69df4107cd64c2022c1cb54.zip | |
[AMDGPU] Allow any value in unused src0 field in v_nop
Summary:
The LLVM disassembler assumes that the unused src0 operand of v_nop is
zero. Other tools can put another value in that field, which is still
valid. This commit fixes the LLVM disassembler to recognize such an
encoding as v_nop, in the same way as we already do for s_getpc.
Differential Revision: https://reviews.llvm.org/D63724
Change-Id: Iaf0363eae26ff92fc4ebc716216476adbff37a6f
llvm-svn: 364208
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/VOP1Instructions.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/VOP1Instructions.td b/llvm/lib/Target/AMDGPU/VOP1Instructions.td index a916091d6fb..6bc416ed7d4 100644 --- a/llvm/lib/Target/AMDGPU/VOP1Instructions.td +++ b/llvm/lib/Target/AMDGPU/VOP1Instructions.td @@ -14,7 +14,7 @@ class VOP1e <bits<8> op, VOPProfile P> : Enc32 { bits<8> vdst; bits<9> src0; - let Inst{8-0} = !if(P.HasSrc0, src0{8-0}, 0); + let Inst{8-0} = !if(P.HasSrc0, src0{8-0}, ?); let Inst{16-9} = op; let Inst{24-17} = !if(P.EmitDst, vdst{7-0}, 0); let Inst{31-25} = 0x3f; //encoding |

