From e364627e3ea0de3037ced086406516d956c3bcd7 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 21 Apr 2023 00:13:41 -0400 Subject: cbe: fix float casts involving f16 Fixes bugs with a previous fix to the f16 abi on x86 darwin. --- src/codegen/c.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/codegen/c.zig') diff --git a/src/codegen/c.zig b/src/codegen/c.zig index f2c65e098a..58b9de0cd0 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -5755,11 +5755,10 @@ fn airFloatCast(f: *Function, inst: Air.Inst.Index) !CValue { try f.object.dg.renderTypeForBuiltinFnName(writer, inst_ty); try writer.writeByte('('); } - try writer.writeAll("__"); + try writer.writeAll("zig_"); try writer.writeAll(operation); try writer.writeAll(compilerRtAbbrev(operand_ty, target)); try writer.writeAll(compilerRtAbbrev(inst_ty, target)); - if (inst_ty.isRuntimeFloat() and operand_ty.isRuntimeFloat()) try writer.writeByte('2'); try writer.writeByte('('); try f.writeCValue(writer, operand, .FunctionArgument); try writer.writeByte(')'); -- cgit v1.2.3