aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-09-30 22:11:51 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-10-01 15:09:52 -0400
commitfbe5bf469e17ffd57b34762fd0206587f5758a52 (patch)
treee657e3c79c1e9ea76daa7d388bdd55340ebc6d7d /test/behavior/math.zig
parent1eb023908d50e601f68f2200c3cf126ca3035167 (diff)
downloadzig-fbe5bf469e17ffd57b34762fd0206587f5758a52.tar.gz
zig-fbe5bf469e17ffd57b34762fd0206587f5758a52.zip
x86_64: implement float arithmetic builtins
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index 801aa2aeaa..91ba47e329 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -7,8 +7,6 @@ const maxInt = std.math.maxInt;
const minInt = std.math.minInt;
const mem = std.mem;
const math = std.math;
-const no_x86_64_hardware_f16_support = builtin.zig_backend == .stage2_x86_64 and
- !std.Target.x86.featureSetHas(builtin.cpu.features, .f16c);
test "assignment operators" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
@@ -1444,7 +1442,6 @@ test "@round f16" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest;
- if (no_x86_64_hardware_f16_support) return error.SkipZigTest; // TODO
try testRound(f16, 12.0);
try comptime testRound(f16, 12.0);