mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
std.Target: kvx requires 32-byte aligned stacks
This commit is contained in:
parent
2c470d24b3
commit
378eec95b8
@ -2885,6 +2885,7 @@ pub fn stackAlignment(target: *const Target) u16 {
|
|||||||
.ve,
|
.ve,
|
||||||
.wasm32,
|
.wasm32,
|
||||||
.wasm64,
|
.wasm64,
|
||||||
|
.x86_64,
|
||||||
=> return 16,
|
=> return 16,
|
||||||
// Some of the following prongs should really be testing the ABI, but our current `Abi` enum
|
// Some of the following prongs should really be testing the ABI, but our current `Abi` enum
|
||||||
// can't handle that level of nuance yet.
|
// can't handle that level of nuance yet.
|
||||||
@ -2897,7 +2898,7 @@ pub fn stackAlignment(target: *const Target) u16 {
|
|||||||
.riscv64be,
|
.riscv64be,
|
||||||
=> if (!target.cpu.has(.riscv, .e)) return 16,
|
=> if (!target.cpu.has(.riscv, .e)) return 16,
|
||||||
.x86 => if (target.os.tag != .windows and target.os.tag != .uefi) return 16,
|
.x86 => if (target.os.tag != .windows and target.os.tag != .uefi) return 16,
|
||||||
.x86_64 => return 16,
|
.kvx => return 32,
|
||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user