Skip to content

Commit

Permalink
[AMDGPU] Fix passing CodeGen/AMDGPU/frem.ll on gfx1150. (#67425)
Browse files Browse the repository at this point in the history
We would currently crash on it trying to use t16 instructions instead of
fake16 ones.
  • Loading branch information
kosarev committed Sep 26, 2023
1 parent 97f9f1a commit 64482d5
Show file tree
Hide file tree
Showing 2 changed files with 582 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5038,11 +5038,11 @@ unsigned SIInstrInfo::getVALUOp(const MachineInstr &MI) const {
case AMDGPU::S_MIN_F32: return AMDGPU::V_MIN_F32_e64;
case AMDGPU::S_MAX_F32: return AMDGPU::V_MAX_F32_e64;
case AMDGPU::S_MUL_F32: return AMDGPU::V_MUL_F32_e64;
case AMDGPU::S_ADD_F16: return AMDGPU::V_ADD_F16_t16_e64;
case AMDGPU::S_SUB_F16: return AMDGPU::V_SUB_F16_t16_e64;
case AMDGPU::S_MIN_F16: return AMDGPU::V_MIN_F16_t16_e64;
case AMDGPU::S_MAX_F16: return AMDGPU::V_MAX_F16_t16_e64;
case AMDGPU::S_MUL_F16: return AMDGPU::V_MUL_F16_t16_e64;
case AMDGPU::S_ADD_F16: return AMDGPU::V_ADD_F16_fake16_e64;
case AMDGPU::S_SUB_F16: return AMDGPU::V_SUB_F16_fake16_e64;
case AMDGPU::S_MIN_F16: return AMDGPU::V_MIN_F16_fake16_e64;
case AMDGPU::S_MAX_F16: return AMDGPU::V_MAX_F16_fake16_e64;
case AMDGPU::S_MUL_F16: return AMDGPU::V_MUL_F16_fake16_e64;
case AMDGPU::S_CVT_PK_RTZ_F16_F32: return AMDGPU::V_CVT_PKRTZ_F16_F32_e64;
case AMDGPU::S_FMAC_F32: return AMDGPU::V_FMAC_F32_e64;
case AMDGPU::S_FMAC_F16: return AMDGPU::V_FMAC_F16_t16_e64;
Expand Down

0 comments on commit 64482d5

Please sign in to comment.