From 5dd66cd964dba48709a817e86dc004ed703e5ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 6 Aug 2024 17:02:20 +0200 Subject: [PATCH] std.Target: Fix C type alignment calculation for ve. --- lib/std/Target.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index d1351e7d41..7248cce807 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -2345,7 +2345,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 { .xcore, .loongarch32, .kalimba, - .ve, .spu_2, .xtensa, => 4, @@ -2380,6 +2379,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 { .riscv64, .sparc64, .x86_64, + .ve, .wasm32, .wasm64, => 16, @@ -2450,7 +2450,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 { .xcore, .loongarch32, .kalimba, - .ve, .spu_2, .xtensa, => 4, @@ -2492,6 +2491,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 { .riscv64, .sparc64, .x86_64, + .ve, .wasm32, .wasm64, => 16,