mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
x86_64: implement enough to pass unicode tests
* implement vector comparison * implement reduce for bool vectors * fix `@memcpy` bug * enable passing std tests
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
const std = @import("std.zig");
|
||||
const assert = std.debug.assert;
|
||||
const builtin = @import("builtin");
|
||||
const testing = std.testing;
|
||||
const mem = std.mem;
|
||||
const math = std.math;
|
||||
@@ -177,8 +176,6 @@ const IdAndValue = struct {
|
||||
};
|
||||
|
||||
test "stable sort" {
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
||||
|
||||
const expected = [_]IdAndValue{
|
||||
IdAndValue{ .id = 0, .value = 0 },
|
||||
IdAndValue{ .id = 1, .value = 0 },
|
||||
@@ -226,8 +223,6 @@ test "stable sort" {
|
||||
}
|
||||
|
||||
test "sort" {
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
||||
|
||||
const u8cases = [_][]const []const u8{
|
||||
&[_][]const u8{
|
||||
"",
|
||||
@@ -306,8 +301,6 @@ test "sort" {
|
||||
}
|
||||
|
||||
test "sort descending" {
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
||||
|
||||
const rev_cases = [_][]const []const i32{
|
||||
&[_][]const i32{
|
||||
&[_]i32{},
|
||||
@@ -347,8 +340,6 @@ test "sort descending" {
|
||||
}
|
||||
|
||||
test "sort with context in the middle of a slice" {
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
||||
|
||||
const Context = struct {
|
||||
items: []i32,
|
||||
|
||||
@@ -388,8 +379,6 @@ test "sort with context in the middle of a slice" {
|
||||
}
|
||||
|
||||
test "sort fuzz testing" {
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
||||
|
||||
var prng = std.rand.DefaultPrng.init(0x12345678);
|
||||
const random = prng.random();
|
||||
const test_case_count = 10;
|
||||
|
||||
Reference in New Issue
Block a user