OSDN Git Service

AMDGPU: Fold FP clamp as modifier bit
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 22 Feb 2017 23:27:53 +0000 (23:27 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 22 Feb 2017 23:27:53 +0000 (23:27 +0000)
commite184e01dd7967304b49334c39513015cbb563b1d
tree0f52bc6c96014c7985d55790b89ecdf842e678b4
parent1cfed01e0215c63bdecd958fccfb5db024f58e7a
AMDGPU: Fold FP clamp as modifier bit

The manual is unclear on the details of this. It's not
clear to me if denormals are not allowed with clamp,
or if that is only omod. Not allowing denorms for
fp16 or fp64 isn't useful so I also question if that
is really a restriction. Same with whether this is valid
without IEEE mode enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIDefines.h
lib/Target/AMDGPU/SIFoldOperands.cpp
lib/Target/AMDGPU/SIInstrFormats.td
lib/Target/AMDGPU/SIInstrInfo.h
lib/Target/AMDGPU/SIInstrInfo.td
lib/Target/AMDGPU/VOPInstructions.td
test/CodeGen/AMDGPU/clamp-modifier.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/clamp-omod-special-case.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/clamp.ll