authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-01 17:57:01-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-08 19:37:29-07:00
log88ada2121ffd13a77ef8d38e7cf10509eb45853a
tree3a223929a6b5babfa67b10d1bf5251cbbea38742
parent708894cf9903bab2e9b0dde0b609a6cc7cc55ffd

LLVM: fix x86 and x86_64 datalayout string calculation

now it matches clang again

1 files changed, 14 insertions(+), 0 deletions(-)

src/codegen/llvm.zig+14
......@@ -671,6 +671,20 @@ const DataLayoutBuilder = struct {
671671 abi = size;
672672 force_abi = size == 64;
673673 },
674 .x86 => switch (size) {
675 128 => {
676 abi = size;
677 pref = size;
678 },
679 else => {},
680 },
681 .x86_64 => switch (size) {
682 64, 128 => {
683 abi = size;
684 pref = size;
685 },
686 else => {},
687 },
674688 else => {},
675689 }
676690 },