authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-04 14:55:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-04 14:55:35-07:00
log169ad1aac745857965db8fe7565aa45b8d8cea0f
treef366f4952b4154a2f9d924b8af731225a769a2f6
parentba70eee8bb81da0d44982a84395aee660635e5ba

compiler_rt: update ABI for x86 float16 functions

See https://github.com/llvm/llvm-project/issues/56854 for more details.

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

lib/compiler_rt/common.zig+1
...@@ -77,6 +77,7 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace) nore...@@ -77,6 +77,7 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace) nore
77pub const F16T = switch (builtin.cpu.arch) {77pub const F16T = switch (builtin.cpu.arch) {
78 .aarch64, .aarch64_be, .aarch64_32 => f16,78 .aarch64, .aarch64_be, .aarch64_32 => f16,
79 .riscv64 => if (builtin.zig_backend == .stage1) u16 else f16,79 .riscv64 => if (builtin.zig_backend == .stage1) u16 else f16,
80 .i386, .x86_64 => f16,
80 else => u16,81 else => u16,
81};82};
8283