authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-06 11:55:44+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-15 19:29:56+02:00
log0941364d70d14856c9f313f819458efd0add7c2a
tree3b04cd1bb4da38948eb797a8d0f31017b00ca0c6
parent958f57d65d6c612a391bc72a5cf090c9efc9917b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

compiler-rt: Always use f16 as the half type for riscv.


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

lib/compiler_rt/common.zig+1-1
......@@ -103,7 +103,7 @@ pub fn F16T(comptime OtherType: type) type {
103103 else
104104 u16,
105105 .aarch64, .aarch64_be => f16,
106 .riscv64 => if (builtin.zig_backend == .stage1) u16 else f16,
106 .riscv32, .riscv64 => f16,
107107 .x86, .x86_64 => if (builtin.target.isDarwin()) switch (OtherType) {
108108 // Starting with LLVM 16, Darwin uses different abi for f16
109109 // depending on the type of the other return/argument..???