aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/floatop.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-07 03:14:31 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-05-08 07:36:20 -0400
commit05580b9453e4ae2d9b62fe4178651937d8b73989 (patch)
treeb04b981c4a17c1df0ba17d9d0c703e21b220b9e0 /test/behavior/floatop.zig
parent1c53f0a6b0b1866663346c473da310203a317e90 (diff)
downloadzig-05580b9453e4ae2d9b62fe4178651937d8b73989.tar.gz
zig-05580b9453e4ae2d9b62fe4178651937d8b73989.zip
x86_64: implement float cast from `f16` to `f64`
Diffstat (limited to 'test/behavior/floatop.zig')
-rw-r--r--test/behavior/floatop.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig
index b98d782da1..ec24407d9f 100644
--- a/test/behavior/floatop.zig
+++ b/test/behavior/floatop.zig
@@ -52,7 +52,8 @@ fn testFloatComparisons() !void {
}
test "different sized float comparisons" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_x86_64 and
+ !comptime std.Target.x86.featureSetHas(builtin.cpu.features, .f16c)) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO