From ded8dd10ba8943e9d997630de09ddc935d90cdad Mon Sep 17 00:00:00 2001 From: kettenis Date: Wed, 27 Aug 2025 20:18:11 +0000 Subject: [PATCH] aarch64 supports Float16; also add two missing files for BFloat16 support. ok rsadowski@, miod@ --- gnu/lib/libcompiler_rt/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gnu/lib/libcompiler_rt/Makefile b/gnu/lib/libcompiler_rt/Makefile index 6fcffdaac47..caa09096ca0 100644 --- a/gnu/lib/libcompiler_rt/Makefile +++ b/gnu/lib/libcompiler_rt/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2025/08/21 10:42:46 rsadowski Exp $ +# $OpenBSD: Makefile,v 1.10 2025/08/27 20:18:11 kettenis Exp $ .include @@ -30,15 +30,17 @@ RTARCH= ${MACHINE_ARCH} .PATH: ${.CURDIR}/../../llvm/compiler-rt/lib/builtins/${RTARCH} .PATH: ${.CURDIR}/../../llvm/compiler-rt/lib/builtins -# Enable Float16 support for x86_64 -.if ${RTARCH} == "x86_64" +# Enable Float16 support for aarch64 and x86_64 +.if ${RTARCH} == "aarch64" || ${RTARCH} == "x86_64" CPPFLAGS+= -DCOMPILER_RT_HAS_FLOAT16 .endif -# BFloat16 support? -.if ${RTARCH} == "x86_64" || ${RTARCH} == "aarch64" +# Enable BFloat16 support for aarch64 and x86_64 +.if ${RTARCH} == "aarch64" || ${RTARCH} == "x86_64" CPPFLAGS+= -DCOMPILER_RT_HAS_BFLOAT16 -SRCS+= extendbfsf2.c +SRCS+= extendbfsf2.c \ + truncdfbf2.c \ + truncsfbf2.c .endif GEN_SRCS= absvdi2 \