aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/floatop.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-14 23:15:01 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-14 23:15:01 -0700
commitc64279b15b527749420e0e79fcc6dbfbfeb02812 (patch)
tree8f7fe813a6b2b7048468731f5f93619b3704e882 /test/behavior/floatop.zig
parent1adb15098c711973d1c75061f122b907aaf09a7c (diff)
downloadzig-c64279b15b527749420e0e79fcc6dbfbfeb02812.tar.gz
zig-c64279b15b527749420e0e79fcc6dbfbfeb02812.zip
Sema: fix shl_sat with comptime rhs
Diffstat (limited to 'test/behavior/floatop.zig')
-rw-r--r--test/behavior/floatop.zig11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig
index 424677ea1c..f8445b6e26 100644
--- a/test/behavior/floatop.zig
+++ b/test/behavior/floatop.zig
@@ -609,7 +609,11 @@ test "negation f64" {
}
test "negation f80" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend != .stage1) {
+ // This test case exercises @intToFloat f80 in the compiler implementation.
+ // https://github.com/ziglang/zig/issues/11030
+ return error.SkipZigTest;
+ }
if (builtin.os.tag == .freebsd) {
// TODO file issue to track this failure
@@ -673,7 +677,10 @@ fn fnWithFloatMode() f32 {
}
test "float literal at compile time not lossy" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend != .stage1) {
+ // https://github.com/ziglang/zig/issues/11169
+ return error.SkipZigTest;
+ }
try expect(16777216.0 + 1.0 == 16777217.0);
try expect(9007199254740992.0 + 1.0 == 9007199254740993.0);