Mock out simd intrinsics

This commit is contained in:
gingerBill
2022-05-25 17:54:05 +01:00
parent b032d5af87
commit 3b54015e80
4 changed files with 265 additions and 5 deletions
+1 -1
View File
@@ -2803,7 +2803,7 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
goto array_end;
}
if (count < 1 || !is_power_of_two(count)) {
error(at->elem, "Invalid length for 'intrinsics.simd_vector', expected a power of two length, got '%lld'", cast(long long)count);
error(at->count, "Invalid length for 'intrinsics.simd_vector', expected a power of two length, got '%lld'", cast(long long)count);
*type = alloc_type_array(elem, count, generic_type);
goto array_end;
}