authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2026-06-29 09:48:37-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2026-07-27 14:35:12-04:00
log3e26b9e957887e55e99046e908bc07200140d3f8
tree07308a4e06e30992dffa6429b5f726038a25e009
parenta242b0be888fbcffd4eaa2e3af9cb30bc3c71584

codegen: change libc f128 suffix to match llvm


27 files changed, 226 insertions(+), 277 deletions(-)

lib/compiler_rt/cos.zig+1-2
......@@ -24,8 +24,7 @@ comptime {
2424 symbol(&cosf, "cosf");
2525 symbol(&cos, "cos");
2626 symbol(&__cosx, "__cosx");
27 if (compiler_rt.want_ppc_abi) symbol(&cosq, "cosf128");
28 symbol(&cosq, "cosq");
27 symbol(&cosq, "cosf128");
2928 symbol(&cosl, "cosl");
3029 symbol(&cosl, "__cosl"); // required by musl
3130}
lib/compiler_rt/exp.zig+1-4
......@@ -21,10 +21,7 @@ comptime {
2121 symbol(&expf, "expf");
2222 symbol(&exp, "exp");
2323 symbol(&__expx, "__expx");
24 if (compiler_rt.want_ppc_abi) {
25 symbol(&expq, "expf128");
26 }
27 symbol(&expq, "expq");
24 symbol(&expq, "expf128");
2825 symbol(&expl, "expl");
2926}
3027
lib/compiler_rt/exp2.zig+1-4
......@@ -19,10 +19,7 @@ comptime {
1919 symbol(&exp2f, "exp2f");
2020 symbol(&exp2, "exp2");
2121 symbol(&__exp2x, "__exp2x");
22 if (compiler_rt.want_ppc_abi) {
23 symbol(&exp2q, "exp2f128");
24 }
25 symbol(&exp2q, "exp2q");
22 symbol(&exp2q, "exp2f128");
2623 symbol(&exp2l, "exp2l");
2724}
2825
lib/compiler_rt/fabs.zig+1-4
......@@ -9,10 +9,7 @@ comptime {
99 symbol(&fabsf, "fabsf");
1010 symbol(&fabs, "fabs");
1111 symbol(&__fabsx, "__fabsx");
12 if (compiler_rt.want_ppc_abi) {
13 symbol(&fabsq, "fabsf128");
14 }
15 symbol(&fabsq, "fabsq");
12 symbol(&fabsq, "fabsf128");
1613 symbol(&fabsl, "fabsl");
1714}
1815
lib/compiler_rt/floor_ceil.zig+2-8
......@@ -23,10 +23,7 @@ comptime {
2323 symbol(&floorf, "floorf");
2424 symbol(&floor, "floor");
2525 symbol(&__floorx, "__floorx");
26 if (compiler_rt.want_ppc_abi) {
27 symbol(&floorq, "floorf128");
28 }
29 symbol(&floorq, "floorq");
26 symbol(&floorq, "floorf128");
3027 symbol(&floorl, "floorl");
3128
3229 // ceil
......@@ -34,10 +31,7 @@ comptime {
3431 symbol(&ceilf, "ceilf");
3532 symbol(&ceil, "ceil");
3633 symbol(&__ceilx, "__ceilx");
37 if (compiler_rt.want_ppc_abi) {
38 symbol(&ceilq, "ceilf128");
39 }
40 symbol(&ceilq, "ceilq");
34 symbol(&ceilq, "ceilf128");
4135 symbol(&ceill, "ceill");
4236}
4337
lib/compiler_rt/fma.zig+1-4
......@@ -16,10 +16,7 @@ comptime {
1616 symbol(&fmaf, "fmaf");
1717 symbol(&fma, "fma");
1818 symbol(&__fmax, "__fmax");
19 if (compiler_rt.want_ppc_abi) {
20 symbol(&fmaq, "fmaf128");
21 }
22 symbol(&fmaq, "fmaq");
19 symbol(&fmaq, "fmaf128");
2320 symbol(&fmal, "fmal");
2421}
2522
lib/compiler_rt/fmax.zig+1-4
......@@ -10,10 +10,7 @@ comptime {
1010 symbol(&fmaxf, "fmaxf");
1111 symbol(&fmax, "fmax");
1212 symbol(&__fmaxx, "__fmaxx");
13 if (compiler_rt.want_ppc_abi) {
14 symbol(&fmaxq, "fmaxf128");
15 }
16 symbol(&fmaxq, "fmaxq");
13 symbol(&fmaxq, "fmaxf128");
1714 symbol(&fmaxl, "fmaxl");
1815}
1916
lib/compiler_rt/fmin.zig+1-4
......@@ -10,10 +10,7 @@ comptime {
1010 symbol(&fminf, "fminf");
1111 symbol(&fmin, "fmin");
1212 symbol(&__fminx, "__fminx");
13 if (compiler_rt.want_ppc_abi) {
14 symbol(&fminq, "fminf128");
15 }
16 symbol(&fminq, "fminq");
13 symbol(&fminq, "fminf128");
1714 symbol(&fminl, "fminl");
1815}
1916
lib/compiler_rt/fmod.zig+1-4
......@@ -12,10 +12,7 @@ comptime {
1212 symbol(&fmodf, "fmodf");
1313 symbol(&fmod, "fmod");
1414 symbol(&__fmodx, "__fmodx");
15 if (compiler_rt.want_ppc_abi) {
16 symbol(&fmodq, "fmodf128");
17 }
18 symbol(&fmodq, "fmodq");
15 symbol(&fmodq, "fmodf128");
1916 symbol(&fmodl, "fmodl");
2017}
2118
lib/compiler_rt/log.zig+1-4
......@@ -18,10 +18,7 @@ comptime {
1818 symbol(&logf, "logf");
1919 symbol(&log, "log");
2020 symbol(&__logx, "__logx");
21 if (compiler_rt.want_ppc_abi) {
22 symbol(&logq, "logf128");
23 }
24 symbol(&logq, "logq");
21 symbol(&logq, "logf128");
2522 symbol(&logl, "logl");
2623}
2724
lib/compiler_rt/log10.zig+1-4
......@@ -18,10 +18,7 @@ comptime {
1818 symbol(&log10f, "log10f");
1919 symbol(&log10, "log10");
2020 symbol(&__log10x, "__log10x");
21 if (compiler_rt.want_ppc_abi) {
22 symbol(&log10q, "log10f128");
23 }
24 symbol(&log10q, "log10q");
21 symbol(&log10q, "log10f128");
2522 symbol(&log10l, "log10l");
2623}
2724
lib/compiler_rt/log2.zig+1-4
......@@ -19,10 +19,7 @@ comptime {
1919 symbol(&log2f, "log2f");
2020 symbol(&log2, "log2");
2121 symbol(&__log2x, "__log2x");
22 if (compiler_rt.want_ppc_abi) {
23 symbol(&log2q, "log2f128");
24 }
25 symbol(&log2q, "log2q");
22 symbol(&log2q, "log2f128");
2623 symbol(&log2l, "log2l");
2724}
2825
lib/compiler_rt/round.zig+1-2
......@@ -18,8 +18,7 @@ comptime {
1818 symbol(&roundf, "roundf");
1919 symbol(&round, "round");
2020 symbol(&__roundx, "__roundx");
21 if (compiler_rt.want_ppc_abi) symbol(&roundq, "roundf128");
22 symbol(&roundq, "roundq");
21 symbol(&roundq, "roundf128");
2322 symbol(&roundl, "roundl");
2423}
2524
lib/compiler_rt/sin.zig+1-4
......@@ -24,10 +24,7 @@ comptime {
2424 symbol(&sinf, "sinf");
2525 symbol(&sin, "sin");
2626 symbol(&__sinx, "__sinx");
27 if (compiler_rt.want_ppc_abi) {
28 symbol(&sinq, "sinf128");
29 }
30 symbol(&sinq, "sinq");
27 symbol(&sinq, "sinf128");
3128 symbol(&sinl, "sinl");
3229 symbol(&sinl, "__sinl"); // required by musl
3330}
lib/compiler_rt/sincos.zig+1-4
......@@ -18,10 +18,7 @@ comptime {
1818 symbol(&sincosf, "sincosf");
1919 symbol(&sincos, "sincos");
2020 symbol(&sincosx, "__sincosx");
21 if (compiler_rt.want_ppc_abi) {
22 symbol(&sincosq, "sincosf128");
23 }
24 symbol(&sincosq, "sincosq");
21 symbol(&sincosq, "sincosf128");
2522 symbol(&sincosl, "sincosl");
2623}
2724
lib/compiler_rt/sqrt.zig+2-4
......@@ -17,14 +17,12 @@ comptime {
1717 symbol(&sqrtf, "sqrtf");
1818 symbol(&sqrt, "sqrt");
1919 symbol(&__sqrtx, "__sqrtx");
20 if (compiler_rt.want_ppc_abi) {
21 symbol(&sqrtq, "sqrtf128");
22 } else if (compiler_rt.want_sparc64_abi) {
20 symbol(&sqrtq, "sqrtf128");
21 if (compiler_rt.want_sparc64_abi) {
2322 symbol(&_Qp_sqrt, "_Qp_sqrt");
2423 } else if (compiler_rt.want_sparc32_abi) {
2524 symbol(&sqrtq, "_Q_sqrt");
2625 }
27 symbol(&sqrtq, "sqrtq");
2826 symbol(&sqrtl, "sqrtl");
2927}
3028
lib/compiler_rt/tan.zig+1-4
......@@ -28,10 +28,7 @@ comptime {
2828 symbol(&tanf, "tanf");
2929 symbol(&tan, "tan");
3030 symbol(&__tanx, "__tanx");
31 if (compiler_rt.want_ppc_abi) {
32 symbol(&tanq, "tanf128");
33 }
34 symbol(&tanq, "tanq");
31 symbol(&tanq, "tanf128");
3532 symbol(&tanl, "tanl");
3633}
3734
lib/compiler_rt/trunc.zig+1-4
......@@ -17,10 +17,7 @@ comptime {
1717 symbol(&truncf, "truncf");
1818 symbol(&trunc, "trunc");
1919 symbol(&__truncx, "__truncx");
20 if (compiler_rt.want_ppc_abi) {
21 symbol(&truncq, "truncf128");
22 }
23 symbol(&truncq, "truncq");
20 symbol(&truncq, "truncf128");
2421 symbol(&truncl, "truncl");
2522}
2623
lib/zig.h+1-1
......@@ -3835,7 +3835,7 @@ typedef zig_u128 zig_f80;
38353835#endif
38363836
38373837#define zig_has_f128 1
3838#define zig_libc_name_f128(name) name##q
3838#define zig_libc_name_f128(name) name##f128
38393839#define zig_init_special_f128(sign, name, arg, repr) zig_make_special_f128(sign, name, arg, repr)
38403840#if !zig_f128_has_miscompilations && FLT_MANT_DIG == 113
38413841typedef float zig_f128;
src/codegen/aarch64/Select.zig+19-19
......@@ -2099,7 +2099,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
20992099 32 => "truncf",
21002100 64 => "trunc",
21012101 80 => "__truncx",
2102 128 => "truncq",
2102 128 => "truncf128",
21032103 },
21042104 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
21052105 });
......@@ -2113,7 +2113,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
21132113 32 => "floorf",
21142114 64 => "floor",
21152115 80 => "__floorx",
2116 128 => "floorq",
2116 128 => "floorf128",
21172117 },
21182118 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
21192119 });
......@@ -2431,7 +2431,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
24312431 32 => "fmodf",
24322432 64 => "fmod",
24332433 80 => "__fmodx",
2434 128 => "fmodq",
2434 128 => "fmodf128",
24352435 },
24362436 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
24372437 });
......@@ -2599,7 +2599,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
25992599 32 => "fmaxf",
26002600 64 => "fmax",
26012601 80 => "__fmaxx",
2602 128 => "fmaxq",
2602 128 => "fmaxf128",
26032603 },
26042604 .min => switch (bits) {
26052605 else => unreachable,
......@@ -2607,7 +2607,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
26072607 32 => "fminf",
26082608 64 => "fmin",
26092609 80 => "__fminx",
2610 128 => "fminq",
2610 128 => "fminf128",
26112611 },
26122612 },
26132613 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
......@@ -4055,7 +4055,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
40554055 32 => "sqrtf",
40564056 64 => "sqrt",
40574057 80 => "__sqrtx",
4058 128 => "sqrtq",
4058 128 => "sqrtf128",
40594059 },
40604060 .floor => switch (bits) {
40614061 else => unreachable,
......@@ -4063,7 +4063,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
40634063 32 => "floorf",
40644064 64 => "floor",
40654065 80 => "__floorx",
4066 128 => "floorq",
4066 128 => "floorf128",
40674067 },
40684068 .ceil => switch (bits) {
40694069 else => unreachable,
......@@ -4071,7 +4071,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
40714071 32 => "ceilf",
40724072 64 => "ceil",
40734073 80 => "__ceilx",
4074 128 => "ceilq",
4074 128 => "ceilf128",
40754075 },
40764076 .round => switch (bits) {
40774077 else => unreachable,
......@@ -4079,7 +4079,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
40794079 32 => "roundf",
40804080 64 => "round",
40814081 80 => "__roundx",
4082 128 => "roundq",
4082 128 => "roundf128",
40834083 },
40844084 .trunc_float => switch (bits) {
40854085 else => unreachable,
......@@ -4087,7 +4087,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
40874087 32 => "truncf",
40884088 64 => "trunc",
40894089 80 => "__truncx",
4090 128 => "truncq",
4090 128 => "truncf128",
40914091 },
40924092 },
40934093 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
......@@ -4147,7 +4147,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41474147 32 => "sinf",
41484148 64 => "sin",
41494149 80 => "__sinx",
4150 128 => "sinq",
4150 128 => "sinf128",
41514151 },
41524152 .cos => switch (bits) {
41534153 else => unreachable,
......@@ -4155,7 +4155,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41554155 32 => "cosf",
41564156 64 => "cos",
41574157 80 => "__cosx",
4158 128 => "cosq",
4158 128 => "cosf128",
41594159 },
41604160 .tan => switch (bits) {
41614161 else => unreachable,
......@@ -4163,7 +4163,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41634163 32 => "tanf",
41644164 64 => "tan",
41654165 80 => "__tanx",
4166 128 => "tanq",
4166 128 => "tanf128",
41674167 },
41684168 .exp => switch (bits) {
41694169 else => unreachable,
......@@ -4171,7 +4171,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41714171 32 => "expf",
41724172 64 => "exp",
41734173 80 => "__expx",
4174 128 => "expq",
4174 128 => "expf128",
41754175 },
41764176 .exp2 => switch (bits) {
41774177 else => unreachable,
......@@ -4179,7 +4179,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41794179 32 => "exp2f",
41804180 64 => "exp2",
41814181 80 => "__exp2x",
4182 128 => "exp2q",
4182 128 => "exp2f128",
41834183 },
41844184 .log => switch (bits) {
41854185 else => unreachable,
......@@ -4187,7 +4187,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41874187 32 => "logf",
41884188 64 => "log",
41894189 80 => "__logx",
4190 128 => "logq",
4190 128 => "logf128",
41914191 },
41924192 .log2 => switch (bits) {
41934193 else => unreachable,
......@@ -4195,7 +4195,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
41954195 32 => "log2f",
41964196 64 => "log2",
41974197 80 => "__log2x",
4198 128 => "log2q",
4198 128 => "log2f128",
41994199 },
42004200 .log10 => switch (bits) {
42014201 else => unreachable,
......@@ -4203,7 +4203,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
42034203 32 => "log10f",
42044204 64 => "log10",
42054205 80 => "__log10x",
4206 128 => "log10q",
4206 128 => "log10f128",
42074207 },
42084208 },
42094209 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
......@@ -7118,7 +7118,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
71187118 32 => "fmaf",
71197119 64 => "fma",
71207120 80 => "__fmax",
7121 128 => "fmaq",
7121 128 => "fmaf128",
71227122 },
71237123 .reloc = .{ .label = @intCast(isel.instructions.items.len) },
71247124 });
src/codegen/wasm/CodeGen.zig+16-16
......@@ -4340,7 +4340,7 @@ fn floatRem(cg: *CodeGen, ty: FloatType, lhs: WValue, rhs: WValue) InnerError!WV
43404340 .f32 => return cg.callIntrinsic(.fmodf, &.{ .f32_type, .f32_type }, Type.f32, &.{ lhs, rhs }),
43414341 .f64 => return cg.callIntrinsic(.fmod, &.{ .f64_type, .f64_type }, Type.f64, &.{ lhs, rhs }),
43424342 .f80 => return cg.callIntrinsic(.__fmodx, &.{ .f80_type, .f80_type }, Type.f80, &.{ lhs, rhs }),
4343 .f128 => return cg.callIntrinsic(.fmodq, &.{ .f128_type, .f128_type }, Type.f128, &.{ lhs, rhs }),
4343 .f128 => return cg.callIntrinsic(.fmodf128, &.{ .f128_type, .f128_type }, Type.f128, &.{ lhs, rhs }),
43444344 }
43454345}
43464346
......@@ -4376,7 +4376,7 @@ fn floatMax(cg: *CodeGen, ty: FloatType, lhs: WValue, rhs: WValue) InnerError!WV
43764376 .f32 => return cg.callIntrinsic(.fmaxf, &.{ .f32_type, .f32_type }, Type.f32, &.{ lhs, rhs }),
43774377 .f64 => return cg.callIntrinsic(.fmax, &.{ .f64_type, .f64_type }, Type.f64, &.{ lhs, rhs }),
43784378 .f80 => return cg.callIntrinsic(.__fmaxx, &.{ .f80_type, .f80_type }, Type.f80, &.{ lhs, rhs }),
4379 .f128 => return cg.callIntrinsic(.fmaxq, &.{ .f128_type, .f128_type }, Type.f128, &.{ lhs, rhs }),
4379 .f128 => return cg.callIntrinsic(.fmaxf128, &.{ .f128_type, .f128_type }, Type.f128, &.{ lhs, rhs }),
43804380 }
43814381}
43824382
......@@ -4387,7 +4387,7 @@ fn floatMin(cg: *CodeGen, ty: FloatType, lhs: WValue, rhs: WValue) InnerError!WV
43874387 .f32 => return cg.callIntrinsic(.fminf, &.{ .f32_type, .f32_type }, Type.f32, &.{ lhs, rhs }),
43884388 .f64 => return cg.callIntrinsic(.fmin, &.{ .f64_type, .f64_type }, Type.f64, &.{ lhs, rhs }),
43894389 .f80 => return cg.callIntrinsic(.__fminx, &.{ .f80_type, .f80_type }, Type.f80, &.{ lhs, rhs }),
4390 .f128 => return cg.callIntrinsic(.fminq, &.{ .f128_type, .f128_type }, Type.f128, &.{ lhs, rhs }),
4390 .f128 => return cg.callIntrinsic(.fminf128, &.{ .f128_type, .f128_type }, Type.f128, &.{ lhs, rhs }),
43914391 }
43924392}
43934393
......@@ -4405,7 +4405,7 @@ fn floatSqrt(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44054405 return .stack;
44064406 },
44074407 .f80 => return cg.callIntrinsic(.__sqrtx, &.{.f80_type}, Type.f80, &.{arg}),
4408 .f128 => return cg.callIntrinsic(.sqrtq, &.{.f128_type}, Type.f128, &.{arg}),
4408 .f128 => return cg.callIntrinsic(.sqrtf128, &.{.f128_type}, Type.f128, &.{arg}),
44094409 }
44104410}
44114411
......@@ -4415,7 +4415,7 @@ fn floatSin(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44154415 .f32 => return cg.callIntrinsic(.sinf, &.{.f32_type}, Type.f32, &.{arg}),
44164416 .f64 => return cg.callIntrinsic(.sin, &.{.f64_type}, Type.f64, &.{arg}),
44174417 .f80 => return cg.callIntrinsic(.__sinx, &.{.f80_type}, Type.f80, &.{arg}),
4418 .f128 => return cg.callIntrinsic(.sinq, &.{.f128_type}, Type.f128, &.{arg}),
4418 .f128 => return cg.callIntrinsic(.sinf128, &.{.f128_type}, Type.f128, &.{arg}),
44194419 }
44204420}
44214421
......@@ -4425,7 +4425,7 @@ fn floatCos(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44254425 .f32 => return cg.callIntrinsic(.cosf, &.{.f32_type}, Type.f32, &.{arg}),
44264426 .f64 => return cg.callIntrinsic(.cos, &.{.f64_type}, Type.f64, &.{arg}),
44274427 .f80 => return cg.callIntrinsic(.__cosx, &.{.f80_type}, Type.f80, &.{arg}),
4428 .f128 => return cg.callIntrinsic(.cosq, &.{.f128_type}, Type.f128, &.{arg}),
4428 .f128 => return cg.callIntrinsic(.cosf128, &.{.f128_type}, Type.f128, &.{arg}),
44294429 }
44304430}
44314431
......@@ -4435,7 +4435,7 @@ fn floatTan(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44354435 .f32 => return cg.callIntrinsic(.tanf, &.{.f32_type}, Type.f32, &.{arg}),
44364436 .f64 => return cg.callIntrinsic(.tan, &.{.f64_type}, Type.f64, &.{arg}),
44374437 .f80 => return cg.callIntrinsic(.__tanx, &.{.f80_type}, Type.f80, &.{arg}),
4438 .f128 => return cg.callIntrinsic(.tanq, &.{.f128_type}, Type.f128, &.{arg}),
4438 .f128 => return cg.callIntrinsic(.tanf128, &.{.f128_type}, Type.f128, &.{arg}),
44394439 }
44404440}
44414441
......@@ -4445,7 +4445,7 @@ fn floatExp(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44454445 .f32 => return cg.callIntrinsic(.expf, &.{.f32_type}, Type.f32, &.{arg}),
44464446 .f64 => return cg.callIntrinsic(.exp, &.{.f64_type}, Type.f64, &.{arg}),
44474447 .f80 => return cg.callIntrinsic(.__expx, &.{.f80_type}, Type.f80, &.{arg}),
4448 .f128 => return cg.callIntrinsic(.expq, &.{.f128_type}, Type.f128, &.{arg}),
4448 .f128 => return cg.callIntrinsic(.expf128, &.{.f128_type}, Type.f128, &.{arg}),
44494449 }
44504450}
44514451
......@@ -4455,7 +4455,7 @@ fn floatExp2(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44554455 .f32 => return cg.callIntrinsic(.exp2f, &.{.f32_type}, Type.f32, &.{arg}),
44564456 .f64 => return cg.callIntrinsic(.exp2, &.{.f64_type}, Type.f64, &.{arg}),
44574457 .f80 => return cg.callIntrinsic(.__exp2x, &.{.f80_type}, Type.f80, &.{arg}),
4458 .f128 => return cg.callIntrinsic(.exp2q, &.{.f128_type}, Type.f128, &.{arg}),
4458 .f128 => return cg.callIntrinsic(.exp2f128, &.{.f128_type}, Type.f128, &.{arg}),
44594459 }
44604460}
44614461
......@@ -4465,7 +4465,7 @@ fn floatLog(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44654465 .f32 => return cg.callIntrinsic(.logf, &.{.f32_type}, Type.f32, &.{arg}),
44664466 .f64 => return cg.callIntrinsic(.log, &.{.f64_type}, Type.f64, &.{arg}),
44674467 .f80 => return cg.callIntrinsic(.__logx, &.{.f80_type}, Type.f80, &.{arg}),
4468 .f128 => return cg.callIntrinsic(.logq, &.{.f128_type}, Type.f128, &.{arg}),
4468 .f128 => return cg.callIntrinsic(.logf128, &.{.f128_type}, Type.f128, &.{arg}),
44694469 }
44704470}
44714471
......@@ -4475,7 +4475,7 @@ fn floatLog2(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44754475 .f32 => return cg.callIntrinsic(.log2f, &.{.f32_type}, Type.f32, &.{arg}),
44764476 .f64 => return cg.callIntrinsic(.log2, &.{.f64_type}, Type.f64, &.{arg}),
44774477 .f80 => return cg.callIntrinsic(.__log2x, &.{.f80_type}, Type.f80, &.{arg}),
4478 .f128 => return cg.callIntrinsic(.log2q, &.{.f128_type}, Type.f128, &.{arg}),
4478 .f128 => return cg.callIntrinsic(.log2f128, &.{.f128_type}, Type.f128, &.{arg}),
44794479 }
44804480}
44814481
......@@ -4485,7 +4485,7 @@ fn floatLog10(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
44854485 .f32 => return cg.callIntrinsic(.log10f, &.{.f32_type}, Type.f32, &.{arg}),
44864486 .f64 => return cg.callIntrinsic(.log10, &.{.f64_type}, Type.f64, &.{arg}),
44874487 .f80 => return cg.callIntrinsic(.__log10x, &.{.f80_type}, Type.f80, &.{arg}),
4488 .f128 => return cg.callIntrinsic(.log10q, &.{.f128_type}, Type.f128, &.{arg}),
4488 .f128 => return cg.callIntrinsic(.log10f128, &.{.f128_type}, Type.f128, &.{arg}),
44894489 }
44904490}
44914491
......@@ -4503,7 +4503,7 @@ fn floatFloor(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
45034503 return .stack;
45044504 },
45054505 .f80 => return cg.callIntrinsic(.__floorx, &.{.f80_type}, Type.f80, &.{arg}),
4506 .f128 => return cg.callIntrinsic(.floorq, &.{.f128_type}, Type.f128, &.{arg}),
4506 .f128 => return cg.callIntrinsic(.floorf128, &.{.f128_type}, Type.f128, &.{arg}),
45074507 }
45084508}
45094509
......@@ -4521,7 +4521,7 @@ fn floatCeil(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
45214521 return .stack;
45224522 },
45234523 .f80 => return cg.callIntrinsic(.__ceilx, &.{.f80_type}, Type.f80, &.{arg}),
4524 .f128 => return cg.callIntrinsic(.ceilq, &.{.f128_type}, Type.f128, &.{arg}),
4524 .f128 => return cg.callIntrinsic(.ceilf128, &.{.f128_type}, Type.f128, &.{arg}),
45254525 }
45264526}
45274527
......@@ -4539,7 +4539,7 @@ fn floatRound(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
45394539 return .stack;
45404540 },
45414541 .f80 => return cg.callIntrinsic(.__roundx, &.{.f80_type}, Type.f80, &.{arg}),
4542 .f128 => return cg.callIntrinsic(.roundq, &.{.f128_type}, Type.f128, &.{arg}),
4542 .f128 => return cg.callIntrinsic(.roundf128, &.{.f128_type}, Type.f128, &.{arg}),
45434543 }
45444544}
45454545
......@@ -4557,7 +4557,7 @@ fn floatTrunc(cg: *CodeGen, ty: FloatType, arg: WValue) InnerError!WValue {
45574557 return .stack;
45584558 },
45594559 .f80 => return cg.callIntrinsic(.__truncx, &.{.f80_type}, Type.f80, &.{arg}),
4560 .f128 => return cg.callIntrinsic(.truncq, &.{.f128_type}, Type.f128, &.{arg}),
4560 .f128 => return cg.callIntrinsic(.truncf128, &.{.f128_type}, Type.f128, &.{arg}),
45614561 }
45624562}
45634563
src/codegen/wasm/Mir.zig+18-18
......@@ -991,48 +991,48 @@ pub const Intrinsic = enum(u32) {
991991 __udivti3,
992992 __umodei5,
993993 __umodti3,
994 ceilq,
994 ceilf128,
995995 cos,
996996 cosf,
997 cosq,
997 cosf128,
998998 exp,
999999 exp2,
10001000 exp2f,
1001 exp2q,
1001 exp2f128,
10021002 expf,
1003 expq,
1004 fabsq,
1005 floorq,
1003 expf128,
1004 fabsf128,
1005 floorf128,
10061006 fma,
10071007 fmaf,
1008 fmaq,
1008 fmaf128,
10091009 fmax,
10101010 fmaxf,
1011 fmaxq,
1011 fmaxf128,
10121012 fmin,
10131013 fminf,
1014 fminq,
1014 fminf128,
10151015 fmod,
10161016 fmodf,
1017 fmodq,
1017 fmodf128,
10181018 log,
10191019 log10,
10201020 log10f,
1021 log10q,
1021 log10f128,
10221022 log2,
10231023 log2f,
1024 log2q,
1024 log2f128,
10251025 logf,
1026 logq,
1027 roundq,
1026 logf128,
1027 roundf128,
10281028 sin,
10291029 sinf,
1030 sinq,
1031 sqrtq,
1030 sinf128,
1031 sqrtf128,
10321032 tan,
10331033 tanf,
1034 tanq,
1035 truncq,
1034 tanf128,
1035 truncf128,
10361036 memcpy,
10371037 memmove,
10381038 memset,
src/codegen/x86_64/CodeGen.zig+148-148
......@@ -34436,7 +34436,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3443634436 .call_frame = .{ .alignment = .@"16" },
3443734437 .extra_temps = .{
3443834438 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
34439 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34439 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3444034440 .unused,
3444134441 .unused,
3444234442 .unused,
......@@ -34470,7 +34470,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3447034470 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3447134471 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3447234472 .{ .type = .f128, .kind = .mem },
34473 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34473 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3447434474 .unused,
3447534475 .unused,
3447634476 .unused,
......@@ -34505,7 +34505,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3450534505 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3450634506 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3450734507 .{ .type = .f128, .kind = .mem },
34508 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34508 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3450934509 .unused,
3451034510 .unused,
3451134511 .unused,
......@@ -34540,7 +34540,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3454034540 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3454134541 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3454234542 .{ .type = .f128, .kind = .mem },
34543 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34543 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3454434544 .unused,
3454534545 .unused,
3454634546 .unused,
......@@ -34575,7 +34575,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3457534575 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3457634576 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3457734577 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
34578 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34578 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3457934579 .unused,
3458034580 .unused,
3458134581 .unused,
......@@ -34612,7 +34612,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3461234612 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3461334613 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3461434614 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
34615 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34615 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3461634616 .unused,
3461734617 .unused,
3461834618 .unused,
......@@ -34649,7 +34649,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3464934649 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3465034650 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3465134651 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
34652 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34652 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3465334653 .unused,
3465434654 .unused,
3465534655 .unused,
......@@ -34688,7 +34688,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3468834688 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3468934689 .{ .type = .f128, .kind = .mem },
3469034690 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
34691 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34691 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3469234692 .unused,
3469334693 .unused,
3469434694 .unused,
......@@ -34727,7 +34727,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3472734727 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3472834728 .{ .type = .f128, .kind = .mem },
3472934729 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
34730 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34730 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3473134731 .unused,
3473234732 .unused,
3473334733 .unused,
......@@ -34766,7 +34766,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3476634766 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3476734767 .{ .type = .f128, .kind = .mem },
3476834768 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
34769 .{ .type = .usize, .kind = .{ .extern_func = "truncq" } },
34769 .{ .type = .usize, .kind = .{ .extern_func = "truncf128" } },
3477034770 .unused,
3477134771 .unused,
3477234772 .unused,
......@@ -35960,8 +35960,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3596035960 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3596135961 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3596235962 else => unreachable,
35963 .zero => "truncq",
35964 .down => "floorq",
35963 .zero => "truncf128",
35964 .down => "floorf128",
3596535965 } } },
3596635966 .unused,
3596735967 .unused,
......@@ -35998,8 +35998,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3599835998 .{ .type = .f128, .kind = .mem },
3599935999 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3600036000 else => unreachable,
36001 .zero => "truncq",
36002 .down => "floorq",
36001 .zero => "truncf128",
36002 .down => "floorf128",
3600336003 } } },
3600436004 .unused,
3600536005 .unused,
......@@ -36037,8 +36037,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3603736037 .{ .type = .f128, .kind = .mem },
3603836038 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3603936039 else => unreachable,
36040 .zero => "truncq",
36041 .down => "floorq",
36040 .zero => "truncf128",
36041 .down => "floorf128",
3604236042 } } },
3604336043 .unused,
3604436044 .unused,
......@@ -36076,8 +36076,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3607636076 .{ .type = .f128, .kind = .mem },
3607736077 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3607836078 else => unreachable,
36079 .zero => "truncq",
36080 .down => "floorq",
36079 .zero => "truncf128",
36080 .down => "floorf128",
3608136081 } } },
3608236082 .unused,
3608336083 .unused,
......@@ -36115,8 +36115,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3611536115 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3611636116 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3611736117 else => unreachable,
36118 .zero => "truncq",
36119 .down => "floorq",
36118 .zero => "truncf128",
36119 .down => "floorf128",
3612036120 } } },
3612136121 .unused,
3612236122 .unused,
......@@ -36156,8 +36156,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3615636156 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3615736157 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3615836158 else => unreachable,
36159 .zero => "truncq",
36160 .down => "floorq",
36159 .zero => "truncf128",
36160 .down => "floorf128",
3616136161 } } },
3616236162 .unused,
3616336163 .unused,
......@@ -36197,8 +36197,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3619736197 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3619836198 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3619936199 else => unreachable,
36200 .zero => "truncq",
36201 .down => "floorq",
36200 .zero => "truncf128",
36201 .down => "floorf128",
3620236202 } } },
3620336203 .unused,
3620436204 .unused,
......@@ -36240,8 +36240,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3624036240 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3624136241 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3624236242 else => unreachable,
36243 .zero => "truncq",
36244 .down => "floorq",
36243 .zero => "truncf128",
36244 .down => "floorf128",
3624536245 } } },
3624636246 .unused,
3624736247 .unused,
......@@ -36283,8 +36283,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3628336283 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3628436284 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3628536285 else => unreachable,
36286 .zero => "truncq",
36287 .down => "floorq",
36286 .zero => "truncf128",
36287 .down => "floorf128",
3628836288 } } },
3628936289 .unused,
3629036290 .unused,
......@@ -36326,8 +36326,8 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3632636326 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3632736327 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
3632836328 else => unreachable,
36329 .zero => "truncq",
36330 .down => "floorq",
36329 .zero => "truncf128",
36330 .down => "floorf128",
3633136331 } } },
3633236332 .unused,
3633336333 .unused,
......@@ -37691,7 +37691,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3769137691 .call_frame = .{ .alignment = .@"16" },
3769237692 .extra_temps = .{
3769337693 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
37694 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37694 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3769537695 .unused,
3769637696 .unused,
3769737697 .unused,
......@@ -37725,7 +37725,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3772537725 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3772637726 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3772737727 .{ .type = .f128, .kind = .mem },
37728 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37728 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3772937729 .unused,
3773037730 .unused,
3773137731 .unused,
......@@ -37760,7 +37760,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3776037760 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3776137761 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3776237762 .{ .type = .f128, .kind = .mem },
37763 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37763 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3776437764 .unused,
3776537765 .unused,
3776637766 .unused,
......@@ -37795,7 +37795,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3779537795 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3779637796 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3779737797 .{ .type = .f128, .kind = .mem },
37798 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37798 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3779937799 .unused,
3780037800 .unused,
3780137801 .unused,
......@@ -37830,7 +37830,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3783037830 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3783137831 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3783237832 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
37833 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37833 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3783437834 .unused,
3783537835 .unused,
3783637836 .unused,
......@@ -37867,7 +37867,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3786737867 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3786837868 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3786937869 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
37870 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37870 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3787137871 .unused,
3787237872 .unused,
3787337873 .unused,
......@@ -37904,7 +37904,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3790437904 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3790537905 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
3790637906 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
37907 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37907 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3790837908 .unused,
3790937909 .unused,
3791037910 .unused,
......@@ -37943,7 +37943,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3794337943 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3794437944 .{ .type = .f128, .kind = .mem },
3794537945 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
37946 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37946 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3794737947 .unused,
3794837948 .unused,
3794937949 .unused,
......@@ -37982,7 +37982,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3798237982 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3798337983 .{ .type = .f128, .kind = .mem },
3798437984 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
37985 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
37985 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3798637986 .unused,
3798737987 .unused,
3798837988 .unused,
......@@ -38021,7 +38021,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3802138021 .{ .type = .usize, .kind = .{ .extern_func = "__divtf3" } },
3802238022 .{ .type = .f128, .kind = .mem },
3802338023 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
38024 .{ .type = .usize, .kind = .{ .extern_func = "floorq" } },
38024 .{ .type = .usize, .kind = .{ .extern_func = "floorf128" } },
3802538025 .unused,
3802638026 .unused,
3802738027 .unused,
......@@ -39558,7 +39558,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3955839558 },
3955939559 .call_frame = .{ .alignment = .@"16" },
3956039560 .extra_temps = .{
39561 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39561 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3956239562 .unused,
3956339563 .unused,
3956439564 .unused,
......@@ -39590,7 +39590,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3959039590 .extra_temps = .{
3959139591 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3959239592 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39593 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39593 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3959439594 .unused,
3959539595 .unused,
3959639596 .unused,
......@@ -39623,7 +39623,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3962339623 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
3962439624 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3962539625 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39626 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39626 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3962739627 .unused,
3962839628 .unused,
3962939629 .unused,
......@@ -39659,7 +39659,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3965939659 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
3966039660 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3966139661 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39662 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39662 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3966339663 .unused,
3966439664 .unused,
3966539665 .unused,
......@@ -39695,7 +39695,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3969539695 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
3969639696 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3969739697 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39698 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39698 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3969939699 .unused,
3970039700 .unused,
3970139701 .unused,
......@@ -39731,7 +39731,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3973139731 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
3973239732 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3973339733 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39734 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39734 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3973539735 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3973639736 .unused,
3973739737 .unused,
......@@ -39767,7 +39767,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3976739767 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
3976839768 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3976939769 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39770 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39770 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3977139771 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3977239772 .unused,
3977339773 .unused,
......@@ -39803,7 +39803,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3980339803 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
3980439804 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3980539805 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
39806 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
39806 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
3980739807 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
3980839808 .unused,
3980939809 .unused,
......@@ -42803,7 +42803,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4280342803 .call_frame = .{ .alignment = .@"16" },
4280442804 .extra_temps = .{
4280542805 .{ .type = .f128, .kind = .mem },
42806 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
42806 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4280742807 .{ .type = .u64, .kind = .{ .reg = .rcx } },
4280842808 .{ .type = .u64, .kind = .{ .reg = .rdx } },
4280942809 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -42849,7 +42849,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4284942849 .call_frame = .{ .alignment = .@"16" },
4285042850 .extra_temps = .{
4285142851 .{ .type = .f128, .kind = .mem },
42852 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
42852 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4285342853 .{ .type = .u64, .kind = .{ .reg = .rcx } },
4285442854 .{ .type = .u64, .kind = .{ .reg = .rdx } },
4285542855 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -42895,7 +42895,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4289542895 .call_frame = .{ .alignment = .@"16" },
4289642896 .extra_temps = .{
4289742897 .{ .type = .f128, .kind = .mem },
42898 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
42898 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4289942899 .{ .type = .u64, .kind = .{ .reg = .rcx } },
4290042900 .{ .type = .u64, .kind = .{ .reg = .rdx } },
4290142901 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -42942,7 +42942,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4294242942 .call_frame = .{ .alignment = .@"16" },
4294342943 .extra_temps = .{
4294442944 .{ .type = .f128, .kind = .mem },
42945 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
42945 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4294642946 .{ .type = .u64, .kind = .{ .reg = .rdx } },
4294742947 .{ .type = .f128, .kind = .mem },
4294842948 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -42984,7 +42984,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4298442984 .extra_temps = .{
4298542985 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4298642986 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
42987 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
42987 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4298842988 .{ .type = .f128, .kind = .mem },
4298942989 .{ .type = .f128, .kind = .{ .reg = .xmm1 } },
4299042990 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -43029,7 +43029,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4302943029 .extra_temps = .{
4303043030 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4303143031 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43032 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43032 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4303343033 .{ .type = .f128, .kind = .mem },
4303443034 .{ .type = .f128, .kind = .{ .reg = .xmm1 } },
4303543035 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -43074,7 +43074,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4307443074 .extra_temps = .{
4307543075 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4307643076 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43077 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43077 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4307843078 .{ .type = .f128, .kind = .mem },
4307943079 .{ .type = .f128, .kind = .{ .reg = .xmm1 } },
4308043080 .{ .type = .u64, .kind = .{ .reg = .rax } },
......@@ -43120,7 +43120,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4312043120 .extra_temps = .{
4312143121 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4312243122 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43123 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43123 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4312443124 .{ .type = .f128, .kind = .mem },
4312543125 .{ .type = .usize, .kind = .{ .reg = .rax } },
4312643126 .{ .type = .usize, .kind = .{ .extern_func = "__addtf3" } },
......@@ -43164,7 +43164,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4316443164 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
4316543165 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4316643166 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43167 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43167 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4316843168 .{ .type = .f128, .kind = .{ .reg = .rcx } },
4316943169 .{ .type = .f128, .kind = .{ .reg = .rdx } },
4317043170 .{ .type = .f128, .kind = .{ .reg = .rax } },
......@@ -43211,7 +43211,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4321143211 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
4321243212 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4321343213 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43214 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43214 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4321543215 .{ .type = .f128, .kind = .{ .reg = .rcx } },
4321643216 .{ .type = .f128, .kind = .{ .reg = .rdx } },
4321743217 .{ .type = .f128, .kind = .{ .reg = .rax } },
......@@ -43258,7 +43258,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4325843258 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
4325943259 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4326043260 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43261 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43261 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4326243262 .{ .type = .f128, .kind = .{ .reg = .rcx } },
4326343263 .{ .type = .f128, .kind = .{ .reg = .rdx } },
4326443264 .{ .type = .f128, .kind = .{ .reg = .rax } },
......@@ -43306,7 +43306,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4330643306 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
4330743307 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4330843308 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
43309 .{ .type = .usize, .kind = .{ .extern_func = "fmodq" } },
43309 .{ .type = .usize, .kind = .{ .extern_func = "fmodf128" } },
4331043310 .{ .type = .f128, .kind = .{ .reg = .rdx } },
4331143311 .{ .type = .f128, .kind = .mem },
4331243312 .{ .type = .f128, .kind = .{ .reg = .rax } },
......@@ -47623,7 +47623,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4762347623 },
4762447624 .call_frame = .{ .alignment = .@"16" },
4762547625 .extra_temps = .{
47626 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47626 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4762747627 .unused,
4762847628 .unused,
4762947629 .unused,
......@@ -47655,7 +47655,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4765547655 .extra_temps = .{
4765647656 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4765747657 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47658 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47658 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4765947659 .unused,
4766047660 .unused,
4766147661 .unused,
......@@ -47688,7 +47688,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4768847688 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
4768947689 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4769047690 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47691 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47691 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4769247692 .unused,
4769347693 .unused,
4769447694 .unused,
......@@ -47724,7 +47724,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4772447724 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
4772547725 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4772647726 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47727 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47727 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4772847728 .unused,
4772947729 .unused,
4773047730 .unused,
......@@ -47760,7 +47760,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4776047760 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
4776147761 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4776247762 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47763 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47763 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4776447764 .unused,
4776547765 .unused,
4776647766 .unused,
......@@ -47796,7 +47796,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4779647796 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
4779747797 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4779847798 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47799 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47799 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4780047800 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4780147801 .unused,
4780247802 .unused,
......@@ -47832,7 +47832,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4783247832 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
4783347833 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4783447834 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47835 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47835 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4783647836 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4783747837 .unused,
4783847838 .unused,
......@@ -47868,7 +47868,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
4786847868 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
4786947869 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4787047870 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
47871 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
47871 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
4787247872 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
4787347873 .unused,
4787447874 .unused,
......@@ -51926,7 +51926,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5192651926 },
5192751927 .call_frame = .{ .alignment = .@"16" },
5192851928 .extra_temps = .{
51929 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
51929 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5193051930 .unused,
5193151931 .unused,
5193251932 .unused,
......@@ -51958,7 +51958,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5195851958 .extra_temps = .{
5195951959 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5196051960 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
51961 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
51961 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5196251962 .unused,
5196351963 .unused,
5196451964 .unused,
......@@ -51991,7 +51991,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5199151991 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
5199251992 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5199351993 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
51994 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
51994 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5199551995 .unused,
5199651996 .unused,
5199751997 .unused,
......@@ -52027,7 +52027,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5202752027 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
5202852028 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5202952029 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
52030 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
52030 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5203152031 .unused,
5203252032 .unused,
5203352033 .unused,
......@@ -52063,7 +52063,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5206352063 .{ .type = .isize, .kind = .{ .rc = .general_purpose } },
5206452064 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5206552065 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
52066 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
52066 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5206752067 .unused,
5206852068 .unused,
5206952069 .unused,
......@@ -52099,7 +52099,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5209952099 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
5210052100 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5210152101 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
52102 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
52102 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5210352103 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5210452104 .unused,
5210552105 .unused,
......@@ -52135,7 +52135,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5213552135 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
5213652136 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5213752137 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
52138 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
52138 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5213952139 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5214052140 .unused,
5214152141 .unused,
......@@ -52171,7 +52171,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5217152171 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
5217252172 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5217352173 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
52174 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
52174 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
5217552175 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
5217652176 .unused,
5217752177 .unused,
......@@ -76457,7 +76457,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7645776457 },
7645876458 .call_frame = .{ .alignment = .@"16" },
7645976459 .extra_temps = .{
76460 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76460 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7646176461 .unused,
7646276462 .unused,
7646376463 .unused,
......@@ -76484,7 +76484,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7648476484 .call_frame = .{ .alignment = .@"16" },
7648576485 .extra_temps = .{
7648676486 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76487 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76487 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7648876488 .unused,
7648976489 .unused,
7649076490 .unused,
......@@ -76512,7 +76512,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7651276512 .extra_temps = .{
7651376513 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7651476514 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76515 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76515 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7651676516 .unused,
7651776517 .unused,
7651876518 .unused,
......@@ -76543,7 +76543,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7654376543 .extra_temps = .{
7654476544 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7654576545 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76546 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76546 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7654776547 .unused,
7654876548 .unused,
7654976549 .unused,
......@@ -76574,7 +76574,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7657476574 .extra_temps = .{
7657576575 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7657676576 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76577 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76577 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7657876578 .unused,
7657976579 .unused,
7658076580 .unused,
......@@ -76605,7 +76605,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7660576605 .extra_temps = .{
7660676606 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7660776607 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76608 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76608 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7660976609 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
7661076610 .unused,
7661176611 .unused,
......@@ -76636,7 +76636,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7663676636 .extra_temps = .{
7663776637 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7663876638 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76639 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76639 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7664076640 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
7664176641 .unused,
7664276642 .unused,
......@@ -76667,7 +76667,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7666776667 .extra_temps = .{
7666876668 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7666976669 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
76670 .{ .type = .usize, .kind = .{ .extern_func = "sqrtq" } },
76670 .{ .type = .usize, .kind = .{ .extern_func = "sqrtf128" } },
7667176671 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
7667276672 .unused,
7667376673 .unused,
......@@ -77306,7 +77306,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7730677306 },
7730777307 .call_frame = .{ .alignment = .@"16" },
7730877308 .extra_temps = .{
77309 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77309 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7731077310 .unused,
7731177311 .unused,
7731277312 .unused,
......@@ -77333,7 +77333,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7733377333 .call_frame = .{ .alignment = .@"16" },
7733477334 .extra_temps = .{
7733577335 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77336 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77336 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7733777337 .unused,
7733877338 .unused,
7733977339 .unused,
......@@ -77361,7 +77361,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7736177361 .extra_temps = .{
7736277362 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7736377363 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77364 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77364 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7736577365 .unused,
7736677366 .unused,
7736777367 .unused,
......@@ -77392,7 +77392,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7739277392 .extra_temps = .{
7739377393 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7739477394 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77395 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77395 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7739677396 .unused,
7739777397 .unused,
7739877398 .unused,
......@@ -77423,7 +77423,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7742377423 .extra_temps = .{
7742477424 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7742577425 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77426 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77426 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7742777427 .unused,
7742877428 .unused,
7742977429 .unused,
......@@ -77454,7 +77454,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7745477454 .extra_temps = .{
7745577455 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7745677456 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77457 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77457 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7745877458 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
7745977459 .unused,
7746077460 .unused,
......@@ -77485,7 +77485,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7748577485 .extra_temps = .{
7748677486 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7748777487 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77488 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77488 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7748977489 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
7749077490 .unused,
7749177491 .unused,
......@@ -77516,7 +77516,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
7751677516 .extra_temps = .{
7751777517 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
7751877518 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
77519 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "q" } },
77519 .{ .type = .usize, .kind = .{ .extern_func = @tagName(name) ++ "f128" } },
7752077520 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
7752177521 .unused,
7752277522 .unused,
......@@ -80155,9 +80155,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8015580155 .extra_temps = .{
8015680156 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8015780157 else => unreachable,
80158 .down => "floorq",
80159 .up => "ceilq",
80160 .zero => "truncq",
80158 .down => "floorf128",
80159 .up => "ceilf128",
80160 .zero => "truncf128",
8016180161 } } },
8016280162 .unused,
8016380163 .unused,
......@@ -80187,9 +80187,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8018780187 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8018880188 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8018980189 else => unreachable,
80190 .down => "floorq",
80191 .up => "ceilq",
80192 .zero => "truncq",
80190 .down => "floorf128",
80191 .up => "ceilf128",
80192 .zero => "truncf128",
8019380193 } } },
8019480194 .unused,
8019580195 .unused,
......@@ -80220,9 +80220,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8022080220 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8022180221 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8022280222 else => unreachable,
80223 .down => "floorq",
80224 .up => "ceilq",
80225 .zero => "truncq",
80223 .down => "floorf128",
80224 .up => "ceilf128",
80225 .zero => "truncf128",
8022680226 } } },
8022780227 .unused,
8022880228 .unused,
......@@ -80256,9 +80256,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8025680256 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8025780257 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8025880258 else => unreachable,
80259 .down => "floorq",
80260 .up => "ceilq",
80261 .zero => "truncq",
80259 .down => "floorf128",
80260 .up => "ceilf128",
80261 .zero => "truncf128",
8026280262 } } },
8026380263 .unused,
8026480264 .unused,
......@@ -80292,9 +80292,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8029280292 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8029380293 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8029480294 else => unreachable,
80295 .down => "floorq",
80296 .up => "ceilq",
80297 .zero => "truncq",
80295 .down => "floorf128",
80296 .up => "ceilf128",
80297 .zero => "truncf128",
8029880298 } } },
8029980299 .unused,
8030080300 .unused,
......@@ -80328,9 +80328,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8032880328 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8032980329 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8033080330 else => unreachable,
80331 .down => "floorq",
80332 .up => "ceilq",
80333 .zero => "truncq",
80331 .down => "floorf128",
80332 .up => "ceilf128",
80333 .zero => "truncf128",
8033480334 } } },
8033580335 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8033680336 .unused,
......@@ -80364,9 +80364,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8036480364 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8036580365 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8036680366 else => unreachable,
80367 .down => "floorq",
80368 .up => "ceilq",
80369 .zero => "truncq",
80367 .down => "floorf128",
80368 .up => "ceilf128",
80369 .zero => "truncf128",
8037080370 } } },
8037180371 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8037280372 .unused,
......@@ -80400,9 +80400,9 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
8040080400 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8040180401 .{ .type = .usize, .kind = .{ .extern_func = switch (direction) {
8040280402 else => unreachable,
80403 .down => "floorq",
80404 .up => "ceilq",
80405 .zero => "truncq",
80403 .down => "floorf128",
80404 .up => "ceilf128",
80405 .zero => "truncf128",
8040680406 } } },
8040780407 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
8040880408 .unused,
......@@ -142552,7 +142552,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
142552142552 .extra_temps = .{
142553142553 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
142554142554 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
142555 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
142555 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
142556142556 .unused,
142557142557 .unused,
142558142558 .unused,
......@@ -142584,7 +142584,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
142584142584 .extra_temps = .{
142585142585 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
142586142586 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
142587 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
142587 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
142588142588 .unused,
142589142589 .unused,
142590142590 .unused,
......@@ -142616,7 +142616,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
142616142616 .extra_temps = .{
142617142617 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
142618142618 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
142619 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
142619 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
142620142620 .unused,
142621142621 .unused,
142622142622 .unused,
......@@ -142649,7 +142649,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
142649142649 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
142650142650 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
142651142651 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
142652 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
142652 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
142653142653 .{ .type = .f128, .kind = .mem },
142654142654 .unused,
142655142655 .unused,
......@@ -142683,7 +142683,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
142683142683 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
142684142684 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
142685142685 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
142686 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
142686 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
142687142687 .{ .type = .f128, .kind = .mem },
142688142688 .unused,
142689142689 .unused,
......@@ -142717,7 +142717,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
142717142717 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
142718142718 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
142719142719 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
142720 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
142720 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
142721142721 .{ .type = .f128, .kind = .mem },
142722142722 .unused,
142723142723 .unused,
......@@ -152785,7 +152785,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
152785152785 .extra_temps = .{
152786152786 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
152787152787 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
152788 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
152788 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
152789152789 .unused,
152790152790 .unused,
152791152791 .unused,
......@@ -152817,7 +152817,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
152817152817 .extra_temps = .{
152818152818 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
152819152819 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
152820 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
152820 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
152821152821 .unused,
152822152822 .unused,
152823152823 .unused,
......@@ -152849,7 +152849,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
152849152849 .extra_temps = .{
152850152850 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
152851152851 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
152852 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
152852 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
152853152853 .unused,
152854152854 .unused,
152855152855 .unused,
......@@ -152882,7 +152882,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
152882152882 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
152883152883 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
152884152884 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
152885 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
152885 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
152886152886 .{ .type = .f128, .kind = .mem },
152887152887 .unused,
152888152888 .unused,
......@@ -152916,7 +152916,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
152916152916 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
152917152917 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
152918152918 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
152919 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
152919 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
152920152920 .{ .type = .f128, .kind = .mem },
152921152921 .unused,
152922152922 .unused,
......@@ -152950,7 +152950,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
152950152950 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
152951152951 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
152952152952 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
152953 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
152953 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
152954152954 .{ .type = .f128, .kind = .mem },
152955152955 .unused,
152956152956 .unused,
......@@ -163019,7 +163019,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
163019163019 .extra_temps = .{
163020163020 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
163021163021 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
163022 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
163022 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
163023163023 .unused,
163024163024 .unused,
163025163025 .unused,
......@@ -163051,7 +163051,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
163051163051 .extra_temps = .{
163052163052 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
163053163053 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
163054 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
163054 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
163055163055 .unused,
163056163056 .unused,
163057163057 .unused,
......@@ -163083,7 +163083,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
163083163083 .extra_temps = .{
163084163084 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
163085163085 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
163086 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
163086 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
163087163087 .unused,
163088163088 .unused,
163089163089 .unused,
......@@ -163116,7 +163116,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
163116163116 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
163117163117 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
163118163118 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
163119 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
163119 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
163120163120 .{ .type = .f128, .kind = .mem },
163121163121 .unused,
163122163122 .unused,
......@@ -163150,7 +163150,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
163150163150 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
163151163151 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
163152163152 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
163153 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
163153 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
163154163154 .{ .type = .f128, .kind = .mem },
163155163155 .unused,
163156163156 .unused,
......@@ -163184,7 +163184,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
163184163184 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
163185163185 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
163186163186 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
163187 .{ .type = .usize, .kind = .{ .extern_func = "fminq" } },
163187 .{ .type = .usize, .kind = .{ .extern_func = "fminf128" } },
163188163188 .{ .type = .f128, .kind = .mem },
163189163189 .unused,
163190163190 .unused,
......@@ -164816,7 +164816,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
164816164816 .extra_temps = .{
164817164817 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
164818164818 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
164819 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
164819 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
164820164820 .unused,
164821164821 .unused,
164822164822 .unused,
......@@ -164848,7 +164848,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
164848164848 .extra_temps = .{
164849164849 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
164850164850 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
164851 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
164851 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
164852164852 .unused,
164853164853 .unused,
164854164854 .unused,
......@@ -164880,7 +164880,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
164880164880 .extra_temps = .{
164881164881 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
164882164882 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
164883 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
164883 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
164884164884 .unused,
164885164885 .unused,
164886164886 .unused,
......@@ -164913,7 +164913,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
164913164913 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
164914164914 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
164915164915 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
164916 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
164916 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
164917164917 .{ .type = .f128, .kind = .mem },
164918164918 .unused,
164919164919 .unused,
......@@ -164947,7 +164947,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
164947164947 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
164948164948 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
164949164949 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
164950 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
164950 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
164951164951 .{ .type = .f128, .kind = .mem },
164952164952 .unused,
164953164953 .unused,
......@@ -164981,7 +164981,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
164981164981 .{ .type = .u32, .kind = .{ .rc = .general_purpose } },
164982164982 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
164983164983 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
164984 .{ .type = .usize, .kind = .{ .extern_func = "fmaxq" } },
164984 .{ .type = .usize, .kind = .{ .extern_func = "fmaxf128" } },
164985164985 .{ .type = .f128, .kind = .mem },
164986164986 .unused,
164987164987 .unused,
......@@ -172785,7 +172785,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
172785172785 },
172786172786 .call_frame = .{ .alignment = .@"16" },
172787172787 .extra_temps = .{
172788 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
172788 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
172789172789 .unused,
172790172790 .unused,
172791172791 .unused,
......@@ -172818,7 +172818,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
172818172818 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
172819172819 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
172820172820 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 2, .at = 2 } } },
172821 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
172821 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
172822172822 .unused,
172823172823 .unused,
172824172824 .unused,
......@@ -172852,7 +172852,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
172852172852 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
172853172853 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
172854172854 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 2, .at = 2 } } },
172855 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
172855 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
172856172856 .unused,
172857172857 .unused,
172858172858 .unused,
......@@ -172889,7 +172889,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
172889172889 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
172890172890 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
172891172891 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 2, .at = 2 } } },
172892 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
172892 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
172893172893 .unused,
172894172894 .unused,
172895172895 .unused,
......@@ -172926,7 +172926,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
172926172926 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
172927172927 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 1, .at = 1 } } },
172928172928 .{ .type = .f128, .kind = .{ .param_sse = .{ .cc = .ccc, .after = 2, .at = 2 } } },
172929 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
172929 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
172930172930 .unused,
172931172931 .unused,
172932172932 .unused,
......@@ -172963,7 +172963,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
172963172963 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
172964172964 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
172965172965 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 2, .at = 2 } } },
172966 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
172966 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
172967172967 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
172968172968 .unused,
172969172969 .unused,
......@@ -173000,7 +173000,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
173000173000 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
173001173001 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
173002173002 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 2, .at = 2 } } },
173003 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
173003 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
173004173004 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
173005173005 .unused,
173006173006 .unused,
......@@ -173037,7 +173037,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
173037173037 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 0, .at = 0 } } },
173038173038 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 1, .at = 1 } } },
173039173039 .{ .type = .usize, .kind = .{ .param_gpr = .{ .cc = .ccc, .after = 2, .at = 2 } } },
173040 .{ .type = .usize, .kind = .{ .extern_func = "fmaq" } },
173040 .{ .type = .usize, .kind = .{ .extern_func = "fmaf128" } },
173041173041 .{ .type = .f128, .kind = .{ .ret_sse = .{ .cc = .ccc, .after = 0, .at = 0 } } },
173042173042 .unused,
173043173043 .unused,
src/target.zig+1-1
......@@ -876,7 +876,7 @@ pub fn libcFloatSuffix(float_bits: u16) []const u8 {
876876 32 => "f",
877877 64 => "",
878878 80 => "x", // Non-standard
879 128 => "q", // Non-standard (mimics convention in GCC libquadmath)
879 128 => "f128",
880880 else => unreachable,
881881 };
882882}
stage1/zig.h+1-1
......@@ -3835,7 +3835,7 @@ typedef zig_u128 zig_f80;
38353835#endif
38363836
38373837#define zig_has_f128 1
3838#define zig_libc_name_f128(name) name##q
3838#define zig_libc_name_f128(name) name##f128
38393839#define zig_init_special_f128(sign, name, arg, repr) zig_make_special_f128(sign, name, arg, repr)
38403840#if !zig_f128_has_miscompilations && FLT_MANT_DIG == 113
38413841typedef float zig_f128;
test/behavior/floatop.zig+1
......@@ -381,6 +381,7 @@ test "@sqrt f80/f128/c_longdouble" {
381381 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
382382 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
383383 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
384 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
384385
385386 if (builtin.os.tag == .freebsd) {
386387 // TODO https://github.com/ziglang/zig/issues/10875
test/behavior/x86_64/unary.zig+1-1
......@@ -56,7 +56,7 @@ fn unary(comptime op: anytype, comptime opts: struct {
5656 f32 => libc_name ++ "f",
5757 f64 => libc_name,
5858 f80 => "__" ++ libc_name ++ "x",
59 f128 => libc_name ++ "q",
59 f128 => libc_name ++ "f128",
6060 else => break :libc,
6161 },
6262 .library_name = switch (@import("builtin").object_format) {