diff options
author | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2016-11-13 07:01:11 +0000 |
---|---|---|
committer | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2016-11-13 07:01:11 +0000 |
commit | f86e4b72660390bde899306bb1879da994281b2a (patch) | |
tree | 59ac334f56039064686b2973accfabfa84e3f4e3 /llvm/test/CodeGen/AMDGPU/fp_to_uint.ll | |
parent | d9445c49ad47c227f5981ad1f8f211dff9aaa9f1 (diff) | |
download | bcm5719-llvm-f86e4b72660390bde899306bb1879da994281b2a.tar.gz bcm5719-llvm-f86e4b72660390bde899306bb1879da994281b2a.zip |
[AMDGPU] Add f16 support (VI+)
Differential Revision: https://reviews.llvm.org/D25975
llvm-svn: 286753
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/fp_to_uint.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/fp_to_uint.ll | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/fp_to_uint.ll b/llvm/test/CodeGen/AMDGPU/fp_to_uint.ll index d089c291f46..d1fc9fadebd 100644 --- a/llvm/test/CodeGen/AMDGPU/fp_to_uint.ll +++ b/llvm/test/CodeGen/AMDGPU/fp_to_uint.ll @@ -240,12 +240,10 @@ define void @fp_to_uint_fabs_f32_to_i1(i1 addrspace(1)* %out, float %in) #0 { } ; FUNC-LABEL: {{^}}fp_to_uint_f32_to_i16: -; The reason different instructions are used on SI and VI is because for -; SI fp_to_uint is legalized by the type legalizer and for VI it is -; legalized by the dag legalizer and they legalize fp_to_uint differently. -; SI: v_cvt_u32_f32_e32 [[VAL:v[0-9]+]], s{{[0-9]+}} -; VI: v_cvt_i32_f32_e32 [[VAL:v[0-9]+]], s{{[0-9]+}} -; GCN: buffer_store_short [[VAL]] +; SI: v_cvt_u32_f32_e32 v[[VAL:[0-9]+]], s{{[0-9]+}} +; VI: v_cvt_f16_f32_e32 v[[IN_F16:[0-9]+]], s{{[0-9]+}} +; VI: v_cvt_u16_f16_e32 v[[VAL:[0-9]+]], v[[IN_F16]] +; GCN: buffer_store_short v[[VAL]] define void @fp_to_uint_f32_to_i16(i16 addrspace(1)* %out, float %in) #0 { %uint = fptoui float %in to i16 store i16 %uint, i16 addrspace(1)* %out |