Skip to content

Commit

Permalink
AMDGPU: Add disasm tests for deep learning instructions + fix v_fmac_…
Browse files Browse the repository at this point in the history
…f32 disasm

Differential Revision: https://reviews.llvm.org/D46853


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332377 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
kzhuravl committed May 15, 2018
1 parent 0429130 commit e8cfe22
Show file tree
Hide file tree
Showing 2 changed files with 975 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ DecodeStatus AMDGPUDisassembler::getInstruction(MCInst &MI, uint64_t &Size,

if (Res && (MI.getOpcode() == AMDGPU::V_MAC_F32_e64_vi ||
MI.getOpcode() == AMDGPU::V_MAC_F32_e64_si ||
MI.getOpcode() == AMDGPU::V_MAC_F16_e64_vi)) {
MI.getOpcode() == AMDGPU::V_MAC_F16_e64_vi ||
MI.getOpcode() == AMDGPU::V_FMAC_F32_e64_vi)) {
// Insert dummy unused src2_modifiers.
insertNamedMCOperand(MI, MCOperand::createImm(0),
AMDGPU::OpName::src2_modifiers);
Expand Down
Loading

0 comments on commit e8cfe22

Please sign in to comment.