diff --git a/lib/compiler_rt/cos.zig b/lib/compiler_rt/cos.zig index 3620e31835..0bc02e3294 100644 --- a/lib/compiler_rt/cos.zig +++ b/lib/compiler_rt/cos.zig @@ -173,8 +173,6 @@ pub fn cosq(x: f128) callconv(.c) f128 { pub fn cosl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return cosh(x), - 32 => return cosf(x), 64 => return cos(x), 80 => return cosx(x), 128 => return cosq(x), diff --git a/lib/compiler_rt/exp.zig b/lib/compiler_rt/exp.zig index 3b0e593af0..ce2eadb7f1 100644 --- a/lib/compiler_rt/exp.zig +++ b/lib/compiler_rt/exp.zig @@ -198,8 +198,6 @@ const expq = @import("exp_f128.zig").exp; pub fn expl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __exph(x), - 32 => return expf(x), 64 => return exp(x), 80 => return __expx(x), 128 => return expq(x), diff --git a/lib/compiler_rt/exp2.zig b/lib/compiler_rt/exp2.zig index 94f19bef2c..abcef88107 100644 --- a/lib/compiler_rt/exp2.zig +++ b/lib/compiler_rt/exp2.zig @@ -165,8 +165,6 @@ pub const exp2q = @import("exp_f128.zig").exp2; pub fn exp2l(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __exp2h(x), - 32 => return exp2f(x), 64 => return exp2(x), 80 => return __exp2x(x), 128 => return exp2q(x), diff --git a/lib/compiler_rt/fabs.zig b/lib/compiler_rt/fabs.zig index 8fcf36262a..3e2104da6a 100644 --- a/lib/compiler_rt/fabs.zig +++ b/lib/compiler_rt/fabs.zig @@ -38,8 +38,6 @@ pub fn fabsq(a: f128) callconv(.c) f128 { pub fn fabsl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __fabsh(x), - 32 => return fabsf(x), 64 => return fabs(x), 80 => return __fabsx(x), 128 => return fabsq(x), diff --git a/lib/compiler_rt/fma.zig b/lib/compiler_rt/fma.zig index 10926e9bde..61732585db 100644 --- a/lib/compiler_rt/fma.zig +++ b/lib/compiler_rt/fma.zig @@ -151,8 +151,6 @@ pub fn fmaq(x: f128, y: f128, z: f128) callconv(.c) f128 { pub fn fmal(x: c_longdouble, y: c_longdouble, z: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __fmah(x, y, z), - 32 => return fmaf(x, y, z), 64 => return fma(x, y, z), 80 => return __fmax(x, y, z), 128 => return fmaq(x, y, z), diff --git a/lib/compiler_rt/fmax.zig b/lib/compiler_rt/fmax.zig index 606888d2d4..0afdf9ee2b 100644 --- a/lib/compiler_rt/fmax.zig +++ b/lib/compiler_rt/fmax.zig @@ -39,8 +39,6 @@ pub fn fmaxq(x: f128, y: f128) callconv(.c) f128 { pub fn fmaxl(x: c_longdouble, y: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __fmaxh(x, y), - 32 => return fmaxf(x, y), 64 => return fmax(x, y), 80 => return __fmaxx(x, y), 128 => return fmaxq(x, y), diff --git a/lib/compiler_rt/fmin.zig b/lib/compiler_rt/fmin.zig index bea1779476..60b58cef3a 100644 --- a/lib/compiler_rt/fmin.zig +++ b/lib/compiler_rt/fmin.zig @@ -39,8 +39,6 @@ pub fn fminq(x: f128, y: f128) callconv(.c) f128 { pub fn fminl(x: c_longdouble, y: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __fminh(x, y), - 32 => return fminf(x, y), 64 => return fmin(x, y), 80 => return __fminx(x, y), 128 => return fminq(x, y), diff --git a/lib/compiler_rt/fmod.zig b/lib/compiler_rt/fmod.zig index c2108abf33..0279206f51 100644 --- a/lib/compiler_rt/fmod.zig +++ b/lib/compiler_rt/fmod.zig @@ -251,8 +251,6 @@ pub fn fmodq(a: f128, b: f128) callconv(.c) f128 { pub fn fmodl(a: c_longdouble, b: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __fmodh(a, b), - 32 => return fmodf(a, b), 64 => return fmod(a, b), 80 => return __fmodx(a, b), 128 => return fmodq(a, b), diff --git a/lib/compiler_rt/log.zig b/lib/compiler_rt/log.zig index 926018f03d..fb578c75e9 100644 --- a/lib/compiler_rt/log.zig +++ b/lib/compiler_rt/log.zig @@ -443,8 +443,6 @@ pub fn logq(a: f128) callconv(.c) f128 { pub fn logl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __logh(x), - 32 => return logf(x), 64 => return log(x), 80 => return __logx(x), 128 => return logq(x), diff --git a/lib/compiler_rt/log10.zig b/lib/compiler_rt/log10.zig index ec4edac618..6a3c469815 100644 --- a/lib/compiler_rt/log10.zig +++ b/lib/compiler_rt/log10.zig @@ -177,8 +177,6 @@ pub fn log10q(a: f128) callconv(.c) f128 { pub fn log10l(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __log10h(x), - 32 => return log10f(x), 64 => return log10(x), 80 => return __log10x(x), 128 => return log10q(x), diff --git a/lib/compiler_rt/log2.zig b/lib/compiler_rt/log2.zig index ad17df7f65..d675fb172d 100644 --- a/lib/compiler_rt/log2.zig +++ b/lib/compiler_rt/log2.zig @@ -170,8 +170,6 @@ pub fn log2q(a: f128) callconv(.c) f128 { pub fn log2l(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __log2h(x), - 32 => return log2f(x), 64 => return log2(x), 80 => return __log2x(x), 128 => return log2q(x), diff --git a/lib/compiler_rt/round.zig b/lib/compiler_rt/round.zig index 8087fd6e15..590b957922 100644 --- a/lib/compiler_rt/round.zig +++ b/lib/compiler_rt/round.zig @@ -142,8 +142,6 @@ pub fn roundq(x_: f128) callconv(.c) f128 { pub fn roundl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __roundh(x), - 32 => return roundf(x), 64 => return round(x), 80 => return __roundx(x), 128 => return roundq(x), diff --git a/lib/compiler_rt/sin.zig b/lib/compiler_rt/sin.zig index 3f1509383b..b3e46672ee 100644 --- a/lib/compiler_rt/sin.zig +++ b/lib/compiler_rt/sin.zig @@ -189,8 +189,6 @@ pub fn sinq(x: f128) callconv(.c) f128 { pub fn sinl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return sinh(x), - 32 => return sinf(x), 64 => return sin(x), 80 => return sinx(x), 128 => return sinq(x), diff --git a/lib/compiler_rt/sincos.zig b/lib/compiler_rt/sincos.zig index 7208325c2b..1ec9b81ac0 100644 --- a/lib/compiler_rt/sincos.zig +++ b/lib/compiler_rt/sincos.zig @@ -292,8 +292,6 @@ pub fn sincosq(x: f128, r_sin: *f128, r_cos: *f128) callconv(.c) void { pub fn sincosl(x: c_longdouble, r_sin: *c_longdouble, r_cos: *c_longdouble) callconv(.c) void { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return sincosh(x, r_sin, r_cos), - 32 => return sincosf(x, r_sin, r_cos), 64 => return sincos(x, r_sin, r_cos), 80 => return sincosx(x, r_sin, r_cos), 128 => return sincosq(x, r_sin, r_cos), diff --git a/lib/compiler_rt/sqrt.zig b/lib/compiler_rt/sqrt.zig index e765414fb0..be2f58a12f 100644 --- a/lib/compiler_rt/sqrt.zig +++ b/lib/compiler_rt/sqrt.zig @@ -481,8 +481,6 @@ fn _Qp_sqrt(c: *f128, a: *f128) callconv(.c) void { pub fn sqrtl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __sqrth(x), - 32 => return sqrtf(x), 64 => return sqrt(x), 80 => return __sqrtx(x), 128 => return sqrtq(x), diff --git a/lib/compiler_rt/tan.zig b/lib/compiler_rt/tan.zig index 378491aad6..b9d996d8b9 100644 --- a/lib/compiler_rt/tan.zig +++ b/lib/compiler_rt/tan.zig @@ -164,8 +164,6 @@ pub fn tanq(x: f128) callconv(.c) f128 { pub fn tanl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return tanh(x), - 32 => return tanf(x), 64 => return tan(x), 80 => return tanx(x), 128 => return tanq(x), diff --git a/lib/compiler_rt/trunc.zig b/lib/compiler_rt/trunc.zig index b784630703..aa2eb560df 100644 --- a/lib/compiler_rt/trunc.zig +++ b/lib/compiler_rt/trunc.zig @@ -99,8 +99,6 @@ pub fn truncq(x: f128) callconv(.c) f128 { pub fn truncl(x: c_longdouble) callconv(.c) c_longdouble { switch (@typeInfo(c_longdouble).float.bits) { - 16 => return __trunch(x), - 32 => return truncf(x), 64 => return trunc(x), 80 => return __truncx(x), 128 => return truncq(x), diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 03ca4a772b..57c1779150 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -3049,8 +3049,6 @@ pub fn cTypeByteSize(t: *const Target, c_type: CType) u16 { => @divExact(cTypeBitSize(t, c_type), 8), .longdouble => switch (cTypeBitSize(t, c_type)) { - 16 => 2, - 32 => 4, 64 => 8, 80 => @intCast(std.mem.alignForward(usize, 10, cTypeAlignment(t, .longdouble))), 128 => 16, diff --git a/src/codegen/aarch64/Select.zig b/src/codegen/aarch64/Select.zig index 2bfb3c4a55..4c45bb9667 100644 --- a/src/codegen/aarch64/Select.zig +++ b/src/codegen/aarch64/Select.zig @@ -12381,8 +12381,6 @@ pub const CallAbiIterator = struct { .f128 => .quad, .c_longdouble => switch (zcu.getTarget().cTypeBitSize(.longdouble)) { else => unreachable, - 16 => .half, - 32 => .single, 64 => .double, 80 => null, 128 => .quad, diff --git a/test/behavior/cast.zig b/test/behavior/cast.zig index fcc6d7c6b9..63e6fa1b86 100644 --- a/test/behavior/cast.zig +++ b/test/behavior/cast.zig @@ -1838,8 +1838,6 @@ test "coerce between pointers of compatible differently-named floats" { } const F = switch (@typeInfo(c_longdouble).float.bits) { - 16 => f16, - 32 => f32, 64 => f64, 80 => f80, 128 => f128,