cmake COMPILER_RT_HAS_ examples

Lewuathe/mlir-hello thirdparty/llvm-project/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake :447

check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }"
                              COMPILER_RT_HAS_${arch}_FLOAT16)

Lewuathe/mlir-hello thirdparty/llvm-project/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake :450

check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }"
                              COMPILER_RT_HAS_${arch}_BFLOAT16)

Lewuathe/mlir-hello thirdparty/llvm-project/compiler-rt/lib/builtins/CMakeLists.txt :886

check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }
                               int main(void) { return 0; }"
                              COMPILER_RT_HAS_${arch}_FLOAT16)

Lewuathe/mlir-hello thirdparty/llvm-project/compiler-rt/lib/builtins/CMakeLists.txt :890

check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }
                               int main(void) { return 0; }"
                              COMPILER_RT_HAS_${arch}_BFLOAT16)

CTSRD-CHERI/cheribsd contrib/subrepo-cheri-compiler-rt/lib/builtins/CMakeLists.txt :810

check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }"
                              COMPILER_RT_HAS_${arch}_FLOAT16)

CTSRD-CHERI/cheribsd contrib/subrepo-cheri-compiler-rt/lib/builtins/CMakeLists.txt :813

check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }"
                              COMPILER_RT_HAS_${arch}_BFLOAT16)