Skip to content

Commit 078b067

Browse files
committed
Support 128-bit atomics on s390x
1 parent b7b9453 commit 078b067

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: compiler/rustc_target/src/spec/targets/s390x_unknown_linux_gnu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub(crate) fn target() -> Target {
1010
// ABI. Pass the -vector feature string to LLVM to respect this assumption. On LLVM < 16, we
1111
// also strip v128 from the data_layout below to match the older LLVM's expectation.
1212
base.features = "-vector".into();
13-
base.max_atomic_width = Some(64);
13+
base.max_atomic_width = Some(128);
1414
base.min_global_align = Some(16);
1515
base.stack_probes = StackProbeType::Inline;
1616
base.supported_sanitizers =

Diff for: compiler/rustc_target/src/spec/targets/s390x_unknown_linux_musl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub(crate) fn target() -> Target {
1010
// ABI. Pass the -vector feature string to LLVM to respect this assumption. On LLVM < 16, we
1111
// also strip v128 from the data_layout below to match the older LLVM's expectation.
1212
base.features = "-vector".into();
13-
base.max_atomic_width = Some(64);
13+
base.max_atomic_width = Some(128);
1414
base.min_global_align = Some(16);
1515
base.static_position_independent_executables = true;
1616
base.stack_probes = StackProbeType::Inline;

0 commit comments

Comments
 (0)