[PATCH] D84098: [AMDGPU][MC] Corrected decoding of 16-bit literals

Dmitry Preobrazhensky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 21:16:20 PDT 2020


dp updated this revision to Diff 279302.
dp added a comment.

Corrected after a discussion with Matt:

- added 16-bit truncation;
- printed as unsigned.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84098/new/

https://reviews.llvm.org/D84098

Files:
  llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
  llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.h
  llvm/test/CodeGen/AMDGPU/add.i16.ll
  llvm/test/CodeGen/AMDGPU/add.v2i16.ll
  llvm/test/CodeGen/AMDGPU/imm16.ll
  llvm/test/CodeGen/AMDGPU/sub.i16.ll
  llvm/test/CodeGen/AMDGPU/sub.v2i16.ll
  llvm/test/MC/Disassembler/AMDGPU/literal16_vi.txt
  llvm/test/MC/Disassembler/AMDGPU/vop1.txt
  llvm/test/MC/Disassembler/AMDGPU/vop3-literal.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84098.279302.patch
Type: text/x-patch
Size: 12457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200721/0223b95b/attachment.bin>


More information about the llvm-commits mailing list