Update FIXME comment in s390x_unknown_linux_*.rs

This commit is contained in:
Taiki Endo 2024-09-26 12:52:35 +09:00
parent 9e394f551c
commit 1bef68c4cb
2 changed files with 4 additions and 6 deletions

View File

@ -6,9 +6,8 @@ pub(crate) fn target() -> Target {
base.endian = Endian::Big; base.endian = Endian::Big;
// z10 is the oldest CPU supported by LLVM // z10 is the oldest CPU supported by LLVM
base.cpu = "z10".into(); base.cpu = "z10".into();
// FIXME: The ABI implementation in cabi_s390x.rs is for now hard-coded to assume the no-vector // FIXME: The ABI implementation in abi/call/s390x.rs is for now hard-coded to assume the no-vector
// ABI. Pass the -vector feature string to LLVM to respect this assumption. On LLVM < 16, we // ABI. Pass the -vector feature string to LLVM to respect this assumption.
// also strip v128 from the data_layout below to match the older LLVM's expectation.
base.features = "-vector".into(); base.features = "-vector".into();
base.max_atomic_width = Some(128); base.max_atomic_width = Some(128);
base.min_global_align = Some(16); base.min_global_align = Some(16);

View File

@ -6,9 +6,8 @@ pub(crate) fn target() -> Target {
base.endian = Endian::Big; base.endian = Endian::Big;
// z10 is the oldest CPU supported by LLVM // z10 is the oldest CPU supported by LLVM
base.cpu = "z10".into(); base.cpu = "z10".into();
// FIXME: The ABI implementation in cabi_s390x.rs is for now hard-coded to assume the no-vector // FIXME: The ABI implementation in abi/call/s390x.rs is for now hard-coded to assume the no-vector
// ABI. Pass the -vector feature string to LLVM to respect this assumption. On LLVM < 16, we // ABI. Pass the -vector feature string to LLVM to respect this assumption.
// also strip v128 from the data_layout below to match the older LLVM's expectation.
base.features = "-vector".into(); base.features = "-vector".into();
base.max_atomic_width = Some(128); base.max_atomic_width = Some(128);
base.min_global_align = Some(16); base.min_global_align = Some(16);