authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-02 21:06:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-30 06:36:41+02:00
log53c53a269797f406d4a3f750a247729282d942db
tree339caf1839438d5fcb89d0db69b4e7d9a85e11f8
parentc4592da88230939c068350e469bdc34076260860
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

llvm: switch to native f16 IR type for s390x

LLVM 21 added support for this.

2 files changed, 1 insertions(+), 2 deletions(-)

lib/compiler_rt/common.zig+1
...@@ -131,6 +131,7 @@ pub fn F16T(comptime OtherType: type) type {...@@ -131,6 +131,7 @@ pub fn F16T(comptime OtherType: type) type {
131 .riscv32be,131 .riscv32be,
132 .riscv64,132 .riscv64,
133 .riscv64be,133 .riscv64be,
134 .s390x,
134 .spirv32,135 .spirv32,
135 .spirv64,136 .spirv64,
136 => f16,137 => f16,
src/codegen/llvm.zig-2
...@@ -12861,8 +12861,6 @@ fn backendSupportsF16(target: *const std.Target) bool {...@@ -12861,8 +12861,6 @@ fn backendSupportsF16(target: *const std.Target) bool {
12861 // https://github.com/llvm/llvm-project/issues/9798112861 // https://github.com/llvm/llvm-project/issues/97981
12862 .wasm32,12862 .wasm32,
12863 .wasm64,12863 .wasm64,
12864 // https://github.com/llvm/llvm-project/issues/50374
12865 .s390x,
12866 // https://github.com/llvm/llvm-project/issues/9798112864 // https://github.com/llvm/llvm-project/issues/97981
12867 .sparc,12865 .sparc,
12868 .sparc64,12866 .sparc64,