diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-04-21 00:13:41 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-04-21 16:36:31 -0400 |
| commit | e364627e3ea0de3037ced086406516d956c3bcd7 (patch) | |
| tree | 5dd55dbdaab91f4741ba16c138c5c4bdf8b32192 /src/codegen/c.zig | |
| parent | b45bcd642052612906e4d333d69a2edac396d7d7 (diff) | |
| download | zig-e364627e3ea0de3037ced086406516d956c3bcd7.tar.gz zig-e364627e3ea0de3037ced086406516d956c3bcd7.zip | |
cbe: fix float casts involving f16
Fixes bugs with a previous fix to the f16 abi on x86 darwin.
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 3 |
1 files changed, 1 insertions, 2 deletions
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(')'); |
