| author | |
| committer | |
| log | 1af476d5d8568dac9d62983e3b619877a8fa22ac |
| tree | a879f7ee225f0eda76389c1dd999a3a841d32481 |
| parent | cc022047c338229549d6464098e6e7bff63097b0 |
| signature |
closes https://github.com/ziglang/zig/issues/9660
closes https://github.com/ziglang/zig/issues/21050
closes https://github.com/ziglang/zig/issues/21090
closes https://github.com/ziglang/zig/issues/2109114 files changed, 6 insertions(+), 71 deletions(-)
test/behavior/align.zig-1| ... | @@ -317,7 +317,6 @@ test "@alignCast functions" { | ... | @@ -317,7 +317,6 @@ test "@alignCast functions" { |
| 317 | 317 | ||
| 318 | // function alignment is a compile error on wasm | 318 | // function alignment is a compile error on wasm |
| 319 | if (native_arch.isWasm()) return error.SkipZigTest; | 319 | if (native_arch.isWasm()) return error.SkipZigTest; |
| 320 | if (native_arch.isThumb()) return error.SkipZigTest; | ||
| 321 | 320 | ||
| 322 | try expect(fnExpectsOnly1(simple4) == 0x19); | 321 | try expect(fnExpectsOnly1(simple4) == 0x19); |
| 323 | } | 322 | } |
test/behavior/asm.zig+1-4| ... | @@ -246,12 +246,9 @@ test "extern output types (x86_64)" { | ... | @@ -246,12 +246,9 @@ test "extern output types (x86_64)" { |
| 246 | } | 246 | } |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | test "riscv abi register aliases as clobbers" { | 249 | test "abi register aliases as clobbers (RISC-V)" { |
| 250 | if (!builtin.target.cpu.arch.isRISCV()) return error.SkipZigTest; | 250 | if (!builtin.target.cpu.arch.isRISCV()) return error.SkipZigTest; |
| 251 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 251 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 252 | if (builtin.zig_backend == .stage2_c and builtin.os.tag == .windows) return error.SkipZigTest; | ||
| 253 | |||
| 254 | if (!comptime builtin.cpu.arch.isRISCV()) return error.SkipZigTest; | ||
| 255 | 252 | ||
| 256 | // Verify that ABI alias names are accepted as clobbers for RISC-V. | 253 | // Verify that ABI alias names are accepted as clobbers for RISC-V. |
| 257 | asm volatile ("" ::: .{ .ra = true, .sp = true, .gp = true, .tp = true }); | 254 | asm volatile ("" ::: .{ .ra = true, .sp = true, .gp = true, .tp = true }); |
test/behavior/basic.zig+1-5| ... | @@ -1407,11 +1407,7 @@ test "allocation and looping over 3-byte integer" { | ... | @@ -1407,11 +1407,7 @@ test "allocation and looping over 3-byte integer" { |
| 1407 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1407 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1408 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 1408 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1409 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1409 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1410 | 1410 | if (builtin.zig_backend == .stage2_llvm and builtin.os.tag.isDarwin()) return error.SkipZigTest; // TODO | |
| 1411 | if (builtin.zig_backend == .stage2_llvm and builtin.os.tag.isDarwin()) { | ||
| 1412 | return error.SkipZigTest; // TODO | ||
| 1413 | } | ||
| 1414 | if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // TODO | ||
| 1415 | 1411 | ||
| 1416 | try expect(@sizeOf(u24) == 4); | 1412 | try expect(@sizeOf(u24) == 4); |
| 1417 | try expect(@sizeOf([1]u24) == 4); | 1413 | try expect(@sizeOf([1]u24) == 4); |
test/behavior/field_parent_ptr.zig-1| ... | @@ -1757,7 +1757,6 @@ test "@fieldParentPtr packed union" { | ... | @@ -1757,7 +1757,6 @@ test "@fieldParentPtr packed union" { |
| 1757 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 1757 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1758 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1758 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1759 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 1759 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 1760 | if (builtin.target.cpu.arch.endian() == .big) return error.SkipZigTest; // TODO | ||
| 1761 | 1760 | ||
| 1762 | const C = packed union { | 1761 | const C = packed union { |
| 1763 | a: packed struct(u32) { | 1762 | a: packed struct(u32) { |
test/behavior/floatop.zig+4-10| ... | @@ -136,7 +136,6 @@ test "cmp f32" { | ... | @@ -136,7 +136,6 @@ test "cmp f32" { |
| 136 | test "cmp f64" { | 136 | test "cmp f64" { |
| 137 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 137 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 138 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 138 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 139 | if (builtin.cpu.arch.isArm() and builtin.target.abi.float() == .soft) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21234 | ||
| 140 | 139 | ||
| 141 | try testCmp(f64); | 140 | try testCmp(f64); |
| 142 | try comptime testCmp(f64); | 141 | try comptime testCmp(f64); |
| ... | @@ -155,7 +154,6 @@ test "cmp f128" { | ... | @@ -155,7 +154,6 @@ test "cmp f128" { |
| 155 | test "cmp f80/c_longdouble" { | 154 | test "cmp f80/c_longdouble" { |
| 156 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 155 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 157 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; | 156 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 158 | if (builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 159 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 157 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 160 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 158 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 161 | 159 | ||
| ... | @@ -223,8 +221,7 @@ test "vector cmp f16" { | ... | @@ -223,8 +221,7 @@ test "vector cmp f16" { |
| 223 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 221 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 224 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 222 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 225 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 223 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 226 | if (builtin.cpu.arch.isArm()) return error.SkipZigTest; | 224 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 227 | if (builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; | ||
| 228 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; | 225 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; |
| 229 | 226 | ||
| 230 | try testCmpVector(f16); | 227 | try testCmpVector(f16); |
| ... | @@ -236,8 +233,8 @@ test "vector cmp f32" { | ... | @@ -236,8 +233,8 @@ test "vector cmp f32" { |
| 236 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 233 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 237 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 234 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 238 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 235 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 239 | if (builtin.cpu.arch.isArm()) return error.SkipZigTest; | 236 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 240 | if (builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; | 237 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; |
| 241 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; | 238 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; |
| 242 | 239 | ||
| 243 | try testCmpVector(f32); | 240 | try testCmpVector(f32); |
| ... | @@ -248,8 +245,6 @@ test "vector cmp f64" { | ... | @@ -248,8 +245,6 @@ test "vector cmp f64" { |
| 248 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 245 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 249 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 246 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 250 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 247 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 251 | if (builtin.cpu.arch.isArm()) return error.SkipZigTest; | ||
| 252 | if (builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; | ||
| 253 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; | 248 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; |
| 254 | 249 | ||
| 255 | try testCmpVector(f64); | 250 | try testCmpVector(f64); |
| ... | @@ -262,8 +257,7 @@ test "vector cmp f128" { | ... | @@ -262,8 +257,7 @@ test "vector cmp f128" { |
| 262 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; | 257 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 263 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 258 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 264 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 259 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 265 | if (builtin.cpu.arch.isArm()) return error.SkipZigTest; | 260 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .powerpc64le) return error.SkipZigTest; |
| 266 | if (builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; | ||
| 267 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; | 261 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest; |
| 268 | 262 | ||
| 269 | try testCmpVector(f128); | 263 | try testCmpVector(f128); |
test/behavior/generics.zig-4| ... | @@ -305,8 +305,6 @@ test "generic function instantiation non-duplicates" { | ... | @@ -305,8 +305,6 @@ test "generic function instantiation non-duplicates" { |
| 305 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 305 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 306 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 306 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 307 | 307 | ||
| 308 | if (builtin.os.tag == .wasi) return error.SkipZigTest; | ||
| 309 | |||
| 310 | const S = struct { | 308 | const S = struct { |
| 311 | fn copy(comptime T: type, dest: []T, source: []const T) void { | 309 | fn copy(comptime T: type, dest: []T, source: []const T) void { |
| 312 | @export(&foo, .{ .name = "test_generic_instantiation_non_dupe" }); | 310 | @export(&foo, .{ .name = "test_generic_instantiation_non_dupe" }); |
| ... | @@ -323,8 +321,6 @@ test "generic function instantiation non-duplicates" { | ... | @@ -323,8 +321,6 @@ test "generic function instantiation non-duplicates" { |
| 323 | test "generic instantiation of tagged union with only one field" { | 321 | test "generic instantiation of tagged union with only one field" { |
| 324 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 322 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 325 | 323 | ||
| 326 | if (builtin.os.tag == .wasi) return error.SkipZigTest; | ||
| 327 | |||
| 328 | const S = struct { | 324 | const S = struct { |
| 329 | const U = union(enum) { | 325 | const U = union(enum) { |
| 330 | s: []const u8, | 326 | s: []const u8, |
test/behavior/math.zig-2| ... | @@ -2425,7 +2425,6 @@ test "runtime comparison to NaN is comptime-known" { | ... | @@ -2425,7 +2425,6 @@ test "runtime comparison to NaN is comptime-known" { |
| 2425 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2425 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2426 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 2426 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 2427 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 2427 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 2428 | if (builtin.cpu.arch.isArm() and builtin.target.abi.float() == .soft) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21234 | ||
| 2429 | 2428 | ||
| 2430 | const S = struct { | 2429 | const S = struct { |
| 2431 | fn doTheTest(comptime F: type, x: F) void { | 2430 | fn doTheTest(comptime F: type, x: F) void { |
| ... | @@ -2454,7 +2453,6 @@ test "runtime int comparison to inf is comptime-known" { | ... | @@ -2454,7 +2453,6 @@ test "runtime int comparison to inf is comptime-known" { |
| 2454 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2453 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2455 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 2454 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 2456 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 2455 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 2457 | if (builtin.cpu.arch.isArm() and builtin.target.abi.float() == .soft) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21234 | ||
| 2458 | 2456 | ||
| 2459 | const S = struct { | 2457 | const S = struct { |
| 2460 | fn doTheTest(comptime F: type, x: u32) void { | 2458 | fn doTheTest(comptime F: type, x: u32) void { |
test/behavior/maximum_minimum.zig-2| ... | @@ -138,8 +138,6 @@ test "@min/max for floats" { | ... | @@ -138,8 +138,6 @@ test "@min/max for floats" { |
| 138 | }; | 138 | }; |
| 139 | 139 | ||
| 140 | inline for (.{ f16, f32, f64, f80, f128, c_longdouble }) |T| { | 140 | inline for (.{ f16, f32, f64, f80, f128, c_longdouble }) |T| { |
| 141 | if (T == c_longdouble and builtin.cpu.arch.isMIPS64()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21090 | ||
| 142 | |||
| 143 | try S.doTheTest(T); | 141 | try S.doTheTest(T); |
| 144 | try comptime S.doTheTest(T); | 142 | try comptime S.doTheTest(T); |
| 145 | } | 143 | } |
test/behavior/packed-struct.zig-1| ... | @@ -1196,7 +1196,6 @@ test "packed struct with signed field" { | ... | @@ -1196,7 +1196,6 @@ test "packed struct with signed field" { |
| 1196 | 1196 | ||
| 1197 | test "assign packed struct initialized with RLS to packed struct literal field" { | 1197 | test "assign packed struct initialized with RLS to packed struct literal field" { |
| 1198 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 1198 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 1199 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isWasm()) return error.SkipZigTest; | ||
| 1200 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1199 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1201 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 1200 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1202 | 1201 |
test/behavior/saturating_arithmetic.zig-10| ... | @@ -147,11 +147,6 @@ test "saturating multiplication <= 32 bits" { | ... | @@ -147,11 +147,6 @@ test "saturating multiplication <= 32 bits" { |
| 147 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; | 147 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 148 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 148 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 149 | 149 | ||
| 150 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isWasm()) { | ||
| 151 | // https://github.com/ziglang/zig/issues/9660 | ||
| 152 | return error.SkipZigTest; | ||
| 153 | } | ||
| 154 | |||
| 155 | try testSatMul(u8, 0, maxInt(u8), 0); | 150 | try testSatMul(u8, 0, maxInt(u8), 0); |
| 156 | try testSatMul(u8, 1 << 7, 1 << 7, maxInt(u8)); | 151 | try testSatMul(u8, 1 << 7, 1 << 7, maxInt(u8)); |
| 157 | try testSatMul(u8, maxInt(u8) - 1, 2, maxInt(u8)); | 152 | try testSatMul(u8, maxInt(u8) - 1, 2, maxInt(u8)); |
| ... | @@ -246,11 +241,6 @@ test "saturating multiplication" { | ... | @@ -246,11 +241,6 @@ test "saturating multiplication" { |
| 246 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; | 241 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 247 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 242 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 248 | 243 | ||
| 249 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isWasm()) { | ||
| 250 | // https://github.com/ziglang/zig/issues/9660 | ||
| 251 | return error.SkipZigTest; | ||
| 252 | } | ||
| 253 | |||
| 254 | const S = struct { | 244 | const S = struct { |
| 255 | fn doTheTest() !void { | 245 | fn doTheTest() !void { |
| 256 | try testSatMul(i8, -3, 10, -30); | 246 | try testSatMul(i8, -3, 10, -30); |
test/behavior/struct.zig-2| ... | @@ -404,7 +404,6 @@ test "packed struct 24bits" { | ... | @@ -404,7 +404,6 @@ test "packed struct 24bits" { |
| 404 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 404 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 405 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 405 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 406 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 406 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 407 | if (builtin.cpu.arch.isArm()) return error.SkipZigTest; // TODO | ||
| 408 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 407 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 409 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO | 408 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO |
| 410 | 409 | ||
| ... | @@ -921,7 +920,6 @@ test "tuple assigned to variable" { | ... | @@ -921,7 +920,6 @@ test "tuple assigned to variable" { |
| 921 | 920 | ||
| 922 | test "comptime struct field" { | 921 | test "comptime struct field" { |
| 923 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 922 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 924 | if (builtin.cpu.arch.isArm()) return error.SkipZigTest; // TODO | ||
| 925 | 923 | ||
| 926 | const T = struct { | 924 | const T = struct { |
| 927 | a: i32, | 925 | a: i32, |
test/behavior/union.zig-3| ... | @@ -1592,7 +1592,6 @@ test "memset packed union" { | ... | @@ -1592,7 +1592,6 @@ test "memset packed union" { |
| 1592 | 1592 | ||
| 1593 | try comptime S.doTheTest(); | 1593 | try comptime S.doTheTest(); |
| 1594 | 1594 | ||
| 1595 | if (builtin.cpu.arch.isWasm()) return error.SkipZigTest; // TODO | ||
| 1596 | try S.doTheTest(); | 1595 | try S.doTheTest(); |
| 1597 | } | 1596 | } |
| 1598 | 1597 | ||
| ... | @@ -1750,8 +1749,6 @@ test "reinterpret packed union" { | ... | @@ -1750,8 +1749,6 @@ test "reinterpret packed union" { |
| 1750 | try comptime S.doTheTest(); | 1749 | try comptime S.doTheTest(); |
| 1751 | 1750 | ||
| 1752 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 1751 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 1753 | if (builtin.cpu.arch.isWasm()) return error.SkipZigTest; // TODO | ||
| 1754 | if (builtin.cpu.arch.endian() == .big) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21050 | ||
| 1755 | try S.doTheTest(); | 1752 | try S.doTheTest(); |
| 1756 | } | 1753 | } |
| 1757 | 1754 |
test/behavior/vector.zig-23| ... | @@ -7,7 +7,6 @@ const expect = std.testing.expect; | ... | @@ -7,7 +7,6 @@ const expect = std.testing.expect; |
| 7 | const expectEqual = std.testing.expectEqual; | 7 | const expectEqual = std.testing.expectEqual; |
| 8 | 8 | ||
| 9 | test "implicit cast vector to array - bool" { | 9 | test "implicit cast vector to array - bool" { |
| 10 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 11 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 10 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 12 | 11 | ||
| 13 | const S = struct { | 12 | const S = struct { |
| ... | @@ -622,11 +621,6 @@ test "vector bitwise not operator" { | ... | @@ -622,11 +621,6 @@ test "vector bitwise not operator" { |
| 622 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 621 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 623 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 622 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 624 | 623 | ||
| 625 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) { | ||
| 626 | // https://github.com/ziglang/zig/issues/24061 | ||
| 627 | return error.SkipZigTest; | ||
| 628 | } | ||
| 629 | |||
| 630 | const S = struct { | 624 | const S = struct { |
| 631 | fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void { | 625 | fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void { |
| 632 | const y = ~x; | 626 | const y = ~x; |
| ... | @@ -660,11 +654,6 @@ test "vector boolean not operator" { | ... | @@ -660,11 +654,6 @@ test "vector boolean not operator" { |
| 660 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 654 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 661 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 655 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 662 | 656 | ||
| 663 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) { | ||
| 664 | // https://github.com/ziglang/zig/issues/24061 | ||
| 665 | return error.SkipZigTest; | ||
| 666 | } | ||
| 667 | |||
| 668 | const S = struct { | 657 | const S = struct { |
| 669 | fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void { | 658 | fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void { |
| 670 | const y = !x; | 659 | const y = !x; |
| ... | @@ -759,7 +748,6 @@ test "vector reduce operation" { | ... | @@ -759,7 +748,6 @@ test "vector reduce operation" { |
| 759 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 748 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 760 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; | 749 | if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest; |
| 761 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 750 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 762 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS64()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21091 | ||
| 763 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isSPARC()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23719 | 751 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isSPARC()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23719 |
| 764 | 752 | ||
| 765 | const S = struct { | 753 | const S = struct { |
| ... | @@ -1096,9 +1084,6 @@ test "saturating multiplication" { | ... | @@ -1096,9 +1084,6 @@ test "saturating multiplication" { |
| 1096 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 1084 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1097 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1085 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1098 | 1086 | ||
| 1099 | // TODO: once #9660 has been solved, remove this line | ||
| 1100 | if (builtin.target.cpu.arch.isWasm()) return error.SkipZigTest; | ||
| 1101 | |||
| 1102 | const S = struct { | 1087 | const S = struct { |
| 1103 | fn doTheTest() !void { | 1088 | fn doTheTest() !void { |
| 1104 | // Broken out to avoid https://github.com/ziglang/zig/issues/11251 | 1089 | // Broken out to avoid https://github.com/ziglang/zig/issues/11251 |
| ... | @@ -1165,7 +1150,6 @@ test "@addWithOverflow" { | ... | @@ -1165,7 +1150,6 @@ test "@addWithOverflow" { |
| 1165 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1150 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1166 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1151 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1167 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 1152 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1168 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1169 | 1153 | ||
| 1170 | const S = struct { | 1154 | const S = struct { |
| 1171 | fn doTheTest() !void { | 1155 | fn doTheTest() !void { |
| ... | @@ -1213,7 +1197,6 @@ test "@subWithOverflow" { | ... | @@ -1213,7 +1197,6 @@ test "@subWithOverflow" { |
| 1213 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1197 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1214 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1198 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1215 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 1199 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 1216 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1217 | 1200 | ||
| 1218 | const S = struct { | 1201 | const S = struct { |
| 1219 | fn doTheTest() !void { | 1202 | fn doTheTest() !void { |
| ... | @@ -1244,7 +1227,6 @@ test "@mulWithOverflow" { | ... | @@ -1244,7 +1227,6 @@ test "@mulWithOverflow" { |
| 1244 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 1227 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1245 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1228 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1246 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1229 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1247 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1248 | 1230 | ||
| 1249 | const S = struct { | 1231 | const S = struct { |
| 1250 | fn doTheTest() !void { | 1232 | fn doTheTest() !void { |
| ... | @@ -1265,7 +1247,6 @@ test "@shlWithOverflow" { | ... | @@ -1265,7 +1247,6 @@ test "@shlWithOverflow" { |
| 1265 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 1247 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1266 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1248 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1267 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1249 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1268 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1269 | 1250 | ||
| 1270 | const S = struct { | 1251 | const S = struct { |
| 1271 | fn doTheTest() !void { | 1252 | fn doTheTest() !void { |
| ... | @@ -1347,7 +1328,6 @@ test "byte vector initialized in inline function" { | ... | @@ -1347,7 +1328,6 @@ test "byte vector initialized in inline function" { |
| 1347 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 1328 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1348 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1329 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1349 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1330 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1350 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1351 | if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | 1331 | if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; |
| 1352 | 1332 | ||
| 1353 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .x86_64 and comptime builtin.cpu.has(.x86, .avx512f)) { | 1333 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .x86_64 and comptime builtin.cpu.has(.x86, .avx512f)) { |
| ... | @@ -1463,7 +1443,6 @@ test "store packed vector element" { | ... | @@ -1463,7 +1443,6 @@ test "store packed vector element" { |
| 1463 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1443 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1464 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 1444 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 1465 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1445 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1466 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1467 | 1446 | ||
| 1468 | var v = @Vector(4, u1){ 1, 1, 1, 1 }; | 1447 | var v = @Vector(4, u1){ 1, 1, 1, 1 }; |
| 1469 | try expectEqual(@Vector(4, u1){ 1, 1, 1, 1 }, v); | 1448 | try expectEqual(@Vector(4, u1){ 1, 1, 1, 1 }, v); |
| ... | @@ -1496,7 +1475,6 @@ test "store vector with memset" { | ... | @@ -1496,7 +1475,6 @@ test "store vector with memset" { |
| 1496 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; // TODO | 1475 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; // TODO |
| 1497 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 1476 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 1498 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 1477 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 1499 | if (builtin.cpu.arch == .aarch64_be and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | ||
| 1500 | 1478 | ||
| 1501 | var a: [5]@Vector(2, i1) = undefined; | 1479 | var a: [5]@Vector(2, i1) = undefined; |
| 1502 | var b: [5]@Vector(2, u2) = undefined; | 1480 | var b: [5]@Vector(2, u2) = undefined; |
| ... | @@ -1596,7 +1574,6 @@ test "bitcast to vector with different child type" { | ... | @@ -1596,7 +1574,6 @@ test "bitcast to vector with different child type" { |
| 1596 | } | 1574 | } |
| 1597 | }; | 1575 | }; |
| 1598 | 1576 | ||
| 1599 | // Originally reported at https://github.com/ziglang/zig/issues/8184 | ||
| 1600 | try S.doTheTest(); | 1577 | try S.doTheTest(); |
| 1601 | try comptime S.doTheTest(); | 1578 | try comptime S.doTheTest(); |
| 1602 | } | 1579 | } |
test/behavior/wrapping_arithmetic.zig-3| ... | @@ -82,9 +82,6 @@ test "wrapping multiplication" { | ... | @@ -82,9 +82,6 @@ test "wrapping multiplication" { |
| 82 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; | 82 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; |
| 83 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | 83 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; |
| 84 | 84 | ||
| 85 | // TODO: once #9660 has been solved, remove this line | ||
| 86 | if (builtin.cpu.arch.isWasm()) return error.SkipZigTest; | ||
| 87 | |||
| 88 | const S = struct { | 85 | const S = struct { |
| 89 | fn doTheTest() !void { | 86 | fn doTheTest() !void { |
| 90 | try testWrapMul(i8, -3, 10, -30); | 87 | try testWrapMul(i8, -3, 10, -30); |