mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 11:13:08 +00:00
std.Target: Fix C type alignment calculation for ve.
This commit is contained in:
parent
e678862520
commit
5dd66cd964
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user