From 23ca27f40b956b03499e2095a04b252722e34bb6 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 16 Jul 2024 00:48:17 +0100 Subject: Add intrinsics `add_sat` and `sub_sat` --- src/check_builtin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_builtin.cpp') 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 = {}; -- cgit v1.2.3