]> granicus.if.org Git - clang/commit
Do not copy long double and 128-bit fp format from aux target for AMDGPU
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 31 Jan 2019 21:57:51 +0000 (21:57 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 31 Jan 2019 21:57:51 +0000 (21:57 +0000)
commit453a2ffd484445bd158c9c131fb144e26b00e944
treeb33889973c965b61352f7d86ab6e06d21c8a4b94
parent9e67ec1f4d6cc8730c25d02c773366cccba10b42
Do not copy long double and 128-bit fp format from aux target for AMDGPU

rC352620 caused regressions because it copied floating point format from
aux target.

floating point format decides whether extended long double is supported.
It is x86_fp80 on x86 but IEEE double on amdgcn.

Document usage of long doubel type in HIP programming guide
https://github.com/ROCm-Developer-Tools/HIP/pull/890

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352801 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/AMDGPU.cpp
test/CodeGenCUDA/types.cu [new file with mode: 0644]