Commit 5dd66cd964

Alex Rønne Petersen <alex@alexrp.com>
2024-08-06 17:02:20
std.Target: Fix C type alignment calculation for ve.
1 parent e678862
Changed files (1)
lib
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,