diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-30 17:23:14 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-06 19:27:54 -0700 |
| commit | 287ff4ab58f8af70383b6e334c7c862c8b8fbeec (patch) | |
| tree | 6c4e9281e86886fe58075e78dd332b74cf640e7d /src/AstGen.zig | |
| parent | fd1284ebd07ded1c67bbaff4c14f093051e56f59 (diff) | |
| download | zig-287ff4ab58f8af70383b6e334c7c862c8b8fbeec.tar.gz zig-287ff4ab58f8af70383b6e334c7c862c8b8fbeec.zip | |
stage2: add more float arithmetic and f80 support
AstGen: Fixed bug where f80 types in source were triggering illegal
behavior.
Value: handle f80 in floating point arithmetic functions.
Value: implement floatRem and floatMod
This commit introduces dependencies on compiler-rt that are not
implemented. Those are a prerequisite to merging this branch.
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 228937fffa..4133d3d364 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -8409,10 +8409,11 @@ fn nodeImpliesMoreThanOnePossibleValue(tree: *const Ast, start_node: Ast.Node.In .c_ushort_type, .comptime_float_type, .comptime_int_type, - .f128_type, .f16_type, .f32_type, .f64_type, + .f80_type, + .f128_type, .i16_type, .i32_type, .i64_type, @@ -8648,10 +8649,11 @@ fn nodeImpliesComptimeOnly(tree: *const Ast, start_node: Ast.Node.Index) bool { .c_ulong_type, .c_ulonglong_type, .c_ushort_type, - .f128_type, .f16_type, .f32_type, .f64_type, + .f80_type, + .f128_type, .i16_type, .i32_type, .i64_type, |
