| author | |
| committer | |
| log | 399da543e54a439b0bae396dadfb77bc339069d4 |
| tree | 3f4901b3bc0b5c616107db728fe3e19171f3297e |
| parent | 8facd99d41b1290f9b29ec22c9dcce680d972810 |
| parent | 12f56b874015be2b10ce3a279f146cba5d61c9f7 |
| signature |
4 files changed, 12 insertions(+), 0 deletions(-)
lib/compiler_rt/sqrt.zig+6| ... | @@ -13,6 +13,8 @@ comptime { | ... | @@ -13,6 +13,8 @@ comptime { |
| 13 | @export(&__sqrtx, .{ .name = "__sqrtx", .linkage = common.linkage, .visibility = common.visibility }); | 13 | @export(&__sqrtx, .{ .name = "__sqrtx", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | if (common.want_ppc_abi) { | 14 | if (common.want_ppc_abi) { |
| 15 | @export(&sqrtq, .{ .name = "sqrtf128", .linkage = common.linkage, .visibility = common.visibility }); | 15 | @export(&sqrtq, .{ .name = "sqrtf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } else if (common.want_sparc_abi) { | ||
| 17 | @export(&_Qp_sqrt, .{ .name = "_Qp_sqrt", .linkage = common.linkage, .visibility = common.visibility }); | ||
| 16 | } | 18 | } |
| 17 | @export(&sqrtq, .{ .name = "sqrtq", .linkage = common.linkage, .visibility = common.visibility }); | 19 | @export(&sqrtq, .{ .name = "sqrtq", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(&sqrtl, .{ .name = "sqrtl", .linkage = common.linkage, .visibility = common.visibility }); | 20 | @export(&sqrtl, .{ .name = "sqrtl", .linkage = common.linkage, .visibility = common.visibility }); |
| ... | @@ -242,6 +244,10 @@ pub fn sqrtq(x: f128) callconv(.c) f128 { | ... | @@ -242,6 +244,10 @@ pub fn sqrtq(x: f128) callconv(.c) f128 { |
| 242 | return sqrt(@floatCast(x)); | 244 | return sqrt(@floatCast(x)); |
| 243 | } | 245 | } |
| 244 | 246 | ||
| 247 | fn _Qp_sqrt(c: *f128, a: *f128) callconv(.c) void { | ||
| 248 | c.* = sqrt(@floatCast(a.*)); | ||
| 249 | } | ||
| 250 | |||
| 245 | pub fn sqrtl(x: c_longdouble) callconv(.c) c_longdouble { | 251 | pub fn sqrtl(x: c_longdouble) callconv(.c) c_longdouble { |
| 246 | switch (@typeInfo(c_longdouble).float.bits) { | 252 | switch (@typeInfo(c_longdouble).float.bits) { |
| 247 | 16 => return __sqrth(x), | 253 | 16 => return __sqrth(x), |
lib/std/os/linux/sparc64.zig+1| ... | @@ -304,6 +304,7 @@ pub const msghdr_const = extern struct { | ... | @@ -304,6 +304,7 @@ pub const msghdr_const = extern struct { |
| 304 | 304 | ||
| 305 | pub const off_t = i64; | 305 | pub const off_t = i64; |
| 306 | pub const ino_t = u64; | 306 | pub const ino_t = u64; |
| 307 | pub const time_t = isize; | ||
| 307 | pub const mode_t = u32; | 308 | pub const mode_t = u32; |
| 308 | pub const dev_t = usize; | 309 | pub const dev_t = usize; |
| 309 | pub const nlink_t = u32; | 310 | pub const nlink_t = u32; |
test/behavior/var_args.zig+4| ... | @@ -106,6 +106,7 @@ test "simple variadic function" { | ... | @@ -106,6 +106,7 @@ test "simple variadic function" { |
| 106 | } | 106 | } |
| 107 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO | 107 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO |
| 108 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 | 108 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 |
| 109 | if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718 | ||
| 109 | 110 | ||
| 110 | const S = struct { | 111 | const S = struct { |
| 111 | fn simple(...) callconv(.c) c_int { | 112 | fn simple(...) callconv(.c) c_int { |
| ... | @@ -200,6 +201,7 @@ test "variadic functions" { | ... | @@ -200,6 +201,7 @@ test "variadic functions" { |
| 200 | } | 201 | } |
| 201 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO | 202 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO |
| 202 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 | 203 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 |
| 204 | if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718 | ||
| 203 | 205 | ||
| 204 | const S = struct { | 206 | const S = struct { |
| 205 | fn printf(list_ptr: *std.ArrayList(u8), format: [*:0]const u8, ...) callconv(.c) void { | 207 | fn printf(list_ptr: *std.ArrayList(u8), format: [*:0]const u8, ...) callconv(.c) void { |
| ... | @@ -245,6 +247,7 @@ test "copy VaList" { | ... | @@ -245,6 +247,7 @@ test "copy VaList" { |
| 245 | } | 247 | } |
| 246 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO | 248 | if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO |
| 247 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 | 249 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 |
| 250 | if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718 | ||
| 248 | 251 | ||
| 249 | const S = struct { | 252 | const S = struct { |
| 250 | fn add(count: c_int, ...) callconv(.c) c_int { | 253 | fn add(count: c_int, ...) callconv(.c) c_int { |
| ... | @@ -282,6 +285,7 @@ test "unused VaList arg" { | ... | @@ -282,6 +285,7 @@ test "unused VaList arg" { |
| 282 | return error.SkipZigTest; // TODO | 285 | return error.SkipZigTest; // TODO |
| 283 | } | 286 | } |
| 284 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 | 287 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350 |
| 288 | if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718 | ||
| 285 | 289 | ||
| 286 | const S = struct { | 290 | const S = struct { |
| 287 | fn thirdArg(dummy: c_int, ...) callconv(.c) c_int { | 291 | fn thirdArg(dummy: c_int, ...) callconv(.c) c_int { |
test/behavior/vector.zig+1| ... | @@ -765,6 +765,7 @@ test "vector reduce operation" { | ... | @@ -765,6 +765,7 @@ test "vector reduce operation" { |
| 765 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; | 765 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 766 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 766 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 767 | if (builtin.cpu.arch.isMIPS64()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21091 | 767 | if (builtin.cpu.arch.isMIPS64()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21091 |
| 768 | if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23719 | ||
| 768 | 769 | ||
| 769 | const S = struct { | 770 | const S = struct { |
| 770 | fn testReduce(comptime op: std.builtin.ReduceOp, x: anytype, expected: anytype) !void { | 771 | fn testReduce(comptime op: std.builtin.ReduceOp, x: anytype, expected: anytype) !void { |