aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-30 17:23:14 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-06 19:27:54 -0700
commit287ff4ab58f8af70383b6e334c7c862c8b8fbeec (patch)
tree6c4e9281e86886fe58075e78dd332b74cf640e7d /src/AstGen.zig
parentfd1284ebd07ded1c67bbaff4c14f093051e56f59 (diff)
downloadzig-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.zig6
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,