| ... | @@ -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, |