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:
Jacob Young
2023-10-21 19:30:45 -04:00
parent 794dc694b1
commit fe93332ba2
45 changed files with 575 additions and 526 deletions
-11
View File
@@ -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;