aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-16 00:48:17 +0100
committergingerBill <bill@gingerbill.org>2024-07-16 00:48:17 +0100
commit23ca27f40b956b03499e2095a04b252722e34bb6 (patch)
tree1e6394844417974bb923dae12acbe62a83ebdb33 /src/check_builtin.cpp
parent03426175aea8b3d3a1ebea550613f2155ea07f9a (diff)
Add intrinsics `add_sat` and `sub_sat`
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index db62b2bdb..26de3a112 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -4261,6 +4261,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
case BuiltinProc_overflow_add:
case BuiltinProc_overflow_sub:
case BuiltinProc_overflow_mul:
+ case BuiltinProc_add_sat:
+ case BuiltinProc_sub_sat:
{
Operand x = {};
Operand y = {};