std.Target: Fix C type alignment calculation for ve.

This commit is contained in:
Alex Rønne Petersen 2024-08-06 17:02:20 +02:00
parent e678862520
commit 5dd66cd964
No known key found for this signature in database

View File

@ -2345,7 +2345,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
.xcore, .xcore,
.loongarch32, .loongarch32,
.kalimba, .kalimba,
.ve,
.spu_2, .spu_2,
.xtensa, .xtensa,
=> 4, => 4,
@ -2380,6 +2379,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
.riscv64, .riscv64,
.sparc64, .sparc64,
.x86_64, .x86_64,
.ve,
.wasm32, .wasm32,
.wasm64, .wasm64,
=> 16, => 16,
@ -2450,7 +2450,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
.xcore, .xcore,
.loongarch32, .loongarch32,
.kalimba, .kalimba,
.ve,
.spu_2, .spu_2,
.xtensa, .xtensa,
=> 4, => 4,
@ -2492,6 +2491,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
.riscv64, .riscv64,
.sparc64, .sparc64,
.x86_64, .x86_64,
.ve,
.wasm32, .wasm32,
.wasm64, .wasm64,
=> 16, => 16,