aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/floatop.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-09-24 23:32:05 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-10-01 15:09:52 -0400
commit8470652f10a07f03b24746ffd786f6f5f4aabccc (patch)
tree80568b00172f68b5d112e1f2eccb848c5daf4f6e /test/behavior/floatop.zig
parent6d5cbdb86394d517a3428242a7ab26384843fc0c (diff)
downloadzig-8470652f10a07f03b24746ffd786f6f5f4aabccc.tar.gz
zig-8470652f10a07f03b24746ffd786f6f5f4aabccc.zip
x86_64: implement float compare and cast builtins
Diffstat (limited to 'test/behavior/floatop.zig')
-rw-r--r--test/behavior/floatop.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig
index e20aea3be0..1c8f0aa886 100644
--- a/test/behavior/floatop.zig
+++ b/test/behavior/floatop.zig
@@ -23,7 +23,6 @@ test "cmp f16" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) 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;
try testCmp(f16);
try comptime testCmp(f16);
@@ -115,7 +114,7 @@ test "different sized float comparisons" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
- if (no_x86_64_hardware_f16_support) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest;
try testDifferentSizedFloatComparisons();
try comptime testDifferentSizedFloatComparisons();