disable behavior tests regressed by LLVM 17

See #16844
See #16845
See #16846
See #16848
This commit is contained in:
Andrew Kelley 2023-08-15 17:36:38 -07:00
parent b1b155feac
commit 8219711063
9 changed files with 164 additions and 2 deletions

View File

@ -546,11 +546,15 @@ test "align(N) on functions" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
// This is not supported on MSVC
if (builtin.zig_backend == .stage2_c) {
// https://github.com/ziglang/zig/issues/16845
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_c and builtin.os.tag == .windows) {
// This is not supported on MSVC.
return error.SkipZigTest;
}

View File

@ -243,6 +243,11 @@ test "atomicrmw with ints" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
// https://github.com/ziglang/zig/issues/16846
return error.SkipZigTest;
}
try testAtomicRmwInts();
try comptime testAtomicRmwInts();
}

View File

@ -1157,6 +1157,11 @@ fn foobar(func: PFN_void) !void {
test "cast function with an opaque parameter" {
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c) {
// https://github.com/ziglang/zig/issues/16845
return error.SkipZigTest;
}
const Container = struct {
const Ctx = opaque {};
ctx: *Ctx,

View File

@ -711,6 +711,18 @@ test "@floor f80" {
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
// https://github.com/ziglang/zig/issues/16846
return error.SkipZigTest;
}
try testFloorLegacy(f80, 12.0);
try comptime testFloorLegacy(f80, 12.0);
}
@ -722,6 +734,18 @@ test "@floor f128" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
// https://github.com/ziglang/zig/issues/16848
return error.SkipZigTest;
}
try testFloorLegacy(f128, 12.0);
try comptime testFloorLegacy(f128, 12.0);
}
@ -807,6 +831,13 @@ test "@ceil f80" {
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try testCeilLegacy(f80, 12.0);
try comptime testCeilLegacy(f80, 12.0);
}
@ -818,6 +849,13 @@ test "@ceil f128" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try testCeilLegacy(f128, 12.0);
try comptime testCeilLegacy(f128, 12.0);
}
@ -877,6 +915,11 @@ test "another, possibly redundant, @trunc test" {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
// https://github.com/ziglang/zig/issues/16846
return error.SkipZigTest;
}
try testTruncLegacy(f64, 12.0);
try comptime testTruncLegacy(f64, 12.0);
try testTruncLegacy(f32, 12.0);
@ -919,6 +962,13 @@ test "@trunc f128" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try testTruncLegacy(f128, 12.0);
try comptime testTruncLegacy(f128, 12.0);
}

View File

@ -417,6 +417,11 @@ test "division" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
// https://github.com/ziglang/zig/issues/16846
return error.SkipZigTest;
}
try testDivision();
try comptime testDivision();
}
@ -591,6 +596,11 @@ test "unsigned 64-bit division" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
// https://github.com/ziglang/zig/issues/16846
return error.SkipZigTest;
}
try test_u64_div();
try comptime test_u64_div();
}
@ -1350,6 +1360,13 @@ test "float remainder division using @rem" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try comptime frem(f16);
try comptime frem(f32);
try comptime frem(f64);
@ -1393,6 +1410,13 @@ test "float modulo division using @mod" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try comptime fmod(f16);
try comptime fmod(f32);
try comptime fmod(f64);
@ -1456,6 +1480,13 @@ test "@round f80" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try testRound(f80, 12.0);
try comptime testRound(f80, 12.0);
}
@ -1468,6 +1499,13 @@ test "@round f128" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try testRound(f128, 12.0);
try comptime testRound(f128, 12.0);
}

View File

@ -57,6 +57,18 @@ test "@mulAdd f80" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
// https://github.com/ziglang/zig/issues/16848
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try comptime testMulAdd80();
try testMulAdd80();
}
@ -76,6 +88,18 @@ test "@mulAdd f128" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
// https://github.com/ziglang/zig/issues/16848
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try comptime testMulAdd128();
try testMulAdd128();
}
@ -179,6 +203,13 @@ test "vector f80" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try comptime vector80();
try vector80();
}
@ -204,6 +235,13 @@ test "vector f128" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
try comptime vector128();
try vector128();
}

View File

@ -7,6 +7,16 @@ usingnamespace @import("bar.zig");
test "no clobbering happened" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
// https://github.com/ziglang/zig/issues/16846
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
// https://github.com/ziglang/zig/issues/16848
return error.SkipZigTest;
}
@This().foo_function();
@This().bar_function();
try expect(@This().saw_foo_function);

View File

@ -104,6 +104,13 @@ test "vector float operators" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and
(builtin.cpu.arch == .powerpc64le or builtin.cpu.arch == .aarch64))
{
// https://github.com/ziglang/zig/issues/16844
return error.SkipZigTest;
}
inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
const S = struct {
fn doTheTest() !void {

View File

@ -66,6 +66,11 @@ test "float widening f16 to f128" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isARM()) {
// https://github.com/ziglang/zig/issues/16848
return error.SkipZigTest;
}
var x: f16 = 12.34;
var y: f128 = x;
try expect(x == y);