From 53c53a269797f406d4a3f750a247729282d942db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 2 Aug 2025 21:06:39 +0200 Subject: [PATCH] llvm: switch to native f16 IR type for s390x LLVM 21 added support for this. --- lib/compiler_rt/common.zig | 1 + src/codegen/llvm.zig | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/compiler_rt/common.zig b/lib/compiler_rt/common.zig index cc72e8b0a4..0db4b5c66c 100644 --- a/lib/compiler_rt/common.zig +++ b/lib/compiler_rt/common.zig @@ -131,6 +131,7 @@ pub fn F16T(comptime OtherType: type) type { .riscv32be, .riscv64, .riscv64be, + .s390x, .spirv32, .spirv64, => f16, diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 54e939ab85..44bb06ff53 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -12861,8 +12861,6 @@ fn backendSupportsF16(target: *const std.Target) bool { // https://github.com/llvm/llvm-project/issues/97981 .wasm32, .wasm64, - // https://github.com/llvm/llvm-project/issues/50374 - .s390x, // https://github.com/llvm/llvm-project/issues/97981 .sparc, .sparc64,