aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-05-03 21:50:00 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-05-03 21:50:00 -0700
commit3ed9ef3e6bed3fef6d6cad07920d08b28e20ec3e (patch)
tree2b203324fd0d8466271a7b467e45e9bd4f996423 /test
parentb6930825b0e59bc355370eb68f5b74868d8aa1d7 (diff)
downloadzig-3ed9ef3e6bed3fef6d6cad07920d08b28e20ec3e.tar.gz
zig-3ed9ef3e6bed3fef6d6cad07920d08b28e20ec3e.zip
Sema: fix bigIntToFloat
The implementation had the `@mulAdd` parameters mixed up.
Diffstat (limited to 'test')
-rw-r--r--test/behavior/floatop.zig13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig
index c02c1c15c4..536c365655 100644
--- a/test/behavior/floatop.zig
+++ b/test/behavior/floatop.zig
@@ -667,24 +667,11 @@ fn fnWithFloatMode() f32 {
}
test "float literal at compile time not lossy" {
- 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);
}
test "f128 at compile time is lossy" {
- if (builtin.zig_backend != .stage1) {
- // this one is happening because we represent comptime-known f128 integers with
- // Value.Tag.bigint and only convert to f128 representation if it stops being an
- // integer. Is this something we want? need to have a lang spec discussion on this
- // topic.
- return error.SkipZigTest; // TODO
- }
-
try expect(@as(f128, 10384593717069655257060992658440192.0) + 1 == 10384593717069655257060992658440192.0);
}