Reapply "Merge pull request #17824 from kcbanner/fixup_msvc_fmax"

This reverts commit 2b58978360.
This commit is contained in:
Jacob Young
2024-01-02 07:57:36 -05:00
parent ca4ee9ae73
commit 98b633ff17
7 changed files with 187 additions and 94 deletions

View File

@@ -1266,6 +1266,7 @@ pub fn lerp(a: anytype, b: anytype, t: anytype) @TypeOf(a, b, t) {
}
test "lerp" {
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/17884
if (builtin.zig_backend == .stage2_x86_64 and
!comptime std.Target.x86.featureSetHas(builtin.cpu.features, .fma)) return error.SkipZigTest;