]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/s390x_unknown_linux_musl.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / s390x_unknown_linux_musl.rs
CommitLineData
6a06907d
XL
1use crate::abi::Endian;
2use crate::spec::Target;
3
4pub fn target() -> Target {
5 let mut base = super::linux_musl_base::opts();
6 base.endian = Endian::Big;
7 // z10 is the oldest CPU supported by LLVM
5e7ed085 8 base.cpu = "z10".into();
6a06907d
XL
9 // FIXME: The data_layout string below and the ABI implementation in
10 // cabi_s390x.rs are for now hard-coded to assume the no-vector ABI.
11 // Pass the -vector feature string to LLVM to respect this assumption.
5e7ed085 12 base.features = "-vector".into();
6a06907d
XL
13 base.max_atomic_width = Some(64);
14 base.min_global_align = Some(16);
15 base.static_position_independent_executables = true;
16
17 Target {
5e7ed085 18 llvm_target: "s390x-unknown-linux-musl".into(),
6a06907d 19 pointer_width: 64,
5e7ed085
FG
20 data_layout: "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64".into(),
21 arch: "s390x".into(),
6a06907d
XL
22 options: base,
23 }
24}