aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-03-11 18:24:37 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2025-03-21 21:51:08 -0400
commitc5c1c8538dc047bc7df9acd685791c4ba3e20ffb (patch)
treeca21b8d0f19c2b3e2a5d73d1659b495e2e2a6b4c /src/InternPool.zig
parented284c1f98ae08a36a7ef0776e22a4cfb2527fee (diff)
downloadzig-c5c1c8538dc047bc7df9acd685791c4ba3e20ffb.tar.gz
zig-c5c1c8538dc047bc7df9acd685791c4ba3e20ffb.zip
x86_64: rewrite wrapping multiplication
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index ab264d0e86..04eb4854e7 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -4573,6 +4573,10 @@ pub const Index = enum(u32) {
vector_16_i8_type,
vector_32_i8_type,
+ vector_1_u8_type,
+ vector_2_u8_type,
+ vector_4_u8_type,
+ vector_8_u8_type,
vector_16_u8_type,
vector_32_u8_type,
vector_8_i16_type,
@@ -5089,6 +5093,14 @@ pub const static_keys = [_]Key{
.{ .vector_type = .{ .len = 16, .child = .i8_type } },
// @Vector(32, i8)
.{ .vector_type = .{ .len = 32, .child = .i8_type } },
+ // @Vector(1, u8)
+ .{ .vector_type = .{ .len = 1, .child = .u8_type } },
+ // @Vector(2, u8)
+ .{ .vector_type = .{ .len = 2, .child = .u8_type } },
+ // @Vector(4, u8)
+ .{ .vector_type = .{ .len = 4, .child = .u8_type } },
+ // @Vector(8, u8)
+ .{ .vector_type = .{ .len = 8, .child = .u8_type } },
// @Vector(16, u8)
.{ .vector_type = .{ .len = 16, .child = .u8_type } },
// @Vector(32, u8)
@@ -11766,6 +11778,10 @@ pub fn typeOf(ip: *const InternPool, index: Index) Index {
.slice_const_u8_sentinel_0_type,
.vector_16_i8_type,
.vector_32_i8_type,
+ .vector_1_u8_type,
+ .vector_2_u8_type,
+ .vector_4_u8_type,
+ .vector_8_u8_type,
.vector_16_u8_type,
.vector_32_u8_type,
.vector_8_i16_type,
@@ -12106,6 +12122,10 @@ pub fn zigTypeTag(ip: *const InternPool, index: Index) std.builtin.TypeId {
.vector_16_i8_type,
.vector_32_i8_type,
+ .vector_1_u8_type,
+ .vector_2_u8_type,
+ .vector_4_u8_type,
+ .vector_8_u8_type,
.vector_16_u8_type,
.vector_32_u8_type,
.vector_8_i16_type,