authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-23 12:21:45-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-23 12:21:45-07:00
log8fe3d67c795d639b1670d2312aff7150ba4ad8ba
treed24889bc5767c83d6c307b864a237f9c582a4c47
parent4ec27a4e2508049ce0d9b6e3cc149c0403c7014b

work around stage1 compile error


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

src/codegen/c.zig+8-8
...@@ -5247,10 +5247,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {...@@ -5247,10 +5247,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
5247 .Or => .{ .infix = " |= " },5247 .Or => .{ .infix = " |= " },
5248 .Xor => .{ .infix = " ^= " },5248 .Xor => .{ .infix = " ^= " },
5249 .Min => switch (scalar_ty.zigTypeTag()) {5249 .Min => switch (scalar_ty.zigTypeTag()) {
5250 .Int => .{ .ternary = " < " },5250 .Int => Op{ .ternary = " < " },
5251 .Float => op: {5251 .Float => op: {
5252 const float_bits = scalar_ty.floatBits(target);5252 const float_bits = scalar_ty.floatBits(target);
5253 break :op .{5253 break :op Op{
5254 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "{s}fmin{s}", .{5254 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "{s}fmin{s}", .{
5255 libcFloatPrefix(float_bits), libcFloatSuffix(float_bits),5255 libcFloatPrefix(float_bits), libcFloatSuffix(float_bits),
5256 }) catch unreachable,5256 }) catch unreachable,
...@@ -5259,10 +5259,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {...@@ -5259,10 +5259,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
5259 else => unreachable,5259 else => unreachable,
5260 },5260 },
5261 .Max => switch (scalar_ty.zigTypeTag()) {5261 .Max => switch (scalar_ty.zigTypeTag()) {
5262 .Int => .{ .ternary = " > " },5262 .Int => Op{ .ternary = " > " },
5263 .Float => op: {5263 .Float => op: {
5264 const float_bits = scalar_ty.floatBits(target);5264 const float_bits = scalar_ty.floatBits(target);
5265 break :op .{5265 break :op Op{
5266 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "{s}fmax{s}", .{5266 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "{s}fmax{s}", .{
5267 libcFloatPrefix(float_bits), libcFloatSuffix(float_bits),5267 libcFloatPrefix(float_bits), libcFloatSuffix(float_bits),
5268 }) catch unreachable,5268 }) catch unreachable,
...@@ -5271,10 +5271,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {...@@ -5271,10 +5271,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
5271 else => unreachable,5271 else => unreachable,
5272 },5272 },
5273 .Add => switch (scalar_ty.zigTypeTag()) {5273 .Add => switch (scalar_ty.zigTypeTag()) {
5274 .Int => .{ .infix = " += " },5274 .Int => Op{ .infix = " += " },
5275 .Float => op: {5275 .Float => op: {
5276 const float_bits = scalar_ty.floatBits(target);5276 const float_bits = scalar_ty.floatBits(target);
5277 break :op .{5277 break :op Op{
5278 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "__add{s}f3", .{5278 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "__add{s}f3", .{
5279 compilerRtFloatAbbrev(float_bits),5279 compilerRtFloatAbbrev(float_bits),
5280 }) catch unreachable,5280 }) catch unreachable,
...@@ -5283,10 +5283,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {...@@ -5283,10 +5283,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
5283 else => unreachable,5283 else => unreachable,
5284 },5284 },
5285 .Mul => switch (scalar_ty.zigTypeTag()) {5285 .Mul => switch (scalar_ty.zigTypeTag()) {
5286 .Int => .{ .infix = " *= " },5286 .Int => Op{ .infix = " *= " },
5287 .Float => op: {5287 .Float => op: {
5288 const float_bits = scalar_ty.floatBits(target);5288 const float_bits = scalar_ty.floatBits(target);
5289 break :op .{5289 break :op Op{
5290 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "__mul{s}f3", .{5290 .call_fn = std.fmt.bufPrintZ(&fn_name_buf, "__mul{s}f3", .{
5291 compilerRtFloatAbbrev(float_bits),5291 compilerRtFloatAbbrev(float_bits),
5292 }) catch unreachable,5292 }) catch unreachable,