]> git.proxmox.com Git - rustc.git/blame - src/librustc_target/spec/s390x_unknown_linux_gnu.rs
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_target / spec / s390x_unknown_linux_gnu.rs
CommitLineData
9fa01778 1use crate::spec::{LinkerFlavor, Target, TargetResult};
9e0c209e
SL
2
3pub fn target() -> TargetResult {
4 let mut base = super::linux_base::opts();
5 // z10 is the oldest CPU supported by LLVM
6 base.cpu = "z10".to_string();
7 // FIXME: The data_layout string below and the ABI implementation in
8 // cabi_s390x.rs are for now hard-coded to assume the no-vector ABI.
9 // Pass the -vector feature string to LLVM to respect this assumption.
10 base.features = "-vector".to_string();
c30ab7b3 11 base.max_atomic_width = Some(64);
ea8adc8c 12 base.min_global_align = Some(16);
9e0c209e
SL
13
14 Ok(Target {
15 llvm_target: "s390x-unknown-linux-gnu".to_string(),
16 target_endian: "big".to_string(),
17 target_pointer_width: "64".to_string(),
ea8adc8c 18 target_c_int_width: "32".to_string(),
9e0c209e
SL
19 data_layout: "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64".to_string(),
20 arch: "s390x".to_string(),
21 target_os: "linux".to_string(),
22 target_env: "gnu".to_string(),
23 target_vendor: "unknown".to_string(),
cc61c64b 24 linker_flavor: LinkerFlavor::Gcc,
9e0c209e
SL
25 options: base,
26 })
27}