[AMDGPU] Use S_DENORM_MODE for gfx10
authorAustin Kerbow <Austin.Kerbow@amd.com>
Mon, 5 Aug 2019 16:09:49 +0000 (16:09 +0000)
committerAustin Kerbow <Austin.Kerbow@amd.com>
Mon, 5 Aug 2019 16:09:49 +0000 (16:09 +0000)
commit8d229dbb47d4a1ae058613ba67acecaa1effeb2a
treed39354bdce1af9ceeb7ac5b6f206b7aa060087ec
parente15d95a987d53a990e34b45aeb9c802e1da1f4b7
[AMDGPU] Use S_DENORM_MODE for gfx10

Summary: During fdiv32 lowering use S_DENORM_MODE to select denorm mode in gfx10.

Reviewers: arsenm, rampitec

Reviewed By: arsenm, rampitec

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

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

llvm-svn: 367882
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/lib/Target/AMDGPU/SOPInstructions.td
llvm/test/CodeGen/AMDGPU/fdiv.ll