Skip to content

Commit 3370d58

Browse files
author
r00ster91
committed
aarch64: reenable tests that are no longer regressed
Closes #12013 Closes #10627 Closes #12027
1 parent 75f8c04 commit 3370d58

File tree

6 files changed

+0
-48
lines changed

6 files changed

+0
-48
lines changed

lib/std/fmt/parse_float.zig

-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ test "fmt.parseFloat" {
7070
}
7171

7272
test "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
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,6 @@ pub fn shl(comptime T: type, a: T, shift_amt: anytype) T {
523523
}
524524

525525
test "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

569565
test "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

614606
test "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

658646
test "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
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ pub fn extract(
191191
}
192192

193193
test "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
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -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);

0 commit comments

Comments
 (0)