llvm: Fix data layout string for s390x-zos.

This commit is contained in:
Alex Rønne Petersen 2025-04-27 03:47:03 +02:00
parent 30e254fc31
commit 5502a820e8
No known key found for this signature in database

View File

@ -399,7 +399,7 @@ pub fn dataLayout(target: std.Target) []const u8 {
.sparc => "E-m:e-p:32:32-i64:64-i128:128-f128:64-n32-S64",
.sparc64 => "E-m:e-i64:64-i128:128-n32:64-S128",
.s390x => if (target.os.tag == .zos)
"E-m:l-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
"E-m:l-p1:32:32-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
else
"E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64",
.x86 => switch (target.os.tag) {