authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-12-07 18:04:42+01:00
committergravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-12-10 12:34:34+01:00
log3370d58956ecc744a004dff47b0437473f0ef7da
tree59a199f36315d8def6a80012c073e5ef75b9658d
parent75f8c04d6d8f7c0fafabad81ab8f1bf3e9377889

aarch64: reenable tests that are no longer regressed

Closes #12013 Closes #10627 Closes #12027

6 files changed, 0 insertions(+), 48 deletions(-)

lib/std/fmt/parse_float.zig-5
......@@ -70,11 +70,6 @@ test "fmt.parseFloat" {
7070}
7171
7272test "fmt.parseFloat nan and inf" {
73 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
74 // https://github.com/ziglang/zig/issues/12027
75 return error.SkipZigTest;
76 }
77
7873 inline for ([_]type{ f16, f32, f64, f128 }) |T| {
7974 const Z = std.meta.Int(.unsigned, @typeInfo(T).Float.bits);
8075
lib/std/math.zig-16
......@@ -523,10 +523,6 @@ pub fn shl(comptime T: type, a: T, shift_amt: anytype) T {
523523}
524524
525525test "shl" {
526 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
527 // https://github.com/ziglang/zig/issues/12012
528 return error.SkipZigTest;
529 }
530526 try testing.expect(shl(u8, 0b11111111, @as(usize, 3)) == 0b11111000);
531527 try testing.expect(shl(u8, 0b11111111, @as(usize, 8)) == 0);
532528 try testing.expect(shl(u8, 0b11111111, @as(usize, 9)) == 0);
......@@ -567,10 +563,6 @@ pub fn shr(comptime T: type, a: T, shift_amt: anytype) T {
567563}
568564
569565test "shr" {
570 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
571 // https://github.com/ziglang/zig/issues/12012
572 return error.SkipZigTest;
573 }
574566 try testing.expect(shr(u8, 0b11111111, @as(usize, 3)) == 0b00011111);
575567 try testing.expect(shr(u8, 0b11111111, @as(usize, 8)) == 0);
576568 try testing.expect(shr(u8, 0b11111111, @as(usize, 9)) == 0);
......@@ -612,10 +604,6 @@ pub fn rotr(comptime T: type, x: T, r: anytype) T {
612604}
613605
614606test "rotr" {
615 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
616 // https://github.com/ziglang/zig/issues/12012
617 return error.SkipZigTest;
618 }
619607 try testing.expect(rotr(u0, 0b0, @as(usize, 3)) == 0b0);
620608 try testing.expect(rotr(u5, 0b00001, @as(usize, 0)) == 0b00001);
621609 try testing.expect(rotr(u6, 0b000001, @as(usize, 7)) == 0b100000);
......@@ -656,10 +644,6 @@ pub fn rotl(comptime T: type, x: T, r: anytype) T {
656644}
657645
658646test "rotl" {
659 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
660 // https://github.com/ziglang/zig/issues/12012
661 return error.SkipZigTest;
662 }
663647 try testing.expect(rotl(u0, 0b0, @as(usize, 3)) == 0b0);
664648 try testing.expect(rotl(u5, 0b00001, @as(usize, 0)) == 0b00001);
665649 try testing.expect(rotl(u6, 0b000001, @as(usize, 7)) == 0b000010);
lib/std/simd.zig-4
......@@ -191,10 +191,6 @@ pub fn extract(
191191}
192192
193193test "vector patterns" {
194 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
195 // https://github.com/ziglang/zig/issues/12012
196 return error.SkipZigTest;
197 }
198194 const base = @Vector(4, u32){ 10, 20, 30, 40 };
199195 const other_base = @Vector(4, u32){ 55, 66, 77, 88 };
200196
test/behavior/atomics.zig-11
......@@ -151,11 +151,6 @@ test "cmpxchg on a global variable" {
151151 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
152152 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
153153
154 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
155 // https://github.com/ziglang/zig/issues/10627
156 return error.SkipZigTest;
157 }
158
159154 _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic);
160155 try expect(a_global_variable == 42);
161156}
......@@ -218,12 +213,6 @@ test "atomicrmw with floats" {
218213 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
219214 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
220215
221 if ((builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_c) and
222 builtin.cpu.arch == .aarch64)
223 {
224 // https://github.com/ziglang/zig/issues/10627
225 return error.SkipZigTest;
226 }
227216 try testAtomicRmwFloat();
228217 comptime try testAtomicRmwFloat();
229218}
test/behavior/math.zig-6
......@@ -161,12 +161,6 @@ test "@ctz vectors" {
161161 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
162162 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
163163
164 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
165 // This regressed with LLVM 14:
166 // https://github.com/ziglang/zig/issues/12013
167 return error.SkipZigTest;
168 }
169
170164 try testCtzVectors();
171165 comptime try testCtzVectors();
172166}
test/behavior/vector.zig-6
......@@ -174,12 +174,6 @@ test "tuple to vector" {
174174 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
175175 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
176176
177 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
178 // Regressed with LLVM 14:
179 // https://github.com/ziglang/zig/issues/12012
180 return error.SkipZigTest;
181 }
182
183177 const S = struct {
184178 fn doTheTest() !void {
185179 const Vec3 = @Vector(3, i32);