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 cc72e8b0a4abc01398ead67186c0bef10412b5c9..0db4b5c66c42957dc0025cf0146e4a8008799366 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 54e939ab859910c60bd5c0d365df70cdbd2314d8..44bb06ff53cb80c0965e4fe864b20489b259a643 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, -- 2.54.0