mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
initial RISC-V support (#2614)
Unlike related PR #2344 that simply warns about unsupported FTZ, this PR attempts to correctly handle FTZ on RISC-V. RISC-V 'f' extension does not support any way to enable/disable flushing subnormals to zero, implementations are required to always support subnormals. Therefore this PR re-uses FTZ handling code from PPC, where flushing also has to be explicitly performed.
This commit is contained in:
@@ -89,6 +89,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
|
||||
set(CLConform_TARGET_ARCH x86_64)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*")
|
||||
set(CLConform_TARGET_ARCH x86)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "riscv.*")
|
||||
set(CLConform_TARGET_ARCH RISCV)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED CLConform_TARGET_ARCH)
|
||||
|
||||
Reference in New Issue
Block a user