OSDN Git Service

[AMDGPU] CodeGen: check dst operand type to determine if omod is supported for VOP3...
authorSam Kolton <Sam.Kolton@amd.com>
Mon, 17 Jul 2017 14:23:38 +0000 (14:23 +0000)
committerSam Kolton <Sam.Kolton@amd.com>
Mon, 17 Jul 2017 14:23:38 +0000 (14:23 +0000)
commit9df1993314fb7370b63987caac2d4bcc6b63a1d7
treea04cb63fcfeb00f6f3196058b09ee45cf8a16b50
parent9ee8c80e50470c1acddfad9c9ab64591ce043790
[AMDGPU] CodeGen: check dst operand type to determine if omod is supported for VOP3 instructions

Summary:
Previously, CodeGen checked first src operand type to determine if omod is supported by instruction. This isn't correct for some instructions: e.g. V_CMP_EQ_F32 has floating-point src operands but desn't support omod.
Changed .td files to check if dst operand instead of src operand.

Reviewers: arsenm, vpykhtin

Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.td
lib/Target/AMDGPU/SIInstructions.td
lib/Target/AMDGPU/VOP2Instructions.td
lib/Target/AMDGPU/VOP3Instructions.td
lib/Target/AMDGPU/VOPCInstructions.td
lib/Target/AMDGPU/VOPInstructions.td
test/CodeGen/AMDGPU/rename-independent-subregs-mac-operands.mir
test/CodeGen/AMDGPU/sdwa-peephole-instr.mir
test/CodeGen/AMDGPU/sdwa-vop2-64bit.mir
test/CodeGen/AMDGPU/vccz-corrupt-bug-workaround.mir
test/MC/AMDGPU/vop3-errs.s