summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/EvergreenInstructions.td
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-01-11 00:12:39 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-01-11 00:12:39 +0000
commit0d6cb1caaf514cbc2b46096ed1b0a80fa38a6e09 (patch)
treec787bdbba36b385d6e8abcde4c121c41176454a7 /llvm/lib/Target/AMDGPU/EvergreenInstructions.td
parentacd63602519a0bc4099bd29357f580a6b5f863f7 (diff)
downloadbcm5719-llvm-0d6cb1caaf514cbc2b46096ed1b0a80fa38a6e09.tar.gz
bcm5719-llvm-0d6cb1caaf514cbc2b46096ed1b0a80fa38a6e09.zip
AMDGPU/EG,CM: Add fp16 conversion instructions
Differential Revision: https://reviews.llvm.org/D28164 llvm-svn: 291622
Diffstat (limited to 'llvm/lib/Target/AMDGPU/EvergreenInstructions.td')
-rw-r--r--llvm/lib/Target/AMDGPU/EvergreenInstructions.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/EvergreenInstructions.td b/llvm/lib/Target/AMDGPU/EvergreenInstructions.td
index 4112ad10058..48c6592ca5b 100644
--- a/llvm/lib/Target/AMDGPU/EvergreenInstructions.td
+++ b/llvm/lib/Target/AMDGPU/EvergreenInstructions.td
@@ -333,11 +333,13 @@ def MUL_UINT24_eg : R600_2OP <0xB5, "MUL_UINT24",
def DOT4_eg : DOT4_Common<0xBE>;
defm CUBE_eg : CUBE_Common<0xC0>;
-def BCNT_INT : R600_1OP_Helper <0xAA, "BCNT_INT", ctpop, VecALU>;
def ADDC_UINT : R600_2OP_Helper <0x52, "ADDC_UINT", AMDGPUcarry>;
def SUBB_UINT : R600_2OP_Helper <0x53, "SUBB_UINT", AMDGPUborrow>;
+def FLT32_TO_FLT16 : R600_1OP_Helper <0xA2, "FLT32_TO_FLT16", fp_to_f16, VecALU>;
+def FLT16_TO_FLT32 : R600_1OP_Helper <0xA3, "FLT16_TO_FLT32", f16_to_fp, VecALU>;
+def BCNT_INT : R600_1OP_Helper <0xAA, "BCNT_INT", ctpop, VecALU>;
def FFBH_UINT : R600_1OP_Helper <0xAB, "FFBH_UINT", AMDGPUffbh_u32, VecALU>;
def FFBL_INT : R600_1OP_Helper <0xAC, "FFBL_INT", cttz_zero_undef, VecALU>;
OpenPOWER on IntegriCloud