[AMDGPU] Allow some modifiers on VOP3B instructions
authorJay Foad <jay.foad@amd.com>
Tue, 27 Oct 2020 12:29:11 +0000 (12:29 +0000)
committerJay Foad <jay.foad@amd.com>
Wed, 28 Oct 2020 21:54:14 +0000 (21:54 +0000)
commit5b91a6a88bd681f63702116f4a7f28976f4fa848
treec64e215c9b5ea4310366e6294132d4ac90c3e2f6
parent53f4c4b2cc51f4848dfc610a3a858ef821e39ae5
[AMDGPU] Allow some modifiers on VOP3B instructions

V_DIV_SCALE_F32/F64 are VOP3B encoded so they can't use the ABS src
modifier, but they can still use NEG and the usual output modifiers.

This partially reverts 3b99f12a4e6f "AMDGPU: Remove modifiers from v_div_scale_*".

Differential Revision: https://reviews.llvm.org/D90296
13 files changed:
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/VOP3Instructions.td
llvm/test/CodeGen/AMDGPU/fdiv-nofpexcept.ll
llvm/test/CodeGen/AMDGPU/inserted-wait-states.mir
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.div.scale.ll
llvm/test/CodeGen/AMDGPU/sched-crash-dbg-value.mir
llvm/test/MC/AMDGPU/vop3-errs.s
llvm/test/MC/AMDGPU/vop3.s